diff --git a/kubernetes/README.md b/kubernetes/README.md index 00f021dc16..380995f7ab 100644 --- a/kubernetes/README.md +++ b/kubernetes/README.md @@ -3,8 +3,8 @@ No description provided (generated by Swagger Codegen https://github.com/swagger This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -- API version: v1.5.1-660c2a2 -- Package version: 1.0.0-snapshot +- API version: v1.6.1 +- Package version: 2.0.0-snapshot - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. @@ -74,22 +74,43 @@ Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *ApisApi* | [**get_api_versions**](docs/ApisApi.md#get_api_versions) | **GET** /apis/ | *AppsApi* | [**get_api_group**](docs/AppsApi.md#get_api_group) | **GET** /apis/apps/ | +*AppsV1beta1Api* | [**create_namespaced_deployment**](docs/AppsV1beta1Api.md#create_namespaced_deployment) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/deployments | +*AppsV1beta1Api* | [**create_namespaced_deployment_rollback_rollback**](docs/AppsV1beta1Api.md#create_namespaced_deployment_rollback_rollback) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback | *AppsV1beta1Api* | [**create_namespaced_stateful_set**](docs/AppsV1beta1Api.md#create_namespaced_stateful_set) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | +*AppsV1beta1Api* | [**delete_collection_namespaced_deployment**](docs/AppsV1beta1Api.md#delete_collection_namespaced_deployment) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/deployments | *AppsV1beta1Api* | [**delete_collection_namespaced_stateful_set**](docs/AppsV1beta1Api.md#delete_collection_namespaced_stateful_set) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | +*AppsV1beta1Api* | [**delete_namespaced_deployment**](docs/AppsV1beta1Api.md#delete_namespaced_deployment) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | *AppsV1beta1Api* | [**delete_namespaced_stateful_set**](docs/AppsV1beta1Api.md#delete_namespaced_stateful_set) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | *AppsV1beta1Api* | [**get_api_resources**](docs/AppsV1beta1Api.md#get_api_resources) | **GET** /apis/apps/v1beta1/ | +*AppsV1beta1Api* | [**list_deployment_for_all_namespaces**](docs/AppsV1beta1Api.md#list_deployment_for_all_namespaces) | **GET** /apis/apps/v1beta1/deployments | +*AppsV1beta1Api* | [**list_namespaced_deployment**](docs/AppsV1beta1Api.md#list_namespaced_deployment) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments | *AppsV1beta1Api* | [**list_namespaced_stateful_set**](docs/AppsV1beta1Api.md#list_namespaced_stateful_set) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | *AppsV1beta1Api* | [**list_stateful_set_for_all_namespaces**](docs/AppsV1beta1Api.md#list_stateful_set_for_all_namespaces) | **GET** /apis/apps/v1beta1/statefulsets | +*AppsV1beta1Api* | [**patch_namespaced_deployment**](docs/AppsV1beta1Api.md#patch_namespaced_deployment) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | +*AppsV1beta1Api* | [**patch_namespaced_deployment_status**](docs/AppsV1beta1Api.md#patch_namespaced_deployment_status) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | +*AppsV1beta1Api* | [**patch_namespaced_scale_scale**](docs/AppsV1beta1Api.md#patch_namespaced_scale_scale) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | *AppsV1beta1Api* | [**patch_namespaced_stateful_set**](docs/AppsV1beta1Api.md#patch_namespaced_stateful_set) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | *AppsV1beta1Api* | [**patch_namespaced_stateful_set_status**](docs/AppsV1beta1Api.md#patch_namespaced_stateful_set_status) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | +*AppsV1beta1Api* | [**read_namespaced_deployment**](docs/AppsV1beta1Api.md#read_namespaced_deployment) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | +*AppsV1beta1Api* | [**read_namespaced_deployment_status**](docs/AppsV1beta1Api.md#read_namespaced_deployment_status) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | +*AppsV1beta1Api* | [**read_namespaced_scale_scale**](docs/AppsV1beta1Api.md#read_namespaced_scale_scale) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | *AppsV1beta1Api* | [**read_namespaced_stateful_set**](docs/AppsV1beta1Api.md#read_namespaced_stateful_set) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | *AppsV1beta1Api* | [**read_namespaced_stateful_set_status**](docs/AppsV1beta1Api.md#read_namespaced_stateful_set_status) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | +*AppsV1beta1Api* | [**replace_namespaced_deployment**](docs/AppsV1beta1Api.md#replace_namespaced_deployment) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | +*AppsV1beta1Api* | [**replace_namespaced_deployment_status**](docs/AppsV1beta1Api.md#replace_namespaced_deployment_status) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | +*AppsV1beta1Api* | [**replace_namespaced_scale_scale**](docs/AppsV1beta1Api.md#replace_namespaced_scale_scale) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | *AppsV1beta1Api* | [**replace_namespaced_stateful_set**](docs/AppsV1beta1Api.md#replace_namespaced_stateful_set) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | *AppsV1beta1Api* | [**replace_namespaced_stateful_set_status**](docs/AppsV1beta1Api.md#replace_namespaced_stateful_set_status) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | *AuthenticationApi* | [**get_api_group**](docs/AuthenticationApi.md#get_api_group) | **GET** /apis/authentication.k8s.io/ | +*AuthenticationV1Api* | [**create_token_review**](docs/AuthenticationV1Api.md#create_token_review) | **POST** /apis/authentication.k8s.io/v1/tokenreviews | +*AuthenticationV1Api* | [**get_api_resources**](docs/AuthenticationV1Api.md#get_api_resources) | **GET** /apis/authentication.k8s.io/v1/ | *AuthenticationV1beta1Api* | [**create_token_review**](docs/AuthenticationV1beta1Api.md#create_token_review) | **POST** /apis/authentication.k8s.io/v1beta1/tokenreviews | *AuthenticationV1beta1Api* | [**get_api_resources**](docs/AuthenticationV1beta1Api.md#get_api_resources) | **GET** /apis/authentication.k8s.io/v1beta1/ | *AuthorizationApi* | [**get_api_group**](docs/AuthorizationApi.md#get_api_group) | **GET** /apis/authorization.k8s.io/ | +*AuthorizationV1Api* | [**create_namespaced_local_subject_access_review**](docs/AuthorizationV1Api.md#create_namespaced_local_subject_access_review) | **POST** /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews | +*AuthorizationV1Api* | [**create_self_subject_access_review**](docs/AuthorizationV1Api.md#create_self_subject_access_review) | **POST** /apis/authorization.k8s.io/v1/selfsubjectaccessreviews | +*AuthorizationV1Api* | [**create_subject_access_review**](docs/AuthorizationV1Api.md#create_subject_access_review) | **POST** /apis/authorization.k8s.io/v1/subjectaccessreviews | +*AuthorizationV1Api* | [**get_api_resources**](docs/AuthorizationV1Api.md#get_api_resources) | **GET** /apis/authorization.k8s.io/v1/ | *AuthorizationV1beta1Api* | [**create_namespaced_local_subject_access_review**](docs/AuthorizationV1beta1Api.md#create_namespaced_local_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews | *AuthorizationV1beta1Api* | [**create_self_subject_access_review**](docs/AuthorizationV1beta1Api.md#create_self_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews | *AuthorizationV1beta1Api* | [**create_subject_access_review**](docs/AuthorizationV1beta1Api.md#create_subject_access_review) | **POST** /apis/authorization.k8s.io/v1beta1/subjectaccessreviews | @@ -107,6 +128,18 @@ Class | Method | HTTP request | Description *AutoscalingV1Api* | [**read_namespaced_horizontal_pod_autoscaler_status**](docs/AutoscalingV1Api.md#read_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | *AutoscalingV1Api* | [**replace_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV1Api.md#replace_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | *AutoscalingV1Api* | [**replace_namespaced_horizontal_pod_autoscaler_status**](docs/AutoscalingV1Api.md#replace_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +*AutoscalingV2alpha1Api* | [**create_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV2alpha1Api.md#create_namespaced_horizontal_pod_autoscaler) | **POST** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | +*AutoscalingV2alpha1Api* | [**delete_collection_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV2alpha1Api.md#delete_collection_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | +*AutoscalingV2alpha1Api* | [**delete_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV2alpha1Api.md#delete_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*AutoscalingV2alpha1Api* | [**get_api_resources**](docs/AutoscalingV2alpha1Api.md#get_api_resources) | **GET** /apis/autoscaling/v2alpha1/ | +*AutoscalingV2alpha1Api* | [**list_horizontal_pod_autoscaler_for_all_namespaces**](docs/AutoscalingV2alpha1Api.md#list_horizontal_pod_autoscaler_for_all_namespaces) | **GET** /apis/autoscaling/v2alpha1/horizontalpodautoscalers | +*AutoscalingV2alpha1Api* | [**list_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV2alpha1Api.md#list_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | +*AutoscalingV2alpha1Api* | [**patch_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV2alpha1Api.md#patch_namespaced_horizontal_pod_autoscaler) | **PATCH** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*AutoscalingV2alpha1Api* | [**patch_namespaced_horizontal_pod_autoscaler_status**](docs/AutoscalingV2alpha1Api.md#patch_namespaced_horizontal_pod_autoscaler_status) | **PATCH** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +*AutoscalingV2alpha1Api* | [**read_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV2alpha1Api.md#read_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*AutoscalingV2alpha1Api* | [**read_namespaced_horizontal_pod_autoscaler_status**](docs/AutoscalingV2alpha1Api.md#read_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +*AutoscalingV2alpha1Api* | [**replace_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV2alpha1Api.md#replace_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +*AutoscalingV2alpha1Api* | [**replace_namespaced_horizontal_pod_autoscaler_status**](docs/AutoscalingV2alpha1Api.md#replace_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | *BatchApi* | [**get_api_group**](docs/BatchApi.md#get_api_group) | **GET** /apis/batch/ | *BatchV1Api* | [**create_namespaced_job**](docs/BatchV1Api.md#create_namespaced_job) | **POST** /apis/batch/v1/namespaces/{namespace}/jobs | *BatchV1Api* | [**delete_collection_namespaced_job**](docs/BatchV1Api.md#delete_collection_namespaced_job) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs | @@ -121,50 +154,39 @@ Class | Method | HTTP request | Description *BatchV1Api* | [**replace_namespaced_job**](docs/BatchV1Api.md#replace_namespaced_job) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | *BatchV1Api* | [**replace_namespaced_job_status**](docs/BatchV1Api.md#replace_namespaced_job_status) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | *BatchV2alpha1Api* | [**create_namespaced_cron_job**](docs/BatchV2alpha1Api.md#create_namespaced_cron_job) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | -*BatchV2alpha1Api* | [**create_namespaced_job**](docs/BatchV2alpha1Api.md#create_namespaced_job) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/jobs | *BatchV2alpha1Api* | [**create_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#create_namespaced_scheduled_job) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | *BatchV2alpha1Api* | [**delete_collection_namespaced_cron_job**](docs/BatchV2alpha1Api.md#delete_collection_namespaced_cron_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | -*BatchV2alpha1Api* | [**delete_collection_namespaced_job**](docs/BatchV2alpha1Api.md#delete_collection_namespaced_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/jobs | *BatchV2alpha1Api* | [**delete_collection_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#delete_collection_namespaced_scheduled_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | *BatchV2alpha1Api* | [**delete_namespaced_cron_job**](docs/BatchV2alpha1Api.md#delete_namespaced_cron_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | -*BatchV2alpha1Api* | [**delete_namespaced_job**](docs/BatchV2alpha1Api.md#delete_namespaced_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | *BatchV2alpha1Api* | [**delete_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#delete_namespaced_scheduled_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | *BatchV2alpha1Api* | [**get_api_resources**](docs/BatchV2alpha1Api.md#get_api_resources) | **GET** /apis/batch/v2alpha1/ | *BatchV2alpha1Api* | [**list_cron_job_for_all_namespaces**](docs/BatchV2alpha1Api.md#list_cron_job_for_all_namespaces) | **GET** /apis/batch/v2alpha1/cronjobs | -*BatchV2alpha1Api* | [**list_job_for_all_namespaces**](docs/BatchV2alpha1Api.md#list_job_for_all_namespaces) | **GET** /apis/batch/v2alpha1/jobs | *BatchV2alpha1Api* | [**list_namespaced_cron_job**](docs/BatchV2alpha1Api.md#list_namespaced_cron_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | -*BatchV2alpha1Api* | [**list_namespaced_job**](docs/BatchV2alpha1Api.md#list_namespaced_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/jobs | *BatchV2alpha1Api* | [**list_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#list_namespaced_scheduled_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | *BatchV2alpha1Api* | [**list_scheduled_job_for_all_namespaces**](docs/BatchV2alpha1Api.md#list_scheduled_job_for_all_namespaces) | **GET** /apis/batch/v2alpha1/scheduledjobs | *BatchV2alpha1Api* | [**patch_namespaced_cron_job**](docs/BatchV2alpha1Api.md#patch_namespaced_cron_job) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | *BatchV2alpha1Api* | [**patch_namespaced_cron_job_status**](docs/BatchV2alpha1Api.md#patch_namespaced_cron_job_status) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | -*BatchV2alpha1Api* | [**patch_namespaced_job**](docs/BatchV2alpha1Api.md#patch_namespaced_job) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | -*BatchV2alpha1Api* | [**patch_namespaced_job_status**](docs/BatchV2alpha1Api.md#patch_namespaced_job_status) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status | *BatchV2alpha1Api* | [**patch_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#patch_namespaced_scheduled_job) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | *BatchV2alpha1Api* | [**patch_namespaced_scheduled_job_status**](docs/BatchV2alpha1Api.md#patch_namespaced_scheduled_job_status) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | *BatchV2alpha1Api* | [**read_namespaced_cron_job**](docs/BatchV2alpha1Api.md#read_namespaced_cron_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | *BatchV2alpha1Api* | [**read_namespaced_cron_job_status**](docs/BatchV2alpha1Api.md#read_namespaced_cron_job_status) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | -*BatchV2alpha1Api* | [**read_namespaced_job**](docs/BatchV2alpha1Api.md#read_namespaced_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | -*BatchV2alpha1Api* | [**read_namespaced_job_status**](docs/BatchV2alpha1Api.md#read_namespaced_job_status) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status | *BatchV2alpha1Api* | [**read_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#read_namespaced_scheduled_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | *BatchV2alpha1Api* | [**read_namespaced_scheduled_job_status**](docs/BatchV2alpha1Api.md#read_namespaced_scheduled_job_status) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | *BatchV2alpha1Api* | [**replace_namespaced_cron_job**](docs/BatchV2alpha1Api.md#replace_namespaced_cron_job) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | *BatchV2alpha1Api* | [**replace_namespaced_cron_job_status**](docs/BatchV2alpha1Api.md#replace_namespaced_cron_job_status) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | -*BatchV2alpha1Api* | [**replace_namespaced_job**](docs/BatchV2alpha1Api.md#replace_namespaced_job) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | -*BatchV2alpha1Api* | [**replace_namespaced_job_status**](docs/BatchV2alpha1Api.md#replace_namespaced_job_status) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status | *BatchV2alpha1Api* | [**replace_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#replace_namespaced_scheduled_job) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | *BatchV2alpha1Api* | [**replace_namespaced_scheduled_job_status**](docs/BatchV2alpha1Api.md#replace_namespaced_scheduled_job_status) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | *CertificatesApi* | [**get_api_group**](docs/CertificatesApi.md#get_api_group) | **GET** /apis/certificates.k8s.io/ | -*CertificatesV1alpha1Api* | [**create_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#create_certificate_signing_request) | **POST** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | -*CertificatesV1alpha1Api* | [**delete_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#delete_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | -*CertificatesV1alpha1Api* | [**delete_collection_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#delete_collection_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | -*CertificatesV1alpha1Api* | [**get_api_resources**](docs/CertificatesV1alpha1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | -*CertificatesV1alpha1Api* | [**list_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#list_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | -*CertificatesV1alpha1Api* | [**patch_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#patch_certificate_signing_request) | **PATCH** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | -*CertificatesV1alpha1Api* | [**read_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#read_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | -*CertificatesV1alpha1Api* | [**replace_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#replace_certificate_signing_request) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | -*CertificatesV1alpha1Api* | [**replace_certificate_signing_request_approval**](docs/CertificatesV1alpha1Api.md#replace_certificate_signing_request_approval) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/approval | -*CertificatesV1alpha1Api* | [**replace_certificate_signing_request_status**](docs/CertificatesV1alpha1Api.md#replace_certificate_signing_request_status) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/status | +*CertificatesV1beta1Api* | [**create_certificate_signing_request**](docs/CertificatesV1beta1Api.md#create_certificate_signing_request) | **POST** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | +*CertificatesV1beta1Api* | [**delete_certificate_signing_request**](docs/CertificatesV1beta1Api.md#delete_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | +*CertificatesV1beta1Api* | [**delete_collection_certificate_signing_request**](docs/CertificatesV1beta1Api.md#delete_collection_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | +*CertificatesV1beta1Api* | [**get_api_resources**](docs/CertificatesV1beta1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1beta1/ | +*CertificatesV1beta1Api* | [**list_certificate_signing_request**](docs/CertificatesV1beta1Api.md#list_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | +*CertificatesV1beta1Api* | [**patch_certificate_signing_request**](docs/CertificatesV1beta1Api.md#patch_certificate_signing_request) | **PATCH** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | +*CertificatesV1beta1Api* | [**read_certificate_signing_request**](docs/CertificatesV1beta1Api.md#read_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | +*CertificatesV1beta1Api* | [**replace_certificate_signing_request**](docs/CertificatesV1beta1Api.md#replace_certificate_signing_request) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | +*CertificatesV1beta1Api* | [**replace_certificate_signing_request_approval**](docs/CertificatesV1beta1Api.md#replace_certificate_signing_request_approval) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval | +*CertificatesV1beta1Api* | [**replace_certificate_signing_request_status**](docs/CertificatesV1beta1Api.md#replace_certificate_signing_request_status) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status | *CoreApi* | [**get_api_versions**](docs/CoreApi.md#get_api_versions) | **GET** /api/ | *CoreV1Api* | [**connect_delete_namespaced_pod_proxy**](docs/CoreV1Api.md#connect_delete_namespaced_pod_proxy) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy | *CoreV1Api* | [**connect_delete_namespaced_pod_proxy_with_path**](docs/CoreV1Api.md#connect_delete_namespaced_pod_proxy_with_path) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | @@ -332,6 +354,12 @@ Class | Method | HTTP request | Description *CoreV1Api* | [**proxy_options_namespaced_service_with_path**](docs/CoreV1Api.md#proxy_options_namespaced_service_with_path) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | *CoreV1Api* | [**proxy_options_node**](docs/CoreV1Api.md#proxy_options_node) | **OPTIONS** /api/v1/proxy/nodes/{name} | *CoreV1Api* | [**proxy_options_node_with_path**](docs/CoreV1Api.md#proxy_options_node_with_path) | **OPTIONS** /api/v1/proxy/nodes/{name}/{path} | +*CoreV1Api* | [**proxy_patch_namespaced_pod**](docs/CoreV1Api.md#proxy_patch_namespaced_pod) | **PATCH** /api/v1/proxy/namespaces/{namespace}/pods/{name} | +*CoreV1Api* | [**proxy_patch_namespaced_pod_with_path**](docs/CoreV1Api.md#proxy_patch_namespaced_pod_with_path) | **PATCH** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | +*CoreV1Api* | [**proxy_patch_namespaced_service**](docs/CoreV1Api.md#proxy_patch_namespaced_service) | **PATCH** /api/v1/proxy/namespaces/{namespace}/services/{name} | +*CoreV1Api* | [**proxy_patch_namespaced_service_with_path**](docs/CoreV1Api.md#proxy_patch_namespaced_service_with_path) | **PATCH** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | +*CoreV1Api* | [**proxy_patch_node**](docs/CoreV1Api.md#proxy_patch_node) | **PATCH** /api/v1/proxy/nodes/{name} | +*CoreV1Api* | [**proxy_patch_node_with_path**](docs/CoreV1Api.md#proxy_patch_node_with_path) | **PATCH** /api/v1/proxy/nodes/{name}/{path} | *CoreV1Api* | [**proxy_post_namespaced_pod**](docs/CoreV1Api.md#proxy_post_namespaced_pod) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name} | *CoreV1Api* | [**proxy_post_namespaced_pod_with_path**](docs/CoreV1Api.md#proxy_post_namespaced_pod_with_path) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | *CoreV1Api* | [**proxy_post_namespaced_service**](docs/CoreV1Api.md#proxy_post_namespaced_service) | **POST** /api/v1/proxy/namespaces/{namespace}/services/{name} | @@ -399,42 +427,36 @@ Class | Method | HTTP request | Description *ExtensionsV1beta1Api* | [**create_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#create_namespaced_daemon_set) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | *ExtensionsV1beta1Api* | [**create_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#create_namespaced_deployment) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | *ExtensionsV1beta1Api* | [**create_namespaced_deployment_rollback_rollback**](docs/ExtensionsV1beta1Api.md#create_namespaced_deployment_rollback_rollback) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback | -*ExtensionsV1beta1Api* | [**create_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#create_namespaced_horizontal_pod_autoscaler) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | *ExtensionsV1beta1Api* | [**create_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#create_namespaced_ingress) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | -*ExtensionsV1beta1Api* | [**create_namespaced_job**](docs/ExtensionsV1beta1Api.md#create_namespaced_job) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | *ExtensionsV1beta1Api* | [**create_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#create_namespaced_network_policy) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | *ExtensionsV1beta1Api* | [**create_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#create_namespaced_replica_set) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | +*ExtensionsV1beta1Api* | [**create_pod_security_policy**](docs/ExtensionsV1beta1Api.md#create_pod_security_policy) | **POST** /apis/extensions/v1beta1/podsecuritypolicies | *ExtensionsV1beta1Api* | [**create_third_party_resource**](docs/ExtensionsV1beta1Api.md#create_third_party_resource) | **POST** /apis/extensions/v1beta1/thirdpartyresources | *ExtensionsV1beta1Api* | [**delete_collection_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#delete_collection_namespaced_daemon_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | *ExtensionsV1beta1Api* | [**delete_collection_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#delete_collection_namespaced_deployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | -*ExtensionsV1beta1Api* | [**delete_collection_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#delete_collection_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | *ExtensionsV1beta1Api* | [**delete_collection_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#delete_collection_namespaced_ingress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | -*ExtensionsV1beta1Api* | [**delete_collection_namespaced_job**](docs/ExtensionsV1beta1Api.md#delete_collection_namespaced_job) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | *ExtensionsV1beta1Api* | [**delete_collection_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#delete_collection_namespaced_network_policy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | *ExtensionsV1beta1Api* | [**delete_collection_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#delete_collection_namespaced_replica_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | +*ExtensionsV1beta1Api* | [**delete_collection_pod_security_policy**](docs/ExtensionsV1beta1Api.md#delete_collection_pod_security_policy) | **DELETE** /apis/extensions/v1beta1/podsecuritypolicies | *ExtensionsV1beta1Api* | [**delete_collection_third_party_resource**](docs/ExtensionsV1beta1Api.md#delete_collection_third_party_resource) | **DELETE** /apis/extensions/v1beta1/thirdpartyresources | *ExtensionsV1beta1Api* | [**delete_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#delete_namespaced_daemon_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | *ExtensionsV1beta1Api* | [**delete_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#delete_namespaced_deployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | -*ExtensionsV1beta1Api* | [**delete_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#delete_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | *ExtensionsV1beta1Api* | [**delete_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#delete_namespaced_ingress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | -*ExtensionsV1beta1Api* | [**delete_namespaced_job**](docs/ExtensionsV1beta1Api.md#delete_namespaced_job) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | *ExtensionsV1beta1Api* | [**delete_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#delete_namespaced_network_policy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | *ExtensionsV1beta1Api* | [**delete_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#delete_namespaced_replica_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | +*ExtensionsV1beta1Api* | [**delete_pod_security_policy**](docs/ExtensionsV1beta1Api.md#delete_pod_security_policy) | **DELETE** /apis/extensions/v1beta1/podsecuritypolicies/{name} | *ExtensionsV1beta1Api* | [**delete_third_party_resource**](docs/ExtensionsV1beta1Api.md#delete_third_party_resource) | **DELETE** /apis/extensions/v1beta1/thirdpartyresources/{name} | *ExtensionsV1beta1Api* | [**get_api_resources**](docs/ExtensionsV1beta1Api.md#get_api_resources) | **GET** /apis/extensions/v1beta1/ | *ExtensionsV1beta1Api* | [**list_daemon_set_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_daemon_set_for_all_namespaces) | **GET** /apis/extensions/v1beta1/daemonsets | *ExtensionsV1beta1Api* | [**list_deployment_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_deployment_for_all_namespaces) | **GET** /apis/extensions/v1beta1/deployments | -*ExtensionsV1beta1Api* | [**list_horizontal_pod_autoscaler_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_horizontal_pod_autoscaler_for_all_namespaces) | **GET** /apis/extensions/v1beta1/horizontalpodautoscalers | *ExtensionsV1beta1Api* | [**list_ingress_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_ingress_for_all_namespaces) | **GET** /apis/extensions/v1beta1/ingresses | -*ExtensionsV1beta1Api* | [**list_job_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_job_for_all_namespaces) | **GET** /apis/extensions/v1beta1/jobs | *ExtensionsV1beta1Api* | [**list_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#list_namespaced_daemon_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | *ExtensionsV1beta1Api* | [**list_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#list_namespaced_deployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | -*ExtensionsV1beta1Api* | [**list_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#list_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | *ExtensionsV1beta1Api* | [**list_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#list_namespaced_ingress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | -*ExtensionsV1beta1Api* | [**list_namespaced_job**](docs/ExtensionsV1beta1Api.md#list_namespaced_job) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | *ExtensionsV1beta1Api* | [**list_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#list_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | *ExtensionsV1beta1Api* | [**list_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#list_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | *ExtensionsV1beta1Api* | [**list_network_policy_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_network_policy_for_all_namespaces) | **GET** /apis/extensions/v1beta1/networkpolicies | +*ExtensionsV1beta1Api* | [**list_pod_security_policy**](docs/ExtensionsV1beta1Api.md#list_pod_security_policy) | **GET** /apis/extensions/v1beta1/podsecuritypolicies | *ExtensionsV1beta1Api* | [**list_replica_set_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#list_replica_set_for_all_namespaces) | **GET** /apis/extensions/v1beta1/replicasets | *ExtensionsV1beta1Api* | [**list_third_party_resource**](docs/ExtensionsV1beta1Api.md#list_third_party_resource) | **GET** /apis/extensions/v1beta1/thirdpartyresources | *ExtensionsV1beta1Api* | [**patch_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#patch_namespaced_daemon_set) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | @@ -442,51 +464,42 @@ Class | Method | HTTP request | Description *ExtensionsV1beta1Api* | [**patch_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#patch_namespaced_deployment) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | *ExtensionsV1beta1Api* | [**patch_namespaced_deployment_status**](docs/ExtensionsV1beta1Api.md#patch_namespaced_deployment_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | *ExtensionsV1beta1Api* | [**patch_namespaced_deployments_scale**](docs/ExtensionsV1beta1Api.md#patch_namespaced_deployments_scale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -*ExtensionsV1beta1Api* | [**patch_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#patch_namespaced_horizontal_pod_autoscaler) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*ExtensionsV1beta1Api* | [**patch_namespaced_horizontal_pod_autoscaler_status**](docs/ExtensionsV1beta1Api.md#patch_namespaced_horizontal_pod_autoscaler_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | *ExtensionsV1beta1Api* | [**patch_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#patch_namespaced_ingress) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | *ExtensionsV1beta1Api* | [**patch_namespaced_ingress_status**](docs/ExtensionsV1beta1Api.md#patch_namespaced_ingress_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | -*ExtensionsV1beta1Api* | [**patch_namespaced_job**](docs/ExtensionsV1beta1Api.md#patch_namespaced_job) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | -*ExtensionsV1beta1Api* | [**patch_namespaced_job_status**](docs/ExtensionsV1beta1Api.md#patch_namespaced_job_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | *ExtensionsV1beta1Api* | [**patch_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#patch_namespaced_network_policy) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | *ExtensionsV1beta1Api* | [**patch_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#patch_namespaced_replica_set) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | *ExtensionsV1beta1Api* | [**patch_namespaced_replica_set_status**](docs/ExtensionsV1beta1Api.md#patch_namespaced_replica_set_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | *ExtensionsV1beta1Api* | [**patch_namespaced_replicasets_scale**](docs/ExtensionsV1beta1Api.md#patch_namespaced_replicasets_scale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | *ExtensionsV1beta1Api* | [**patch_namespaced_replicationcontrollers_scale**](docs/ExtensionsV1beta1Api.md#patch_namespaced_replicationcontrollers_scale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +*ExtensionsV1beta1Api* | [**patch_pod_security_policy**](docs/ExtensionsV1beta1Api.md#patch_pod_security_policy) | **PATCH** /apis/extensions/v1beta1/podsecuritypolicies/{name} | *ExtensionsV1beta1Api* | [**patch_third_party_resource**](docs/ExtensionsV1beta1Api.md#patch_third_party_resource) | **PATCH** /apis/extensions/v1beta1/thirdpartyresources/{name} | *ExtensionsV1beta1Api* | [**read_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#read_namespaced_daemon_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | *ExtensionsV1beta1Api* | [**read_namespaced_daemon_set_status**](docs/ExtensionsV1beta1Api.md#read_namespaced_daemon_set_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | *ExtensionsV1beta1Api* | [**read_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#read_namespaced_deployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | *ExtensionsV1beta1Api* | [**read_namespaced_deployment_status**](docs/ExtensionsV1beta1Api.md#read_namespaced_deployment_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | *ExtensionsV1beta1Api* | [**read_namespaced_deployments_scale**](docs/ExtensionsV1beta1Api.md#read_namespaced_deployments_scale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -*ExtensionsV1beta1Api* | [**read_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#read_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*ExtensionsV1beta1Api* | [**read_namespaced_horizontal_pod_autoscaler_status**](docs/ExtensionsV1beta1Api.md#read_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | *ExtensionsV1beta1Api* | [**read_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#read_namespaced_ingress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | *ExtensionsV1beta1Api* | [**read_namespaced_ingress_status**](docs/ExtensionsV1beta1Api.md#read_namespaced_ingress_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | -*ExtensionsV1beta1Api* | [**read_namespaced_job**](docs/ExtensionsV1beta1Api.md#read_namespaced_job) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | -*ExtensionsV1beta1Api* | [**read_namespaced_job_status**](docs/ExtensionsV1beta1Api.md#read_namespaced_job_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | *ExtensionsV1beta1Api* | [**read_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#read_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | *ExtensionsV1beta1Api* | [**read_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#read_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | *ExtensionsV1beta1Api* | [**read_namespaced_replica_set_status**](docs/ExtensionsV1beta1Api.md#read_namespaced_replica_set_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | *ExtensionsV1beta1Api* | [**read_namespaced_replicasets_scale**](docs/ExtensionsV1beta1Api.md#read_namespaced_replicasets_scale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | *ExtensionsV1beta1Api* | [**read_namespaced_replicationcontrollers_scale**](docs/ExtensionsV1beta1Api.md#read_namespaced_replicationcontrollers_scale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +*ExtensionsV1beta1Api* | [**read_pod_security_policy**](docs/ExtensionsV1beta1Api.md#read_pod_security_policy) | **GET** /apis/extensions/v1beta1/podsecuritypolicies/{name} | *ExtensionsV1beta1Api* | [**read_third_party_resource**](docs/ExtensionsV1beta1Api.md#read_third_party_resource) | **GET** /apis/extensions/v1beta1/thirdpartyresources/{name} | *ExtensionsV1beta1Api* | [**replace_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#replace_namespaced_daemon_set) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | *ExtensionsV1beta1Api* | [**replace_namespaced_daemon_set_status**](docs/ExtensionsV1beta1Api.md#replace_namespaced_daemon_set_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | *ExtensionsV1beta1Api* | [**replace_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#replace_namespaced_deployment) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | *ExtensionsV1beta1Api* | [**replace_namespaced_deployment_status**](docs/ExtensionsV1beta1Api.md#replace_namespaced_deployment_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | *ExtensionsV1beta1Api* | [**replace_namespaced_deployments_scale**](docs/ExtensionsV1beta1Api.md#replace_namespaced_deployments_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -*ExtensionsV1beta1Api* | [**replace_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#replace_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*ExtensionsV1beta1Api* | [**replace_namespaced_horizontal_pod_autoscaler_status**](docs/ExtensionsV1beta1Api.md#replace_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | *ExtensionsV1beta1Api* | [**replace_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#replace_namespaced_ingress) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | *ExtensionsV1beta1Api* | [**replace_namespaced_ingress_status**](docs/ExtensionsV1beta1Api.md#replace_namespaced_ingress_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | -*ExtensionsV1beta1Api* | [**replace_namespaced_job**](docs/ExtensionsV1beta1Api.md#replace_namespaced_job) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | -*ExtensionsV1beta1Api* | [**replace_namespaced_job_status**](docs/ExtensionsV1beta1Api.md#replace_namespaced_job_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | *ExtensionsV1beta1Api* | [**replace_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#replace_namespaced_network_policy) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | *ExtensionsV1beta1Api* | [**replace_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#replace_namespaced_replica_set) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | *ExtensionsV1beta1Api* | [**replace_namespaced_replica_set_status**](docs/ExtensionsV1beta1Api.md#replace_namespaced_replica_set_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | *ExtensionsV1beta1Api* | [**replace_namespaced_replicasets_scale**](docs/ExtensionsV1beta1Api.md#replace_namespaced_replicasets_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | *ExtensionsV1beta1Api* | [**replace_namespaced_replicationcontrollers_scale**](docs/ExtensionsV1beta1Api.md#replace_namespaced_replicationcontrollers_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +*ExtensionsV1beta1Api* | [**replace_pod_security_policy**](docs/ExtensionsV1beta1Api.md#replace_pod_security_policy) | **PUT** /apis/extensions/v1beta1/podsecuritypolicies/{name} | *ExtensionsV1beta1Api* | [**replace_third_party_resource**](docs/ExtensionsV1beta1Api.md#replace_third_party_resource) | **PUT** /apis/extensions/v1beta1/thirdpartyresources/{name} | *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/ | @@ -535,7 +548,56 @@ Class | Method | HTTP request | Description *RbacAuthorizationV1alpha1Api* | [**replace_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#replace_cluster_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | *RbacAuthorizationV1alpha1Api* | [**replace_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#replace_namespaced_role) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | *RbacAuthorizationV1alpha1Api* | [**replace_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#replace_namespaced_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +*RbacAuthorizationV1beta1Api* | [**create_cluster_role**](docs/RbacAuthorizationV1beta1Api.md#create_cluster_role) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | +*RbacAuthorizationV1beta1Api* | [**create_cluster_role_binding**](docs/RbacAuthorizationV1beta1Api.md#create_cluster_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | +*RbacAuthorizationV1beta1Api* | [**create_namespaced_role**](docs/RbacAuthorizationV1beta1Api.md#create_namespaced_role) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | +*RbacAuthorizationV1beta1Api* | [**create_namespaced_role_binding**](docs/RbacAuthorizationV1beta1Api.md#create_namespaced_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | +*RbacAuthorizationV1beta1Api* | [**delete_cluster_role**](docs/RbacAuthorizationV1beta1Api.md#delete_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | +*RbacAuthorizationV1beta1Api* | [**delete_cluster_role_binding**](docs/RbacAuthorizationV1beta1Api.md#delete_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | +*RbacAuthorizationV1beta1Api* | [**delete_collection_cluster_role**](docs/RbacAuthorizationV1beta1Api.md#delete_collection_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | +*RbacAuthorizationV1beta1Api* | [**delete_collection_cluster_role_binding**](docs/RbacAuthorizationV1beta1Api.md#delete_collection_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | +*RbacAuthorizationV1beta1Api* | [**delete_collection_namespaced_role**](docs/RbacAuthorizationV1beta1Api.md#delete_collection_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | +*RbacAuthorizationV1beta1Api* | [**delete_collection_namespaced_role_binding**](docs/RbacAuthorizationV1beta1Api.md#delete_collection_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | +*RbacAuthorizationV1beta1Api* | [**delete_namespaced_role**](docs/RbacAuthorizationV1beta1Api.md#delete_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | +*RbacAuthorizationV1beta1Api* | [**delete_namespaced_role_binding**](docs/RbacAuthorizationV1beta1Api.md#delete_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | +*RbacAuthorizationV1beta1Api* | [**get_api_resources**](docs/RbacAuthorizationV1beta1Api.md#get_api_resources) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/ | +*RbacAuthorizationV1beta1Api* | [**list_cluster_role**](docs/RbacAuthorizationV1beta1Api.md#list_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | +*RbacAuthorizationV1beta1Api* | [**list_cluster_role_binding**](docs/RbacAuthorizationV1beta1Api.md#list_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | +*RbacAuthorizationV1beta1Api* | [**list_namespaced_role**](docs/RbacAuthorizationV1beta1Api.md#list_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | +*RbacAuthorizationV1beta1Api* | [**list_namespaced_role_binding**](docs/RbacAuthorizationV1beta1Api.md#list_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | +*RbacAuthorizationV1beta1Api* | [**list_role_binding_for_all_namespaces**](docs/RbacAuthorizationV1beta1Api.md#list_role_binding_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/rolebindings | +*RbacAuthorizationV1beta1Api* | [**list_role_for_all_namespaces**](docs/RbacAuthorizationV1beta1Api.md#list_role_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/roles | +*RbacAuthorizationV1beta1Api* | [**patch_cluster_role**](docs/RbacAuthorizationV1beta1Api.md#patch_cluster_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | +*RbacAuthorizationV1beta1Api* | [**patch_cluster_role_binding**](docs/RbacAuthorizationV1beta1Api.md#patch_cluster_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | +*RbacAuthorizationV1beta1Api* | [**patch_namespaced_role**](docs/RbacAuthorizationV1beta1Api.md#patch_namespaced_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | +*RbacAuthorizationV1beta1Api* | [**patch_namespaced_role_binding**](docs/RbacAuthorizationV1beta1Api.md#patch_namespaced_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | +*RbacAuthorizationV1beta1Api* | [**read_cluster_role**](docs/RbacAuthorizationV1beta1Api.md#read_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | +*RbacAuthorizationV1beta1Api* | [**read_cluster_role_binding**](docs/RbacAuthorizationV1beta1Api.md#read_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | +*RbacAuthorizationV1beta1Api* | [**read_namespaced_role**](docs/RbacAuthorizationV1beta1Api.md#read_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | +*RbacAuthorizationV1beta1Api* | [**read_namespaced_role_binding**](docs/RbacAuthorizationV1beta1Api.md#read_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | +*RbacAuthorizationV1beta1Api* | [**replace_cluster_role**](docs/RbacAuthorizationV1beta1Api.md#replace_cluster_role) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | +*RbacAuthorizationV1beta1Api* | [**replace_cluster_role_binding**](docs/RbacAuthorizationV1beta1Api.md#replace_cluster_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | +*RbacAuthorizationV1beta1Api* | [**replace_namespaced_role**](docs/RbacAuthorizationV1beta1Api.md#replace_namespaced_role) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | +*RbacAuthorizationV1beta1Api* | [**replace_namespaced_role_binding**](docs/RbacAuthorizationV1beta1Api.md#replace_namespaced_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | +*SettingsApi* | [**get_api_group**](docs/SettingsApi.md#get_api_group) | **GET** /apis/settings.k8s.io/ | +*SettingsV1alpha1Api* | [**create_namespaced_pod_preset**](docs/SettingsV1alpha1Api.md#create_namespaced_pod_preset) | **POST** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | +*SettingsV1alpha1Api* | [**delete_collection_namespaced_pod_preset**](docs/SettingsV1alpha1Api.md#delete_collection_namespaced_pod_preset) | **DELETE** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | +*SettingsV1alpha1Api* | [**delete_namespaced_pod_preset**](docs/SettingsV1alpha1Api.md#delete_namespaced_pod_preset) | **DELETE** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | +*SettingsV1alpha1Api* | [**get_api_resources**](docs/SettingsV1alpha1Api.md#get_api_resources) | **GET** /apis/settings.k8s.io/v1alpha1/ | +*SettingsV1alpha1Api* | [**list_namespaced_pod_preset**](docs/SettingsV1alpha1Api.md#list_namespaced_pod_preset) | **GET** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | +*SettingsV1alpha1Api* | [**list_pod_preset_for_all_namespaces**](docs/SettingsV1alpha1Api.md#list_pod_preset_for_all_namespaces) | **GET** /apis/settings.k8s.io/v1alpha1/podpresets | +*SettingsV1alpha1Api* | [**patch_namespaced_pod_preset**](docs/SettingsV1alpha1Api.md#patch_namespaced_pod_preset) | **PATCH** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | +*SettingsV1alpha1Api* | [**read_namespaced_pod_preset**](docs/SettingsV1alpha1Api.md#read_namespaced_pod_preset) | **GET** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | +*SettingsV1alpha1Api* | [**replace_namespaced_pod_preset**](docs/SettingsV1alpha1Api.md#replace_namespaced_pod_preset) | **PUT** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | *StorageApi* | [**get_api_group**](docs/StorageApi.md#get_api_group) | **GET** /apis/storage.k8s.io/ | +*StorageV1Api* | [**create_storage_class**](docs/StorageV1Api.md#create_storage_class) | **POST** /apis/storage.k8s.io/v1/storageclasses | +*StorageV1Api* | [**delete_collection_storage_class**](docs/StorageV1Api.md#delete_collection_storage_class) | **DELETE** /apis/storage.k8s.io/v1/storageclasses | +*StorageV1Api* | [**delete_storage_class**](docs/StorageV1Api.md#delete_storage_class) | **DELETE** /apis/storage.k8s.io/v1/storageclasses/{name} | +*StorageV1Api* | [**get_api_resources**](docs/StorageV1Api.md#get_api_resources) | **GET** /apis/storage.k8s.io/v1/ | +*StorageV1Api* | [**list_storage_class**](docs/StorageV1Api.md#list_storage_class) | **GET** /apis/storage.k8s.io/v1/storageclasses | +*StorageV1Api* | [**patch_storage_class**](docs/StorageV1Api.md#patch_storage_class) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | +*StorageV1Api* | [**read_storage_class**](docs/StorageV1Api.md#read_storage_class) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | +*StorageV1Api* | [**replace_storage_class**](docs/StorageV1Api.md#replace_storage_class) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | *StorageV1beta1Api* | [**create_storage_class**](docs/StorageV1beta1Api.md#create_storage_class) | **POST** /apis/storage.k8s.io/v1beta1/storageclasses | *StorageV1beta1Api* | [**delete_collection_storage_class**](docs/StorageV1beta1Api.md#delete_collection_storage_class) | **DELETE** /apis/storage.k8s.io/v1beta1/storageclasses | *StorageV1beta1Api* | [**delete_storage_class**](docs/StorageV1beta1Api.md#delete_storage_class) | **DELETE** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | @@ -549,24 +611,40 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AppsV1beta1Deployment](docs/AppsV1beta1Deployment.md) + - [AppsV1beta1DeploymentCondition](docs/AppsV1beta1DeploymentCondition.md) + - [AppsV1beta1DeploymentList](docs/AppsV1beta1DeploymentList.md) + - [AppsV1beta1DeploymentRollback](docs/AppsV1beta1DeploymentRollback.md) + - [AppsV1beta1DeploymentSpec](docs/AppsV1beta1DeploymentSpec.md) + - [AppsV1beta1DeploymentStatus](docs/AppsV1beta1DeploymentStatus.md) + - [AppsV1beta1DeploymentStrategy](docs/AppsV1beta1DeploymentStrategy.md) + - [AppsV1beta1RollbackConfig](docs/AppsV1beta1RollbackConfig.md) + - [AppsV1beta1RollingUpdateDeployment](docs/AppsV1beta1RollingUpdateDeployment.md) + - [AppsV1beta1Scale](docs/AppsV1beta1Scale.md) + - [AppsV1beta1ScaleSpec](docs/AppsV1beta1ScaleSpec.md) + - [AppsV1beta1ScaleStatus](docs/AppsV1beta1ScaleStatus.md) + - [ExtensionsV1beta1Deployment](docs/ExtensionsV1beta1Deployment.md) + - [ExtensionsV1beta1DeploymentCondition](docs/ExtensionsV1beta1DeploymentCondition.md) + - [ExtensionsV1beta1DeploymentList](docs/ExtensionsV1beta1DeploymentList.md) + - [ExtensionsV1beta1DeploymentRollback](docs/ExtensionsV1beta1DeploymentRollback.md) + - [ExtensionsV1beta1DeploymentSpec](docs/ExtensionsV1beta1DeploymentSpec.md) + - [ExtensionsV1beta1DeploymentStatus](docs/ExtensionsV1beta1DeploymentStatus.md) + - [ExtensionsV1beta1DeploymentStrategy](docs/ExtensionsV1beta1DeploymentStrategy.md) + - [ExtensionsV1beta1RollbackConfig](docs/ExtensionsV1beta1RollbackConfig.md) + - [ExtensionsV1beta1RollingUpdateDeployment](docs/ExtensionsV1beta1RollingUpdateDeployment.md) + - [ExtensionsV1beta1Scale](docs/ExtensionsV1beta1Scale.md) + - [ExtensionsV1beta1ScaleSpec](docs/ExtensionsV1beta1ScaleSpec.md) + - [ExtensionsV1beta1ScaleStatus](docs/ExtensionsV1beta1ScaleStatus.md) - [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) + - [V1APIGroup](docs/V1APIGroup.md) + - [V1APIGroupList](docs/V1APIGroupList.md) + - [V1APIResource](docs/V1APIResource.md) + - [V1APIResourceList](docs/V1APIResourceList.md) + - [V1APIVersions](docs/V1APIVersions.md) - [V1AWSElasticBlockStoreVolumeSource](docs/V1AWSElasticBlockStoreVolumeSource.md) + - [V1Affinity](docs/V1Affinity.md) - [V1AttachedVolume](docs/V1AttachedVolume.md) - [V1AzureDiskVolumeSource](docs/V1AzureDiskVolumeSource.md) - [V1AzureFileVolumeSource](docs/V1AzureFileVolumeSource.md) @@ -578,8 +656,10 @@ Class | Method | HTTP request | Description - [V1ComponentStatus](docs/V1ComponentStatus.md) - [V1ComponentStatusList](docs/V1ComponentStatusList.md) - [V1ConfigMap](docs/V1ConfigMap.md) + - [V1ConfigMapEnvSource](docs/V1ConfigMapEnvSource.md) - [V1ConfigMapKeySelector](docs/V1ConfigMapKeySelector.md) - [V1ConfigMapList](docs/V1ConfigMapList.md) + - [V1ConfigMapProjection](docs/V1ConfigMapProjection.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1Container](docs/V1Container.md) - [V1ContainerImage](docs/V1ContainerImage.md) @@ -592,6 +672,7 @@ Class | Method | HTTP request | Description - [V1CrossVersionObjectReference](docs/V1CrossVersionObjectReference.md) - [V1DaemonEndpoint](docs/V1DaemonEndpoint.md) - [V1DeleteOptions](docs/V1DeleteOptions.md) + - [V1DownwardAPIProjection](docs/V1DownwardAPIProjection.md) - [V1DownwardAPIVolumeFile](docs/V1DownwardAPIVolumeFile.md) - [V1DownwardAPIVolumeSource](docs/V1DownwardAPIVolumeSource.md) - [V1EmptyDirVolumeSource](docs/V1EmptyDirVolumeSource.md) @@ -600,6 +681,7 @@ Class | Method | HTTP request | Description - [V1EndpointSubset](docs/V1EndpointSubset.md) - [V1Endpoints](docs/V1Endpoints.md) - [V1EndpointsList](docs/V1EndpointsList.md) + - [V1EnvFromSource](docs/V1EnvFromSource.md) - [V1EnvVar](docs/V1EnvVar.md) - [V1EnvVarSource](docs/V1EnvVarSource.md) - [V1Event](docs/V1Event.md) @@ -612,6 +694,7 @@ Class | Method | HTTP request | Description - [V1GCEPersistentDiskVolumeSource](docs/V1GCEPersistentDiskVolumeSource.md) - [V1GitRepoVolumeSource](docs/V1GitRepoVolumeSource.md) - [V1GlusterfsVolumeSource](docs/V1GlusterfsVolumeSource.md) + - [V1GroupVersionForDiscovery](docs/V1GroupVersionForDiscovery.md) - [V1HTTPGetAction](docs/V1HTTPGetAction.md) - [V1HTTPHeader](docs/V1HTTPHeader.md) - [V1Handler](docs/V1Handler.md) @@ -627,14 +710,18 @@ Class | Method | HTTP request | Description - [V1JobSpec](docs/V1JobSpec.md) - [V1JobStatus](docs/V1JobStatus.md) - [V1KeyToPath](docs/V1KeyToPath.md) + - [V1LabelSelector](docs/V1LabelSelector.md) + - [V1LabelSelectorRequirement](docs/V1LabelSelectorRequirement.md) - [V1Lifecycle](docs/V1Lifecycle.md) - [V1LimitRange](docs/V1LimitRange.md) - [V1LimitRangeItem](docs/V1LimitRangeItem.md) - [V1LimitRangeList](docs/V1LimitRangeList.md) - [V1LimitRangeSpec](docs/V1LimitRangeSpec.md) + - [V1ListMeta](docs/V1ListMeta.md) - [V1LoadBalancerIngress](docs/V1LoadBalancerIngress.md) - [V1LoadBalancerStatus](docs/V1LoadBalancerStatus.md) - [V1LocalObjectReference](docs/V1LocalObjectReference.md) + - [V1LocalSubjectAccessReview](docs/V1LocalSubjectAccessReview.md) - [V1NFSVolumeSource](docs/V1NFSVolumeSource.md) - [V1Namespace](docs/V1Namespace.md) - [V1NamespaceList](docs/V1NamespaceList.md) @@ -642,12 +729,17 @@ Class | Method | HTTP request | Description - [V1NamespaceStatus](docs/V1NamespaceStatus.md) - [V1Node](docs/V1Node.md) - [V1NodeAddress](docs/V1NodeAddress.md) + - [V1NodeAffinity](docs/V1NodeAffinity.md) - [V1NodeCondition](docs/V1NodeCondition.md) - [V1NodeDaemonEndpoints](docs/V1NodeDaemonEndpoints.md) - [V1NodeList](docs/V1NodeList.md) + - [V1NodeSelector](docs/V1NodeSelector.md) + - [V1NodeSelectorRequirement](docs/V1NodeSelectorRequirement.md) + - [V1NodeSelectorTerm](docs/V1NodeSelectorTerm.md) - [V1NodeSpec](docs/V1NodeSpec.md) - [V1NodeStatus](docs/V1NodeStatus.md) - [V1NodeSystemInfo](docs/V1NodeSystemInfo.md) + - [V1NonResourceAttributes](docs/V1NonResourceAttributes.md) - [V1ObjectFieldSelector](docs/V1ObjectFieldSelector.md) - [V1ObjectMeta](docs/V1ObjectMeta.md) - [V1ObjectReference](docs/V1ObjectReference.md) @@ -663,6 +755,9 @@ Class | Method | HTTP request | Description - [V1PersistentVolumeStatus](docs/V1PersistentVolumeStatus.md) - [V1PhotonPersistentDiskVolumeSource](docs/V1PhotonPersistentDiskVolumeSource.md) - [V1Pod](docs/V1Pod.md) + - [V1PodAffinity](docs/V1PodAffinity.md) + - [V1PodAffinityTerm](docs/V1PodAffinityTerm.md) + - [V1PodAntiAffinity](docs/V1PodAntiAffinity.md) - [V1PodCondition](docs/V1PodCondition.md) - [V1PodList](docs/V1PodList.md) - [V1PodSecurityContext](docs/V1PodSecurityContext.md) @@ -671,8 +766,11 @@ Class | Method | HTTP request | Description - [V1PodTemplate](docs/V1PodTemplate.md) - [V1PodTemplateList](docs/V1PodTemplateList.md) - [V1PodTemplateSpec](docs/V1PodTemplateSpec.md) + - [V1PortworxVolumeSource](docs/V1PortworxVolumeSource.md) - [V1Preconditions](docs/V1Preconditions.md) + - [V1PreferredSchedulingTerm](docs/V1PreferredSchedulingTerm.md) - [V1Probe](docs/V1Probe.md) + - [V1ProjectedVolumeSource](docs/V1ProjectedVolumeSource.md) - [V1QuobyteVolumeSource](docs/V1QuobyteVolumeSource.md) - [V1RBDVolumeSource](docs/V1RBDVolumeSource.md) - [V1ReplicationController](docs/V1ReplicationController.md) @@ -680,6 +778,7 @@ Class | Method | HTTP request | Description - [V1ReplicationControllerList](docs/V1ReplicationControllerList.md) - [V1ReplicationControllerSpec](docs/V1ReplicationControllerSpec.md) - [V1ReplicationControllerStatus](docs/V1ReplicationControllerStatus.md) + - [V1ResourceAttributes](docs/V1ResourceAttributes.md) - [V1ResourceFieldSelector](docs/V1ResourceFieldSelector.md) - [V1ResourceQuota](docs/V1ResourceQuota.md) - [V1ResourceQuotaList](docs/V1ResourceQuotaList.md) @@ -688,13 +787,19 @@ Class | Method | HTTP request | Description - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1SELinuxOptions](docs/V1SELinuxOptions.md) - [V1Scale](docs/V1Scale.md) + - [V1ScaleIOVolumeSource](docs/V1ScaleIOVolumeSource.md) - [V1ScaleSpec](docs/V1ScaleSpec.md) - [V1ScaleStatus](docs/V1ScaleStatus.md) - [V1Secret](docs/V1Secret.md) + - [V1SecretEnvSource](docs/V1SecretEnvSource.md) - [V1SecretKeySelector](docs/V1SecretKeySelector.md) - [V1SecretList](docs/V1SecretList.md) + - [V1SecretProjection](docs/V1SecretProjection.md) - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - [V1SecurityContext](docs/V1SecurityContext.md) + - [V1SelfSubjectAccessReview](docs/V1SelfSubjectAccessReview.md) + - [V1SelfSubjectAccessReviewSpec](docs/V1SelfSubjectAccessReviewSpec.md) + - [V1ServerAddressByClientCIDR](docs/V1ServerAddressByClientCIDR.md) - [V1Service](docs/V1Service.md) - [V1ServiceAccount](docs/V1ServiceAccount.md) - [V1ServiceAccountList](docs/V1ServiceAccountList.md) @@ -702,19 +807,35 @@ Class | Method | HTTP request | Description - [V1ServicePort](docs/V1ServicePort.md) - [V1ServiceSpec](docs/V1ServiceSpec.md) - [V1ServiceStatus](docs/V1ServiceStatus.md) + - [V1Status](docs/V1Status.md) + - [V1StatusCause](docs/V1StatusCause.md) + - [V1StatusDetails](docs/V1StatusDetails.md) + - [V1StorageClass](docs/V1StorageClass.md) + - [V1StorageClassList](docs/V1StorageClassList.md) + - [V1SubjectAccessReview](docs/V1SubjectAccessReview.md) + - [V1SubjectAccessReviewSpec](docs/V1SubjectAccessReviewSpec.md) + - [V1SubjectAccessReviewStatus](docs/V1SubjectAccessReviewStatus.md) - [V1TCPSocketAction](docs/V1TCPSocketAction.md) + - [V1Taint](docs/V1Taint.md) + - [V1Time](docs/V1Time.md) + - [V1TokenReview](docs/V1TokenReview.md) + - [V1TokenReviewSpec](docs/V1TokenReviewSpec.md) + - [V1TokenReviewStatus](docs/V1TokenReviewStatus.md) + - [V1Toleration](docs/V1Toleration.md) + - [V1UserInfo](docs/V1UserInfo.md) - [V1Volume](docs/V1Volume.md) - [V1VolumeMount](docs/V1VolumeMount.md) + - [V1VolumeProjection](docs/V1VolumeProjection.md) - [V1VsphereVirtualDiskVolumeSource](docs/V1VsphereVirtualDiskVolumeSource.md) - - [V1alpha1CertificateSigningRequest](docs/V1alpha1CertificateSigningRequest.md) - - [V1alpha1CertificateSigningRequestCondition](docs/V1alpha1CertificateSigningRequestCondition.md) - - [V1alpha1CertificateSigningRequestList](docs/V1alpha1CertificateSigningRequestList.md) - - [V1alpha1CertificateSigningRequestSpec](docs/V1alpha1CertificateSigningRequestSpec.md) - - [V1alpha1CertificateSigningRequestStatus](docs/V1alpha1CertificateSigningRequestStatus.md) + - [V1WatchEvent](docs/V1WatchEvent.md) + - [V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.md) - [V1alpha1ClusterRole](docs/V1alpha1ClusterRole.md) - [V1alpha1ClusterRoleBinding](docs/V1alpha1ClusterRoleBinding.md) - [V1alpha1ClusterRoleBindingList](docs/V1alpha1ClusterRoleBindingList.md) - [V1alpha1ClusterRoleList](docs/V1alpha1ClusterRoleList.md) + - [V1alpha1PodPreset](docs/V1alpha1PodPreset.md) + - [V1alpha1PodPresetList](docs/V1alpha1PodPresetList.md) + - [V1alpha1PodPresetSpec](docs/V1alpha1PodPresetSpec.md) - [V1alpha1PolicyRule](docs/V1alpha1PolicyRule.md) - [V1alpha1Role](docs/V1alpha1Role.md) - [V1alpha1RoleBinding](docs/V1alpha1RoleBinding.md) @@ -723,25 +844,26 @@ Class | Method | HTTP request | Description - [V1alpha1RoleRef](docs/V1alpha1RoleRef.md) - [V1alpha1Subject](docs/V1alpha1Subject.md) - [V1beta1APIVersion](docs/V1beta1APIVersion.md) - - [V1beta1CPUTargetUtilization](docs/V1beta1CPUTargetUtilization.md) + - [V1beta1CertificateSigningRequest](docs/V1beta1CertificateSigningRequest.md) + - [V1beta1CertificateSigningRequestCondition](docs/V1beta1CertificateSigningRequestCondition.md) + - [V1beta1CertificateSigningRequestList](docs/V1beta1CertificateSigningRequestList.md) + - [V1beta1CertificateSigningRequestSpec](docs/V1beta1CertificateSigningRequestSpec.md) + - [V1beta1CertificateSigningRequestStatus](docs/V1beta1CertificateSigningRequestStatus.md) + - [V1beta1ClusterRole](docs/V1beta1ClusterRole.md) + - [V1beta1ClusterRoleBinding](docs/V1beta1ClusterRoleBinding.md) + - [V1beta1ClusterRoleBindingList](docs/V1beta1ClusterRoleBindingList.md) + - [V1beta1ClusterRoleList](docs/V1beta1ClusterRoleList.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) + - [V1beta1DaemonSetUpdateStrategy](docs/V1beta1DaemonSetUpdateStrategy.md) - [V1beta1Eviction](docs/V1beta1Eviction.md) + - [V1beta1FSGroupStrategyOptions](docs/V1beta1FSGroupStrategyOptions.md) - [V1beta1HTTPIngressPath](docs/V1beta1HTTPIngressPath.md) - [V1beta1HTTPIngressRuleValue](docs/V1beta1HTTPIngressRuleValue.md) - - [V1beta1HorizontalPodAutoscaler](docs/V1beta1HorizontalPodAutoscaler.md) - - [V1beta1HorizontalPodAutoscalerList](docs/V1beta1HorizontalPodAutoscalerList.md) - - [V1beta1HorizontalPodAutoscalerSpec](docs/V1beta1HorizontalPodAutoscalerSpec.md) - - [V1beta1HorizontalPodAutoscalerStatus](docs/V1beta1HorizontalPodAutoscalerStatus.md) + - [V1beta1HostPortRange](docs/V1beta1HostPortRange.md) + - [V1beta1IDRange](docs/V1beta1IDRange.md) - [V1beta1Ingress](docs/V1beta1Ingress.md) - [V1beta1IngressBackend](docs/V1beta1IngressBackend.md) - [V1beta1IngressList](docs/V1beta1IngressList.md) @@ -749,11 +871,6 @@ Class | Method | HTTP request | Description - [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) @@ -766,17 +883,24 @@ Class | Method | HTTP request | Description - [V1beta1PodDisruptionBudgetList](docs/V1beta1PodDisruptionBudgetList.md) - [V1beta1PodDisruptionBudgetSpec](docs/V1beta1PodDisruptionBudgetSpec.md) - [V1beta1PodDisruptionBudgetStatus](docs/V1beta1PodDisruptionBudgetStatus.md) + - [V1beta1PodSecurityPolicy](docs/V1beta1PodSecurityPolicy.md) + - [V1beta1PodSecurityPolicyList](docs/V1beta1PodSecurityPolicyList.md) + - [V1beta1PodSecurityPolicySpec](docs/V1beta1PodSecurityPolicySpec.md) + - [V1beta1PolicyRule](docs/V1beta1PolicyRule.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) + - [V1beta1Role](docs/V1beta1Role.md) + - [V1beta1RoleBinding](docs/V1beta1RoleBinding.md) + - [V1beta1RoleBindingList](docs/V1beta1RoleBindingList.md) + - [V1beta1RoleList](docs/V1beta1RoleList.md) + - [V1beta1RoleRef](docs/V1beta1RoleRef.md) + - [V1beta1RollingUpdateDaemonSet](docs/V1beta1RollingUpdateDaemonSet.md) + - [V1beta1RunAsUserStrategyOptions](docs/V1beta1RunAsUserStrategyOptions.md) + - [V1beta1SELinuxStrategyOptions](docs/V1beta1SELinuxStrategyOptions.md) - [V1beta1SelfSubjectAccessReview](docs/V1beta1SelfSubjectAccessReview.md) - [V1beta1SelfSubjectAccessReviewSpec](docs/V1beta1SelfSubjectAccessReviewSpec.md) - [V1beta1StatefulSet](docs/V1beta1StatefulSet.md) @@ -785,10 +909,11 @@ Class | Method | HTTP request | Description - [V1beta1StatefulSetStatus](docs/V1beta1StatefulSetStatus.md) - [V1beta1StorageClass](docs/V1beta1StorageClass.md) - [V1beta1StorageClassList](docs/V1beta1StorageClassList.md) + - [V1beta1Subject](docs/V1beta1Subject.md) - [V1beta1SubjectAccessReview](docs/V1beta1SubjectAccessReview.md) - [V1beta1SubjectAccessReviewSpec](docs/V1beta1SubjectAccessReviewSpec.md) - [V1beta1SubjectAccessReviewStatus](docs/V1beta1SubjectAccessReviewStatus.md) - - [V1beta1SubresourceReference](docs/V1beta1SubresourceReference.md) + - [V1beta1SupplementalGroupsStrategyOptions](docs/V1beta1SupplementalGroupsStrategyOptions.md) - [V1beta1ThirdPartyResource](docs/V1beta1ThirdPartyResource.md) - [V1beta1ThirdPartyResourceList](docs/V1beta1ThirdPartyResourceList.md) - [V1beta1TokenReview](docs/V1beta1TokenReview.md) @@ -799,14 +924,21 @@ Class | Method | HTTP request | Description - [V2alpha1CronJobList](docs/V2alpha1CronJobList.md) - [V2alpha1CronJobSpec](docs/V2alpha1CronJobSpec.md) - [V2alpha1CronJobStatus](docs/V2alpha1CronJobStatus.md) - - [V2alpha1Job](docs/V2alpha1Job.md) - - [V2alpha1JobCondition](docs/V2alpha1JobCondition.md) - - [V2alpha1JobList](docs/V2alpha1JobList.md) - - [V2alpha1JobSpec](docs/V2alpha1JobSpec.md) - - [V2alpha1JobStatus](docs/V2alpha1JobStatus.md) + - [V2alpha1CrossVersionObjectReference](docs/V2alpha1CrossVersionObjectReference.md) + - [V2alpha1HorizontalPodAutoscaler](docs/V2alpha1HorizontalPodAutoscaler.md) + - [V2alpha1HorizontalPodAutoscalerList](docs/V2alpha1HorizontalPodAutoscalerList.md) + - [V2alpha1HorizontalPodAutoscalerSpec](docs/V2alpha1HorizontalPodAutoscalerSpec.md) + - [V2alpha1HorizontalPodAutoscalerStatus](docs/V2alpha1HorizontalPodAutoscalerStatus.md) - [V2alpha1JobTemplateSpec](docs/V2alpha1JobTemplateSpec.md) + - [V2alpha1MetricSpec](docs/V2alpha1MetricSpec.md) + - [V2alpha1MetricStatus](docs/V2alpha1MetricStatus.md) + - [V2alpha1ObjectMetricSource](docs/V2alpha1ObjectMetricSource.md) + - [V2alpha1ObjectMetricStatus](docs/V2alpha1ObjectMetricStatus.md) + - [V2alpha1PodsMetricSource](docs/V2alpha1PodsMetricSource.md) + - [V2alpha1PodsMetricStatus](docs/V2alpha1PodsMetricStatus.md) + - [V2alpha1ResourceMetricSource](docs/V2alpha1ResourceMetricSource.md) + - [V2alpha1ResourceMetricStatus](docs/V2alpha1ResourceMetricStatus.md) - [VersionInfo](docs/VersionInfo.md) - - [VersionedEvent](docs/VersionedEvent.md) ## Documentation For Authorization diff --git a/kubernetes/client/__init__.py b/kubernetes/client/__init__.py index 4925844df8..8382ba0a8d 100644 --- a/kubernetes/client/__init__.py +++ b/kubernetes/client/__init__.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -14,24 +14,40 @@ from __future__ import absolute_import # import models into sdk package +from .models.apps_v1beta1_deployment import AppsV1beta1Deployment +from .models.apps_v1beta1_deployment_condition import AppsV1beta1DeploymentCondition +from .models.apps_v1beta1_deployment_list import AppsV1beta1DeploymentList +from .models.apps_v1beta1_deployment_rollback import AppsV1beta1DeploymentRollback +from .models.apps_v1beta1_deployment_spec import AppsV1beta1DeploymentSpec +from .models.apps_v1beta1_deployment_status import AppsV1beta1DeploymentStatus +from .models.apps_v1beta1_deployment_strategy import AppsV1beta1DeploymentStrategy +from .models.apps_v1beta1_rollback_config import AppsV1beta1RollbackConfig +from .models.apps_v1beta1_rolling_update_deployment import AppsV1beta1RollingUpdateDeployment +from .models.apps_v1beta1_scale import AppsV1beta1Scale +from .models.apps_v1beta1_scale_spec import AppsV1beta1ScaleSpec +from .models.apps_v1beta1_scale_status import AppsV1beta1ScaleStatus +from .models.extensions_v1beta1_deployment import ExtensionsV1beta1Deployment +from .models.extensions_v1beta1_deployment_condition import ExtensionsV1beta1DeploymentCondition +from .models.extensions_v1beta1_deployment_list import ExtensionsV1beta1DeploymentList +from .models.extensions_v1beta1_deployment_rollback import ExtensionsV1beta1DeploymentRollback +from .models.extensions_v1beta1_deployment_spec import ExtensionsV1beta1DeploymentSpec +from .models.extensions_v1beta1_deployment_status import ExtensionsV1beta1DeploymentStatus +from .models.extensions_v1beta1_deployment_strategy import ExtensionsV1beta1DeploymentStrategy +from .models.extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig +from .models.extensions_v1beta1_rolling_update_deployment import ExtensionsV1beta1RollingUpdateDeployment +from .models.extensions_v1beta1_scale import ExtensionsV1beta1Scale +from .models.extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec +from .models.extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus 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_api_group import V1APIGroup +from .models.v1_api_group_list import V1APIGroupList +from .models.v1_api_resource import V1APIResource +from .models.v1_api_resource_list import V1APIResourceList +from .models.v1_api_versions import V1APIVersions from .models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource +from .models.v1_affinity import V1Affinity from .models.v1_attached_volume import V1AttachedVolume from .models.v1_azure_disk_volume_source import V1AzureDiskVolumeSource from .models.v1_azure_file_volume_source import V1AzureFileVolumeSource @@ -43,8 +59,10 @@ 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_env_source import V1ConfigMapEnvSource from .models.v1_config_map_key_selector import V1ConfigMapKeySelector from .models.v1_config_map_list import V1ConfigMapList +from .models.v1_config_map_projection import V1ConfigMapProjection from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container import V1Container from .models.v1_container_image import V1ContainerImage @@ -57,6 +75,7 @@ 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_downward_api_projection import V1DownwardAPIProjection from .models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile from .models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource from .models.v1_empty_dir_volume_source import V1EmptyDirVolumeSource @@ -65,6 +84,7 @@ from .models.v1_endpoint_subset import V1EndpointSubset from .models.v1_endpoints import V1Endpoints from .models.v1_endpoints_list import V1EndpointsList +from .models.v1_env_from_source import V1EnvFromSource from .models.v1_env_var import V1EnvVar from .models.v1_env_var_source import V1EnvVarSource from .models.v1_event import V1Event @@ -77,6 +97,7 @@ from .models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource from .models.v1_git_repo_volume_source import V1GitRepoVolumeSource from .models.v1_glusterfs_volume_source import V1GlusterfsVolumeSource +from .models.v1_group_version_for_discovery import V1GroupVersionForDiscovery from .models.v1_http_get_action import V1HTTPGetAction from .models.v1_http_header import V1HTTPHeader from .models.v1_handler import V1Handler @@ -92,14 +113,18 @@ from .models.v1_job_spec import V1JobSpec from .models.v1_job_status import V1JobStatus from .models.v1_key_to_path import V1KeyToPath +from .models.v1_label_selector import V1LabelSelector +from .models.v1_label_selector_requirement import V1LabelSelectorRequirement 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_list_meta import V1ListMeta 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_local_subject_access_review import V1LocalSubjectAccessReview from .models.v1_nfs_volume_source import V1NFSVolumeSource from .models.v1_namespace import V1Namespace from .models.v1_namespace_list import V1NamespaceList @@ -107,12 +132,17 @@ from .models.v1_namespace_status import V1NamespaceStatus from .models.v1_node import V1Node from .models.v1_node_address import V1NodeAddress +from .models.v1_node_affinity import V1NodeAffinity 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_selector import V1NodeSelector +from .models.v1_node_selector_requirement import V1NodeSelectorRequirement +from .models.v1_node_selector_term import V1NodeSelectorTerm 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_non_resource_attributes import V1NonResourceAttributes from .models.v1_object_field_selector import V1ObjectFieldSelector from .models.v1_object_meta import V1ObjectMeta from .models.v1_object_reference import V1ObjectReference @@ -128,6 +158,9 @@ from .models.v1_persistent_volume_status import V1PersistentVolumeStatus from .models.v1_photon_persistent_disk_volume_source import V1PhotonPersistentDiskVolumeSource from .models.v1_pod import V1Pod +from .models.v1_pod_affinity import V1PodAffinity +from .models.v1_pod_affinity_term import V1PodAffinityTerm +from .models.v1_pod_anti_affinity import V1PodAntiAffinity from .models.v1_pod_condition import V1PodCondition from .models.v1_pod_list import V1PodList from .models.v1_pod_security_context import V1PodSecurityContext @@ -136,8 +169,11 @@ 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_portworx_volume_source import V1PortworxVolumeSource from .models.v1_preconditions import V1Preconditions +from .models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm from .models.v1_probe import V1Probe +from .models.v1_projected_volume_source import V1ProjectedVolumeSource from .models.v1_quobyte_volume_source import V1QuobyteVolumeSource from .models.v1_rbd_volume_source import V1RBDVolumeSource from .models.v1_replication_controller import V1ReplicationController @@ -145,6 +181,7 @@ 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_attributes import V1ResourceAttributes from .models.v1_resource_field_selector import V1ResourceFieldSelector from .models.v1_resource_quota import V1ResourceQuota from .models.v1_resource_quota_list import V1ResourceQuotaList @@ -153,13 +190,19 @@ 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_io_volume_source import V1ScaleIOVolumeSource from .models.v1_scale_spec import V1ScaleSpec from .models.v1_scale_status import V1ScaleStatus from .models.v1_secret import V1Secret +from .models.v1_secret_env_source import V1SecretEnvSource from .models.v1_secret_key_selector import V1SecretKeySelector from .models.v1_secret_list import V1SecretList +from .models.v1_secret_projection import V1SecretProjection from .models.v1_secret_volume_source import V1SecretVolumeSource from .models.v1_security_context import V1SecurityContext +from .models.v1_self_subject_access_review import V1SelfSubjectAccessReview +from .models.v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec +from .models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR from .models.v1_service import V1Service from .models.v1_service_account import V1ServiceAccount from .models.v1_service_account_list import V1ServiceAccountList @@ -167,19 +210,35 @@ from .models.v1_service_port import V1ServicePort from .models.v1_service_spec import V1ServiceSpec from .models.v1_service_status import V1ServiceStatus +from .models.v1_status import V1Status +from .models.v1_status_cause import V1StatusCause +from .models.v1_status_details import V1StatusDetails +from .models.v1_storage_class import V1StorageClass +from .models.v1_storage_class_list import V1StorageClassList +from .models.v1_subject_access_review import V1SubjectAccessReview +from .models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec +from .models.v1_subject_access_review_status import V1SubjectAccessReviewStatus from .models.v1_tcp_socket_action import V1TCPSocketAction +from .models.v1_taint import V1Taint +from .models.v1_time import V1Time +from .models.v1_token_review import V1TokenReview +from .models.v1_token_review_spec import V1TokenReviewSpec +from .models.v1_token_review_status import V1TokenReviewStatus +from .models.v1_toleration import V1Toleration +from .models.v1_user_info import V1UserInfo from .models.v1_volume import V1Volume from .models.v1_volume_mount import V1VolumeMount +from .models.v1_volume_projection import V1VolumeProjection from .models.v1_vsphere_virtual_disk_volume_source import V1VsphereVirtualDiskVolumeSource -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.v1_watch_event import V1WatchEvent +from .models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm 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_pod_preset import V1alpha1PodPreset +from .models.v1alpha1_pod_preset_list import V1alpha1PodPresetList +from .models.v1alpha1_pod_preset_spec import V1alpha1PodPresetSpec from .models.v1alpha1_policy_rule import V1alpha1PolicyRule from .models.v1alpha1_role import V1alpha1Role from .models.v1alpha1_role_binding import V1alpha1RoleBinding @@ -188,25 +247,26 @@ from .models.v1alpha1_role_ref import V1alpha1RoleRef from .models.v1alpha1_subject import V1alpha1Subject from .models.v1beta1_api_version import V1beta1APIVersion -from .models.v1beta1_cpu_target_utilization import V1beta1CPUTargetUtilization +from .models.v1beta1_certificate_signing_request import V1beta1CertificateSigningRequest +from .models.v1beta1_certificate_signing_request_condition import V1beta1CertificateSigningRequestCondition +from .models.v1beta1_certificate_signing_request_list import V1beta1CertificateSigningRequestList +from .models.v1beta1_certificate_signing_request_spec import V1beta1CertificateSigningRequestSpec +from .models.v1beta1_certificate_signing_request_status import V1beta1CertificateSigningRequestStatus +from .models.v1beta1_cluster_role import V1beta1ClusterRole +from .models.v1beta1_cluster_role_binding import V1beta1ClusterRoleBinding +from .models.v1beta1_cluster_role_binding_list import V1beta1ClusterRoleBindingList +from .models.v1beta1_cluster_role_list import V1beta1ClusterRoleList 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_daemon_set_update_strategy import V1beta1DaemonSetUpdateStrategy from .models.v1beta1_eviction import V1beta1Eviction +from .models.v1beta1_fs_group_strategy_options import V1beta1FSGroupStrategyOptions from .models.v1beta1_http_ingress_path import V1beta1HTTPIngressPath from .models.v1beta1_http_ingress_rule_value import V1beta1HTTPIngressRuleValue -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_host_port_range import V1beta1HostPortRange +from .models.v1beta1_id_range import V1beta1IDRange from .models.v1beta1_ingress import V1beta1Ingress from .models.v1beta1_ingress_backend import V1beta1IngressBackend from .models.v1beta1_ingress_list import V1beta1IngressList @@ -214,11 +274,6 @@ 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 @@ -231,17 +286,24 @@ from .models.v1beta1_pod_disruption_budget_list import V1beta1PodDisruptionBudgetList from .models.v1beta1_pod_disruption_budget_spec import V1beta1PodDisruptionBudgetSpec from .models.v1beta1_pod_disruption_budget_status import V1beta1PodDisruptionBudgetStatus +from .models.v1beta1_pod_security_policy import V1beta1PodSecurityPolicy +from .models.v1beta1_pod_security_policy_list import V1beta1PodSecurityPolicyList +from .models.v1beta1_pod_security_policy_spec import V1beta1PodSecurityPolicySpec +from .models.v1beta1_policy_rule import V1beta1PolicyRule 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_role import V1beta1Role +from .models.v1beta1_role_binding import V1beta1RoleBinding +from .models.v1beta1_role_binding_list import V1beta1RoleBindingList +from .models.v1beta1_role_list import V1beta1RoleList +from .models.v1beta1_role_ref import V1beta1RoleRef +from .models.v1beta1_rolling_update_daemon_set import V1beta1RollingUpdateDaemonSet +from .models.v1beta1_run_as_user_strategy_options import V1beta1RunAsUserStrategyOptions +from .models.v1beta1_se_linux_strategy_options import V1beta1SELinuxStrategyOptions from .models.v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview from .models.v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec from .models.v1beta1_stateful_set import V1beta1StatefulSet @@ -250,10 +312,11 @@ from .models.v1beta1_stateful_set_status import V1beta1StatefulSetStatus from .models.v1beta1_storage_class import V1beta1StorageClass from .models.v1beta1_storage_class_list import V1beta1StorageClassList +from .models.v1beta1_subject import V1beta1Subject 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_supplemental_groups_strategy_options import V1beta1SupplementalGroupsStrategyOptions from .models.v1beta1_third_party_resource import V1beta1ThirdPartyResource from .models.v1beta1_third_party_resource_list import V1beta1ThirdPartyResourceList from .models.v1beta1_token_review import V1beta1TokenReview @@ -264,30 +327,40 @@ from .models.v2alpha1_cron_job_list import V2alpha1CronJobList from .models.v2alpha1_cron_job_spec import V2alpha1CronJobSpec from .models.v2alpha1_cron_job_status import V2alpha1CronJobStatus -from .models.v2alpha1_job import V2alpha1Job -from .models.v2alpha1_job_condition import V2alpha1JobCondition -from .models.v2alpha1_job_list import V2alpha1JobList -from .models.v2alpha1_job_spec import V2alpha1JobSpec -from .models.v2alpha1_job_status import V2alpha1JobStatus +from .models.v2alpha1_cross_version_object_reference import V2alpha1CrossVersionObjectReference +from .models.v2alpha1_horizontal_pod_autoscaler import V2alpha1HorizontalPodAutoscaler +from .models.v2alpha1_horizontal_pod_autoscaler_list import V2alpha1HorizontalPodAutoscalerList +from .models.v2alpha1_horizontal_pod_autoscaler_spec import V2alpha1HorizontalPodAutoscalerSpec +from .models.v2alpha1_horizontal_pod_autoscaler_status import V2alpha1HorizontalPodAutoscalerStatus from .models.v2alpha1_job_template_spec import V2alpha1JobTemplateSpec +from .models.v2alpha1_metric_spec import V2alpha1MetricSpec +from .models.v2alpha1_metric_status import V2alpha1MetricStatus +from .models.v2alpha1_object_metric_source import V2alpha1ObjectMetricSource +from .models.v2alpha1_object_metric_status import V2alpha1ObjectMetricStatus +from .models.v2alpha1_pods_metric_source import V2alpha1PodsMetricSource +from .models.v2alpha1_pods_metric_status import V2alpha1PodsMetricStatus +from .models.v2alpha1_resource_metric_source import V2alpha1ResourceMetricSource +from .models.v2alpha1_resource_metric_status import V2alpha1ResourceMetricStatus 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_v1beta1_api import AppsV1beta1Api from .apis.authentication_api import AuthenticationApi +from .apis.authentication_v1_api import AuthenticationV1Api from .apis.authentication_v1beta1_api import AuthenticationV1beta1Api from .apis.authorization_api import AuthorizationApi +from .apis.authorization_v1_api import AuthorizationV1Api from .apis.authorization_v1beta1_api import AuthorizationV1beta1Api from .apis.autoscaling_api import AutoscalingApi from .apis.autoscaling_v1_api import AutoscalingV1Api +from .apis.autoscaling_v2alpha1_api import AutoscalingV2alpha1Api 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.certificates_v1beta1_api import CertificatesV1beta1Api from .apis.core_api import CoreApi from .apis.core_v1_api import CoreV1Api from .apis.extensions_api import ExtensionsApi @@ -297,7 +370,11 @@ from .apis.policy_v1beta1_api import PolicyV1beta1Api from .apis.rbac_authorization_api import RbacAuthorizationApi from .apis.rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api +from .apis.rbac_authorization_v1beta1_api import RbacAuthorizationV1beta1Api +from .apis.settings_api import SettingsApi +from .apis.settings_v1alpha1_api import SettingsV1alpha1Api from .apis.storage_api import StorageApi +from .apis.storage_v1_api import StorageV1Api from .apis.storage_v1beta1_api import StorageV1beta1Api from .apis.version_api import VersionApi diff --git a/kubernetes/client/apis/__init__.py b/kubernetes/client/apis/__init__.py index 48558bd396..ca1f5b9bc0 100644 --- a/kubernetes/client/apis/__init__.py +++ b/kubernetes/client/apis/__init__.py @@ -5,16 +5,19 @@ from .apps_api import AppsApi from .apps_v1beta1_api import AppsV1beta1Api from .authentication_api import AuthenticationApi +from .authentication_v1_api import AuthenticationV1Api from .authentication_v1beta1_api import AuthenticationV1beta1Api from .authorization_api import AuthorizationApi +from .authorization_v1_api import AuthorizationV1Api from .authorization_v1beta1_api import AuthorizationV1beta1Api from .autoscaling_api import AutoscalingApi from .autoscaling_v1_api import AutoscalingV1Api +from .autoscaling_v2alpha1_api import AutoscalingV2alpha1Api 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 .certificates_v1beta1_api import CertificatesV1beta1Api from .core_api import CoreApi from .core_v1_api import CoreV1Api from .extensions_api import ExtensionsApi @@ -24,6 +27,10 @@ from .policy_v1beta1_api import PolicyV1beta1Api from .rbac_authorization_api import RbacAuthorizationApi from .rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api +from .rbac_authorization_v1beta1_api import RbacAuthorizationV1beta1Api +from .settings_api import SettingsApi +from .settings_v1alpha1_api import SettingsV1alpha1Api from .storage_api import StorageApi +from .storage_v1_api import StorageV1Api from .storage_v1beta1_api import StorageV1beta1Api from .version_api import VersionApi diff --git a/kubernetes/client/apis/apis_api.py b/kubernetes/client/apis/apis_api.py index b1295c9f99..e55ecc5d1d 100644 --- a/kubernetes/client/apis/apis_api.py +++ b/kubernetes/client/apis/apis_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_versions(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroupList + :return: V1APIGroupList If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_versions_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroupList + :return: V1APIGroupList If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_versions_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIGroupList', + response_type='V1APIGroupList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/apps_api.py b/kubernetes/client/apis/apps_api.py index 0cd361e35c..e1012d16f4 100644 --- a/kubernetes/client/apis/apps_api.py +++ b/kubernetes/client/apis/apps_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIGroup', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/apps_v1beta1_api.py b/kubernetes/client/apis/apps_v1beta1_api.py index c34b3ff666..340f1d46ef 100644 --- a/kubernetes/client/apis/apps_v1beta1_api.py +++ b/kubernetes/client/apis/apps_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -40,6 +40,245 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client + def create_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_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 AppsV1beta1Deployment body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: AppsV1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) + return data + + def create_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_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 AppsV1beta1Deployment body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: AppsV1beta1Deployment + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/apps/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']) + + # HTTP header `Content-Type` + 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='AppsV1beta1Deployment', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_deployment_rollback_rollback(self, name, namespace, body, **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_namespaced_deployment_rollback_rollback(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the DeploymentRollback (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param AppsV1beta1DeploymentRollback body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: AppsV1beta1DeploymentRollback + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_deployment_rollback_rollback_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.create_namespaced_deployment_rollback_rollback_with_http_info(name, namespace, body, **kwargs) + return data + + def create_namespaced_deployment_rollback_rollback_with_http_info(self, name, namespace, body, **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_namespaced_deployment_rollback_rollback_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 DeploymentRollback (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param AppsV1beta1DeploymentRollback body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: AppsV1beta1DeploymentRollback + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_namespaced_deployment_rollback_rollback" % key + ) + params[key] = val + del params['kwargs'] + # verify the 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_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_namespaced_deployment_rollback_rollback`") + # 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_namespaced_deployment_rollback_rollback`") + + + collection_formats = {} + + resource_path = '/apis/apps/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']) + + # HTTP header `Content-Type` + 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='AppsV1beta1DeploymentRollback', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def create_namespaced_stateful_set(self, namespace, body, **kwargs): """ create a StatefulSet @@ -156,16 +395,16 @@ def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): + def delete_collection_namespaced_deployment(self, namespace, **kwargs): """ - delete collection of StatefulSet + 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_collection_namespaced_stateful_set(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_deployment(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -173,30 +412,30 @@ def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) else: - (data) = self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) return data - def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): + def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): """ - delete collection of StatefulSet + 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_collection_namespaced_stateful_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_deployment_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -204,10 +443,10 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -223,18 +462,18 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_stateful_set" % key + " to method delete_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_collection_namespaced_stateful_set`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -277,7 +516,7 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -285,61 +524,63 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_stateful_set(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): """ - delete a StatefulSet + 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_namespaced_stateful_set(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_stateful_set(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 V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param str field_selector: A selector to restrict the list of returned objects by their fields. 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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + return self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) else: - (data) = self.delete_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) return data - def delete_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): + def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): """ - delete a StatefulSet + 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_namespaced_stateful_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_collection_namespaced_stateful_set_with_http_info(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 V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. - :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param str field_selector: A selector to restrict the list of returned objects by their fields. 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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -350,24 +591,288 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, body, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_stateful_set" % key + " to method delete_collection_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_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_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_namespaced_stateful_set`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_stateful_set`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/apps/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 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] + + 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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_stateful_set`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -381,6 +886,1348 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, body, * query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] + + 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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_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_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_with_http_info(**kwargs) + return data + + def get_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_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_resources" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + resource_path = '/apis/apps/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']) + + # 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='V1APIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: AppsV1beta1DeploymentList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: AppsV1beta1DeploymentList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_deployment_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/apps/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']) + + # HTTP header `Content-Type` + 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='AppsV1beta1DeploymentList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: AppsV1beta1DeploymentList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + return data + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: AppsV1beta1DeploymentList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/apps/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']) + + # HTTP header `Content-Type` + 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='AppsV1beta1DeploymentList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1StatefulSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) + return data + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1StatefulSetList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_namespaced_stateful_set`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1StatefulSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1StatefulSetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1StatefulSetList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_stateful_set_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/apps/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1StatefulSetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: AppsV1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: AppsV1beta1Deployment + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/apps/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']) + + # 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='AppsV1beta1Deployment', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: AppsV1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: AppsV1beta1Deployment + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_deployment_status`") + + + collection_formats = {} + + resource_path = '/apis/apps/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']) + + # 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='AppsV1beta1Deployment', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: AppsV1beta1Scale + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: AppsV1beta1Scale + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_scale_scale`") + + + collection_formats = {} + + resource_path = '/apis/apps/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']) + + # 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='AppsV1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1StatefulSet + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_stateful_set`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1beta1/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']) + + # 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='V1beta1StatefulSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1StatefulSet + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1StatefulSet + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_stateful_set_status`") + + + collection_formats = {} + + resource_path = '/apis/apps/v1beta1/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']) + + # 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='V1beta1StatefulSet', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_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_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: AppsV1beta1Deployment + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) + return data + + def read_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_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: AppsV1beta1Deployment + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_namespaced_deployment`") + + + collection_formats = {} + + resource_path = '/apis/apps/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 = {} @@ -388,8 +2235,6 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, body, * 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']) @@ -401,14 +2246,14 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, body, * # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + 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='UnversionedStatus', + response_type='AppsV1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -416,49 +2261,55 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, body, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources(self, **kwargs): + def read_namespaced_deployment_status(self, name, namespace, **kwargs): """ - get available resources + 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.get_api_resources(callback=callback_function) + >>> thread = api.read_namespaced_deployment_status(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :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: AppsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) + return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) return data - def get_api_resources_with_http_info(self, **kwargs): + def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): """ - get available resources + 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.get_api_resources_with_http_info(callback=callback_function) + >>> thread = api.read_namespaced_deployment_status_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :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: AppsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -469,17 +2320,30 @@ def get_api_resources_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key + " to method read_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_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_namespaced_deployment_status`") + collection_formats = {} - resource_path = '/apis/apps/v1beta1/'.replace('{format}', 'json') + resource_path = '/apis/apps/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 = {} @@ -493,7 +2357,7 @@ def get_api_resources_with_http_info(self, **kwargs): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] @@ -505,7 +2369,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIResourceList', + response_type='AppsV1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -513,63 +2377,55 @@ def get_api_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_stateful_set(self, namespace, **kwargs): + def read_namespaced_scale_scale(self, name, namespace, **kwargs): """ - list or watch objects of kind StatefulSet + 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.list_namespaced_stateful_set(namespace, callback=callback_function) + >>> thread = api.read_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. - :param str field_selector: A selector to restrict the list of returned objects by their fields. 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: V1beta1StatefulSetList + :return: AppsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) + return self.read_namespaced_scale_scale_with_http_info(name, namespace, **kwargs) else: - (data) = self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) + (data) = self.read_namespaced_scale_scale_with_http_info(name, namespace, **kwargs) return data - def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): + def read_namespaced_scale_scale_with_http_info(self, name, namespace, **kwargs): """ - list or watch objects of kind StatefulSet + 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.list_namespaced_stateful_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.read_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. - :param str field_selector: A selector to restrict the list of returned objects by their fields. 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: V1beta1StatefulSetList + :return: AppsV1beta1Scale 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 = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -580,35 +2436,30 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_stateful_set" % key + " to method read_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_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 `list_namespaced_stateful_set`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_scale_scale`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets'.replace('{format}', 'json') + resource_path = '/apis/apps/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'] - 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 = {} @@ -618,7 +2469,7 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): 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']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -634,7 +2485,7 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1StatefulSetList', + response_type='AppsV1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -642,61 +2493,59 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_stateful_set_for_all_namespaces(self, **kwargs): + def read_namespaced_stateful_set(self, name, namespace, **kwargs): """ - list or watch objects of kind StatefulSet + 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.list_stateful_set_for_all_namespaces(callback=callback_function) + >>> thread = api.read_namespaced_stateful_set(name, namespace, 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 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1StatefulSetList + :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: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) + return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) else: - (data) = self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) return data - def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): + def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): """ - list or watch objects of kind StatefulSet + 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.list_stateful_set_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.read_namespaced_stateful_set_with_http_info(name, namespace, 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 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1StatefulSetList + :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: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -707,30 +2556,34 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_stateful_set_for_all_namespaces" % key + " to method read_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_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_namespaced_stateful_set`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/statefulsets'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/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'] + if 'exact' in params: + query_params['exact'] = params['exact'] + if 'export' in params: + query_params['export'] = params['export'] header_params = {} @@ -740,7 +2593,7 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): 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']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -756,7 +2609,7 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1StatefulSetList', + response_type='V1beta1StatefulSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -764,22 +2617,21 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): + def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): """ - partially update the specified StatefulSet + 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.patch_namespaced_stateful_set(name, namespace, body, callback=callback_function) + >>> thread = api.read_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 UnversionedPatch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1StatefulSet If the method is called asynchronously, @@ -787,34 +2639,33 @@ def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, **kwargs): """ - partially update the specified StatefulSet + 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.patch_namespaced_stateful_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_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 UnversionedPatch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -825,24 +2676,21 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_stateful_set" % key + " to method read_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_namespaced_stateful_set`") + raise ValueError("Missing the required parameter `name` when calling `read_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_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_namespaced_stateful_set`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -859,20 +2707,18 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** 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']) # 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']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, @@ -887,52 +2733,52 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): + def replace_namespaced_deployment(self, name, namespace, body, **kwargs): """ - partially update status of the specified StatefulSet + 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.patch_namespaced_stateful_set_status(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_deployment(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 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 AppsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1StatefulSet + :return: AppsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): """ - partially update status of the specified StatefulSet + 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.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_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 StatefulSet (required) + :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 AppsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1StatefulSet + :return: AppsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ @@ -948,24 +2794,24 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_stateful_set_status" % key + " to method replace_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_namespaced_stateful_set_status`") + raise ValueError("Missing the required parameter `name` when calling `replace_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_namespaced_stateful_set_status`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_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_namespaced_stateful_set_status`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -990,19 +2836,19 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b # 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']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + 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='V1beta1StatefulSet', + response_type='AppsV1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1010,59 +2856,57 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_stateful_set(self, name, namespace, **kwargs): + def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): """ - read the specified StatefulSet + 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.read_namespaced_stateful_set(name, namespace, callback=callback_function) + >>> thread = api.replace_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 StatefulSet (required) + :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param AppsV1beta1Deployment body: (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: V1beta1StatefulSet + :return: AppsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): """ - read the specified StatefulSet + 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.read_namespaced_stateful_set_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_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 StatefulSet (required) + :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param AppsV1beta1Deployment body: (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: V1beta1StatefulSet + :return: AppsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1073,21 +2917,24 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_stateful_set" % key + " to method replace_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_namespaced_stateful_set`") + raise ValueError("Missing the required parameter `name` when calling `replace_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_namespaced_stateful_set`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_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_namespaced_deployment_status`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -1097,10 +2944,6 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) 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 = {} @@ -1108,6 +2951,8 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) 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']) @@ -1119,14 +2964,14 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + 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='V1beta1StatefulSet', + response_type='AppsV1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1134,55 +2979,57 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): + def replace_namespaced_scale_scale(self, name, namespace, body, **kwargs): """ - read status of the specified StatefulSet + 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.read_namespaced_stateful_set_status(name, namespace, callback=callback_function) + >>> thread = api.replace_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 StatefulSet (required) + :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param AppsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1StatefulSet + :return: AppsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) + return self.replace_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) + (data) = self.replace_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, **kwargs): + def replace_namespaced_scale_scale_with_http_info(self, name, namespace, body, **kwargs): """ - read status of the specified StatefulSet + 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.read_namespaced_stateful_set_status_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.replace_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 StatefulSet (required) + :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param AppsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1StatefulSet + :return: AppsV1beta1Scale If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1193,21 +3040,24 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_stateful_set_status" % key + " to method replace_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_namespaced_stateful_set_status`") + raise ValueError("Missing the required parameter `name` when calling `replace_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_namespaced_stateful_set_status`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_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_namespaced_scale_scale`") collection_formats = {} - resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -1224,6 +3074,8 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** 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']) @@ -1235,14 +3087,14 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'GET', + 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='V1beta1StatefulSet', + response_type='AppsV1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/authentication_api.py b/kubernetes/client/apis/authentication_api.py index f43f2bd5cd..0806806da2 100644 --- a/kubernetes/client/apis/authentication_api.py +++ b/kubernetes/client/apis/authentication_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIGroup', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/authentication_v1_api.py b/kubernetes/client/apis/authentication_v1_api.py new file mode 100644 index 0000000000..278e08fbd4 --- /dev/null +++ b/kubernetes/client/apis/authentication_v1_api.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +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 AuthenticationV1Api(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_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_token_review(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1TokenReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1TokenReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_token_review_with_http_info(body, **kwargs) + else: + (data) = self.create_token_review_with_http_info(body, **kwargs) + return data + + def create_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_token_review_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1TokenReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1TokenReview + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_token_review`") + + + collection_formats = {} + + resource_path = '/apis/authentication.k8s.io/v1/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']) + + # HTTP header `Content-Type` + 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='V1TokenReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_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_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_with_http_info(**kwargs) + return data + + def get_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_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_resources" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + resource_path = '/apis/authentication.k8s.io/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']) + + # 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='V1APIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/authentication_v1beta1_api.py b/kubernetes/client/apis/authentication_v1beta1_api.py index 5167d6e9cf..59724438cc 100644 --- a/kubernetes/client/apis/authentication_v1beta1_api.py +++ b/kubernetes/client/apis/authentication_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -162,7 +162,7 @@ def get_api_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -186,7 +186,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -238,7 +238,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIResourceList', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/authorization_api.py b/kubernetes/client/apis/authorization_api.py index d3334d93c8..2283801768 100644 --- a/kubernetes/client/apis/authorization_api.py +++ b/kubernetes/client/apis/authorization_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIGroup', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/authorization_v1_api.py b/kubernetes/client/apis/authorization_v1_api.py new file mode 100644 index 0000000000..685efbfac2 --- /dev/null +++ b/kubernetes/client/apis/authorization_v1_api.py @@ -0,0 +1,472 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +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 AuthorizationV1Api(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_namespaced_local_subject_access_review(self, namespace, body, **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_namespaced_local_subject_access_review(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 V1LocalSubjectAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LocalSubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_local_subject_access_review_with_http_info(self, namespace, body, **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_namespaced_local_subject_access_review_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 V1LocalSubjectAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1LocalSubjectAccessReview + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_namespaced_local_subject_access_review" % 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_namespaced_local_subject_access_review`") + # 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_namespaced_local_subject_access_review`") + + + collection_formats = {} + + resource_path = '/apis/authorization.k8s.io/v1/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']) + + # HTTP header `Content-Type` + 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='V1LocalSubjectAccessReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_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_self_subject_access_review(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SelfSubjectAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SelfSubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_self_subject_access_review_with_http_info(body, **kwargs) + else: + (data) = self.create_self_subject_access_review_with_http_info(body, **kwargs) + return data + + def create_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_self_subject_access_review_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SelfSubjectAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SelfSubjectAccessReview + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_self_subject_access_review`") + + + collection_formats = {} + + resource_path = '/apis/authorization.k8s.io/v1/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']) + + # HTTP header `Content-Type` + 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='V1SelfSubjectAccessReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_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_subject_access_review(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SubjectAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SubjectAccessReview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_subject_access_review_with_http_info(body, **kwargs) + else: + (data) = self.create_subject_access_review_with_http_info(body, **kwargs) + return data + + def create_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_subject_access_review_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1SubjectAccessReview body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1SubjectAccessReview + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_subject_access_review`") + + + collection_formats = {} + + resource_path = '/apis/authorization.k8s.io/v1/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']) + + # HTTP header `Content-Type` + 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='V1SubjectAccessReview', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_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_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_with_http_info(**kwargs) + return data + + def get_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_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_resources" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + resource_path = '/apis/authorization.k8s.io/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']) + + # 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='V1APIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/authorization_v1beta1_api.py b/kubernetes/client/apis/authorization_v1beta1_api.py index 27c523e9e6..bd5adb4038 100644 --- a/kubernetes/client/apis/authorization_v1beta1_api.py +++ b/kubernetes/client/apis/authorization_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -40,7 +40,7 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def create_namespaced_local_subject_access_review(self, body, namespace, **kwargs): + def create_namespaced_local_subject_access_review(self, namespace, body, **kwargs): """ create a LocalSubjectAccessReview This method makes a synchronous HTTP request by default. To make an @@ -49,12 +49,12 @@ def create_namespaced_local_subject_access_review(self, body, namespace, **kwarg >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_local_subject_access_review(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_local_subject_access_review(namespace, body, 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 V1beta1LocalSubjectAccessReview body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1LocalSubjectAccessReview If the method is called asynchronously, @@ -62,12 +62,12 @@ def create_namespaced_local_subject_access_review(self, body, namespace, **kwarg """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_local_subject_access_review_with_http_info(body, namespace, **kwargs) + return self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_namespaced_local_subject_access_review_with_http_info(body, namespace, **kwargs) + (data) = self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) return data - def create_namespaced_local_subject_access_review_with_http_info(self, body, namespace, **kwargs): + def create_namespaced_local_subject_access_review_with_http_info(self, namespace, body, **kwargs): """ create a LocalSubjectAccessReview This method makes a synchronous HTTP request by default. To make an @@ -76,19 +76,19 @@ def create_namespaced_local_subject_access_review_with_http_info(self, body, nam >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_local_subject_access_review_with_http_info(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_local_subject_access_review_with_http_info(namespace, body, 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 V1beta1LocalSubjectAccessReview body: (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 = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -103,12 +103,12 @@ def create_namespaced_local_subject_access_review_with_http_info(self, body, nam ) 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_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_namespaced_local_subject_access_review`") + # 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_namespaced_local_subject_access_review`") collection_formats = {} @@ -387,7 +387,7 @@ def get_api_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -411,7 +411,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -463,7 +463,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIResourceList', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/autoscaling_api.py b/kubernetes/client/apis/autoscaling_api.py index 187bd9dc5d..785fc61550 100644 --- a/kubernetes/client/apis/autoscaling_api.py +++ b/kubernetes/client/apis/autoscaling_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIGroup', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/autoscaling_v1_api.py b/kubernetes/client/apis/autoscaling_v1_api.py index af44ef008c..ef5a9b99e4 100644 --- a/kubernetes/client/apis/autoscaling_v1_api.py +++ b/kubernetes/client/apis/autoscaling_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -173,10 +173,10 @@ def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kw :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -204,10 +204,10 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -277,7 +277,7 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -303,8 +303,9 @@ def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **k :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -333,13 +334,14 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -381,6 +383,8 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -408,7 +412,7 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -429,7 +433,7 @@ def get_api_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -453,7 +457,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -505,7 +509,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIResourceList', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -529,7 +533,7 @@ def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -559,7 +563,7 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -652,7 +656,7 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -683,7 +687,7 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -779,7 +783,7 @@ def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kw 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, @@ -807,7 +811,7 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, @@ -902,7 +906,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, bod 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, @@ -930,7 +934,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, @@ -1026,7 +1030,7 @@ def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): :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 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, @@ -1055,7 +1059,7 @@ def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespa :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 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, diff --git a/kubernetes/client/apis/autoscaling_v2alpha1_api.py b/kubernetes/client/apis/autoscaling_v2alpha1_api.py new file mode 100644 index 0000000000..7d0c091c93 --- /dev/null +++ b/kubernetes/client/apis/autoscaling_v2alpha1_api.py @@ -0,0 +1,1501 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +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 AutoscalingV2alpha1Api(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_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_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 V2alpha1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) + return data + + def create_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_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 V2alpha1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1HorizontalPodAutoscaler + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v2alpha1/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']) + + # HTTP header `Content-Type` + 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='V2alpha1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return data + + def delete_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_collection_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v2alpha1/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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v2alpha1/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 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] + + 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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_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_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_with_http_info(**kwargs) + return data + + def get_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_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_resources" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + resource_path = '/apis/autoscaling/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']) + + # 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='V1APIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1HorizontalPodAutoscalerList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1HorizontalPodAutoscalerList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_horizontal_pod_autoscaler_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v2alpha1/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']) + + # HTTP header `Content-Type` + 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='V2alpha1HorizontalPodAutoscalerList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1HorizontalPodAutoscalerList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return data + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1HorizontalPodAutoscalerList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v2alpha1/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']) + + # HTTP header `Content-Type` + 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='V2alpha1HorizontalPodAutoscalerList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1HorizontalPodAutoscaler + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v2alpha1/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']) + + # 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='V2alpha1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1HorizontalPodAutoscaler + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_horizontal_pod_autoscaler_status`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v2alpha1/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']) + + # 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='V2alpha1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_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_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: V2alpha1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + return data + + def read_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_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: V2alpha1HorizontalPodAutoscaler + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v2alpha1/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']) + + # HTTP header `Content-Type` + 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='V2alpha1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_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_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: V2alpha1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) + return data + + def read_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_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: V2alpha1HorizontalPodAutoscaler + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_namespaced_horizontal_pod_autoscaler_status`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v2alpha1/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']) + + # HTTP header `Content-Type` + 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='V2alpha1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_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_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 V2alpha1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_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_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 V2alpha1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1HorizontalPodAutoscaler + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_horizontal_pod_autoscaler`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v2alpha1/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']) + + # HTTP header `Content-Type` + 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='V2alpha1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_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_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 V2alpha1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1HorizontalPodAutoscaler + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_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_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 V2alpha1HorizontalPodAutoscaler body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V2alpha1HorizontalPodAutoscaler + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_horizontal_pod_autoscaler_status`") + + + collection_formats = {} + + resource_path = '/apis/autoscaling/v2alpha1/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']) + + # HTTP header `Content-Type` + 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='V2alpha1HorizontalPodAutoscaler', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/batch_api.py b/kubernetes/client/apis/batch_api.py index 69f80c1abc..dc17deb246 100644 --- a/kubernetes/client/apis/batch_api.py +++ b/kubernetes/client/apis/batch_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIGroup', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/batch_v1_api.py b/kubernetes/client/apis/batch_v1_api.py index 9b9b6f3a2d..8d111e19db 100644 --- a/kubernetes/client/apis/batch_v1_api.py +++ b/kubernetes/client/apis/batch_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -173,10 +173,10 @@ def delete_collection_namespaced_job(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -204,10 +204,10 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -277,7 +277,7 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -303,8 +303,9 @@ def delete_namespaced_job(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -333,13 +334,14 @@ def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -381,6 +383,8 @@ def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -408,7 +412,7 @@ def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -429,7 +433,7 @@ def get_api_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -453,7 +457,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -505,7 +509,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIResourceList', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -529,7 +533,7 @@ def list_job_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -559,7 +563,7 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -652,7 +656,7 @@ def list_namespaced_job(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -683,7 +687,7 @@ def list_namespaced_job_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -779,7 +783,7 @@ def patch_namespaced_job(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Job If the method is called asynchronously, @@ -807,7 +811,7 @@ def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Job If the method is called asynchronously, @@ -902,7 +906,7 @@ def patch_namespaced_job_status(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Job If the method is called asynchronously, @@ -930,7 +934,7 @@ def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kw 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Job If the method is called asynchronously, @@ -1026,7 +1030,7 @@ def read_namespaced_job(self, name, namespace, **kwargs): :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 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, @@ -1055,7 +1059,7 @@ def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): :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 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, diff --git a/kubernetes/client/apis/batch_v2alpha1_api.py b/kubernetes/client/apis/batch_v2alpha1_api.py index bd16640c5f..7d9233da27 100644 --- a/kubernetes/client/apis/batch_v2alpha1_api.py +++ b/kubernetes/client/apis/batch_v2alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -156,122 +156,6 @@ def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_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_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 V2alpha1Job body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1Job - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_namespaced_job_with_http_info(namespace, body, **kwargs) - else: - (data) = self.create_namespaced_job_with_http_info(namespace, body, **kwargs) - return data - - def create_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_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 V2alpha1Job body: (required) - :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1Job - 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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_namespaced_job`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/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']) - - # HTTP header `Content-Type` - 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='V2alpha1Job', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def create_namespaced_scheduled_job(self, namespace, body, **kwargs): """ create a ScheduledJob @@ -405,10 +289,10 @@ def delete_collection_namespaced_cron_job(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -436,10 +320,10 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -509,7 +393,7 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -517,16 +401,16 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_job(self, namespace, **kwargs): + def delete_collection_namespaced_scheduled_job(self, namespace, **kwargs): """ - delete collection of Job + delete collection of ScheduledJob This method makes a synchronous HTTP request by default. To make 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_collection_namespaced_job(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_scheduled_job(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -534,30 +418,30 @@ def delete_collection_namespaced_job(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_scheduled_job_with_http_info(namespace, **kwargs) else: - (data) = self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_scheduled_job_with_http_info(namespace, **kwargs) return data - def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): + def delete_collection_namespaced_scheduled_job_with_http_info(self, namespace, **kwargs): """ - delete collection of Job + delete collection of ScheduledJob This method makes a synchronous HTTP request by default. To make 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_collection_namespaced_job_with_http_info(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_scheduled_job_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -565,10 +449,10 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -584,18 +468,18 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_job" % key + " to method delete_collection_namespaced_scheduled_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_collection_namespaced_job`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_scheduled_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -638,7 +522,7 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -646,63 +530,63 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_scheduled_job(self, namespace, **kwargs): + def delete_namespaced_cron_job(self, name, namespace, body, **kwargs): """ - delete collection of ScheduledJob + delete a CronJob This method makes a synchronous HTTP request by default. To make 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_collection_namespaced_scheduled_job(namespace, callback=callback_function) + >>> thread = api.delete_namespaced_cron_job(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the CronJob (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. - :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_scheduled_job_with_http_info(namespace, **kwargs) + return self.delete_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_collection_namespaced_scheduled_job_with_http_info(namespace, **kwargs) + (data) = self.delete_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) return data - def delete_collection_namespaced_scheduled_job_with_http_info(self, namespace, **kwargs): + def delete_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): """ - delete collection of ScheduledJob + delete a CronJob This method makes a synchronous HTTP request by default. To make 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_collection_namespaced_scheduled_job_with_http_info(namespace, callback=callback_function) + >>> thread = api.delete_namespaced_cron_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 CronJob (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. - :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status 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 = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -713,35 +597,39 @@ def delete_collection_namespaced_scheduled_job_with_http_info(self, namespace, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_scheduled_job" % key + " to method delete_namespaced_cron_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_namespaced_cron_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_collection_namespaced_scheduled_job`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_cron_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_namespaced_cron_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{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 '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'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -749,6 +637,8 @@ def delete_collection_namespaced_scheduled_job_with_http_info(self, namespace, * 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']) @@ -767,7 +657,7 @@ def delete_collection_namespaced_scheduled_job_with_http_info(self, namespace, * body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -775,61 +665,63 @@ def delete_collection_namespaced_scheduled_job_with_http_info(self, namespace, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_cron_job(self, name, namespace, body, **kwargs): + def delete_namespaced_scheduled_job(self, name, namespace, body, **kwargs): """ - delete a CronJob + delete a ScheduledJob This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_job(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_scheduled_job(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) + :param str name: name of the ScheduledJob (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. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_scheduled_job_with_http_info(self, name, namespace, body, **kwargs): """ - delete a CronJob + delete a ScheduledJob This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_job_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_scheduled_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 CronJob (required) + :param str name: name of the ScheduledJob (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. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -840,24 +732,24 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_cron_job" % key + " to method delete_namespaced_scheduled_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_namespaced_cron_job`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_scheduled_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_namespaced_cron_job`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_scheduled_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_namespaced_cron_job`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_scheduled_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -871,6 +763,8 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwa query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -898,7 +792,7 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwa body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -906,61 +800,49 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_job(self, name, namespace, body, **kwargs): + def get_api_resources(self, **kwargs): """ - delete a Job + 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.delete_namespaced_job(name, namespace, body, callback=callback_function) + >>> thread = api.get_api_resources(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. - :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_job_with_http_info(name, namespace, body, **kwargs) + return self.get_api_resources_with_http_info(**kwargs) else: - (data) = self.delete_namespaced_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) return data - def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): + def get_api_resources_with_http_info(self, **kwargs): """ - delete a Job + 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.delete_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.get_api_resources_with_http_info(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. - :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = [] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -971,37 +853,17 @@ def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_job" % key + " to method get_api_resources" % key ) params[key] = val del params['kwargs'] - # verify the 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_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_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_namespaced_job`") - collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/'.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 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] header_params = {} @@ -1009,27 +871,25 @@ def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): 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']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + 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, 'DELETE', + 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='UnversionedStatus', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1037,61 +897,61 @@ def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_scheduled_job(self, name, namespace, body, **kwargs): + def list_cron_job_for_all_namespaces(self, **kwargs): """ - delete a ScheduledJob + list or watch objects of kind CronJob This method makes a synchronous HTTP request by default. To make 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_namespaced_scheduled_job(name, namespace, body, callback=callback_function) + >>> thread = api.list_cron_job_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ScheduledJob (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (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 int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus - If the method is called asynchronously, + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1CronJobList + If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) + return self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.delete_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) return data - def delete_namespaced_scheduled_job_with_http_info(self, name, namespace, body, **kwargs): + def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): """ - delete a ScheduledJob + list or watch objects of kind CronJob This method makes a synchronous HTTP request by default. To make 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_namespaced_scheduled_job_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.list_cron_job_for_all_namespaces_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ScheduledJob (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1DeleteOptions body: (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 int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1CronJobList If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1102,37 +962,30 @@ def delete_namespaced_scheduled_job_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_scheduled_job" % key + " to method list_cron_job_for_all_namespaces" % key ) params[key] = val del params['kwargs'] - # verify the 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_namespaced_scheduled_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_namespaced_scheduled_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_namespaced_scheduled_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/cronjobs'.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 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] + 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 = {} @@ -1140,11 +993,9 @@ def delete_namespaced_scheduled_job_with_http_info(self, name, namespace, body, 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']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ @@ -1153,14 +1004,14 @@ def delete_namespaced_scheduled_job_with_http_info(self, name, namespace, body, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'DELETE', + 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='UnversionedStatus', + response_type='V2alpha1CronJobList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1168,49 +1019,63 @@ def delete_namespaced_scheduled_job_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources(self, **kwargs): + def list_namespaced_cron_job(self, namespace, **kwargs): """ - get available resources + list or watch objects of kind CronJob This method makes a synchronous HTTP request by default. To make 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_resources(callback=callback_function) + >>> thread = api.list_namespaced_cron_job(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1CronJobList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_with_http_info(**kwargs) + return self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) return data - def get_api_resources_with_http_info(self, **kwargs): + def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): """ - get available resources + list or watch objects of kind CronJob This method makes a synchronous HTTP request by default. To make 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_resources_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_cron_job_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V2alpha1CronJobList If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1221,17 +1086,35 @@ def get_api_resources_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources" % key + " to method list_namespaced_cron_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_namespaced_cron_job`") + collection_formats = {} - resource_path = '/apis/batch/v2alpha1/'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs'.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 = {} @@ -1241,11 +1124,11 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] @@ -1257,7 +1140,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIResourceList', + response_type='V2alpha1CronJobList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1265,23 +1148,24 @@ def get_api_resources_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_cron_job_for_all_namespaces(self, **kwargs): + def list_namespaced_scheduled_job(self, namespace, **kwargs): """ - list or watch objects of kind CronJob + list or watch objects of kind ScheduledJob This method makes a synchronous HTTP request by default. To make 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_cron_job_for_all_namespaces(callback=callback_function) + >>> thread = api.list_namespaced_scheduled_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 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V2alpha1CronJobList @@ -1290,28 +1174,29 @@ def list_cron_job_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_scheduled_job_with_http_info(namespace, **kwargs) else: - (data) = self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_scheduled_job_with_http_info(namespace, **kwargs) return data - def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_scheduled_job_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind CronJob + list or watch objects of kind ScheduledJob This method makes a synchronous HTTP request by default. To make 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_cron_job_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_namespaced_scheduled_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 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V2alpha1CronJobList @@ -1319,7 +1204,7 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1330,24 +1215,29 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_cron_job_for_all_namespaces" % key + " to method list_namespaced_scheduled_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_namespaced_scheduled_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/cronjobs'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs'.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 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -1387,56 +1277,56 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_job_for_all_namespaces(self, **kwargs): + def list_scheduled_job_for_all_namespaces(self, **kwargs): """ - list or watch objects of kind Job + list or watch objects of kind ScheduledJob This method makes a synchronous HTTP request by default. To make 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_job_for_all_namespaces(callback=callback_function) + >>> thread = api.list_scheduled_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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1JobList + :return: V2alpha1CronJobList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_job_for_all_namespaces_with_http_info(**kwargs) + return self.list_scheduled_job_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_job_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_scheduled_job_for_all_namespaces_with_http_info(**kwargs) return data - def list_job_for_all_namespaces_with_http_info(self, **kwargs): + def list_scheduled_job_for_all_namespaces_with_http_info(self, **kwargs): """ - list or watch objects of kind Job + list or watch objects of kind ScheduledJob This method makes a synchronous HTTP request by default. To make 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_job_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_scheduled_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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1JobList + :return: V2alpha1CronJobList If the method is called asynchronously, returns the request thread. """ @@ -1452,7 +1342,7 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_job_for_all_namespaces" % key + " to method list_scheduled_job_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -1460,7 +1350,7 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/apis/batch/v2alpha1/jobs'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/scheduledjobs'.replace('{format}', 'json') path_params = {} query_params = {} @@ -1501,7 +1391,7 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V2alpha1JobList', + response_type='V2alpha1CronJobList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1509,63 +1399,57 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_cron_job(self, namespace, **kwargs): + def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): """ - list or watch objects of kind CronJob + partially update the specified CronJob This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_job(namespace, callback=callback_function) + >>> thread = api.patch_namespaced_cron_job(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (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: V2alpha1CronJobList + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) + return self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) + (data) = self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) return data - def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): + def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind CronJob + partially update the specified CronJob This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_job_with_http_info(namespace, callback=callback_function) + >>> thread = api.patch_namespaced_cron_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 CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (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: V2alpha1CronJobList + :return: V2alpha1CronJob 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 = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1576,35 +1460,33 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_cron_job" % key + " to method patch_namespaced_cron_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_namespaced_cron_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 `list_namespaced_cron_job`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_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_namespaced_cron_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{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 '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 = {} @@ -1612,25 +1494,27 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): 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', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + 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, 'GET', + 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='V2alpha1CronJobList', + response_type='V2alpha1CronJob', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1638,1045 +1522,50 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_job(self, namespace, **kwargs): + def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): """ - list or watch objects of kind Job + partially update status of the specified CronJob This method makes a synchronous HTTP request by default. To make 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_namespaced_job(namespace, callback=callback_function) + >>> thread = api.patch_namespaced_cron_job_status(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (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: V2alpha1JobList + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_job_with_http_info(namespace, **kwargs) + return self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_namespaced_job_with_http_info(namespace, **kwargs) + (data) = self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) return data - def list_namespaced_job_with_http_info(self, namespace, **kwargs): + def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind Job + partially update status of the specified CronJob This method makes a synchronous HTTP request by default. To make 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_namespaced_job_with_http_info(namespace, callback=callback_function) + >>> thread = api.patch_namespaced_cron_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 CronJob (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 str field_selector: A selector to restrict the list of returned objects by their fields. 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: V2alpha1JobList - 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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_namespaced_job`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/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']) - - # HTTP header `Content-Type` - 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='V2alpha1JobList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_scheduled_job(self, namespace, **kwargs): - """ - list or watch objects of kind ScheduledJob - This method makes a synchronous HTTP request by default. To make 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_namespaced_scheduled_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: V2alpha1CronJobList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_namespaced_scheduled_job_with_http_info(namespace, **kwargs) - else: - (data) = self.list_namespaced_scheduled_job_with_http_info(namespace, **kwargs) - return data - - def list_namespaced_scheduled_job_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind ScheduledJob - This method makes a synchronous HTTP request by default. To make 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_namespaced_scheduled_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: V2alpha1CronJobList - 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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_namespaced_scheduled_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_namespaced_scheduled_job`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs'.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']) - - # HTTP header `Content-Type` - 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='V2alpha1CronJobList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_scheduled_job_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind ScheduledJob - This method makes a synchronous HTTP request by default. To make 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_scheduled_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: V2alpha1CronJobList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.list_scheduled_job_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.list_scheduled_job_for_all_namespaces_with_http_info(**kwargs) - return data - - def list_scheduled_job_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind ScheduledJob - This method makes a synchronous HTTP request by default. To make 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_scheduled_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: V2alpha1CronJobList - 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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_scheduled_job_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/scheduledjobs'.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']) - - # HTTP header `Content-Type` - 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='V2alpha1CronJobList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): - """ - partially update the specified CronJob - This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_job(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CronJob (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: V2alpha1CronJob - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified CronJob - This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_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 CronJob (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: V2alpha1CronJob - 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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_namespaced_cron_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_namespaced_cron_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_namespaced_cron_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_namespaced_cron_job`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{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']) - - # 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='V2alpha1CronJob', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified CronJob - This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_job_status(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CronJob (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: V2alpha1CronJob - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified CronJob - This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_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 CronJob (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: V2alpha1CronJob - 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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_namespaced_cron_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_namespaced_cron_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_namespaced_cron_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_namespaced_cron_job_status`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{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']) - - # 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='V2alpha1CronJob', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_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_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: V2alpha1Job - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_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_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: V2alpha1Job - 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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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_namespaced_job`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/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']) - - # 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='V2alpha1Job', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_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_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: V2alpha1Job - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_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_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: V2alpha1Job - 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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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_namespaced_job_status`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/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']) - - # 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='V2alpha1Job', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_scheduled_job(self, name, namespace, body, **kwargs): - """ - partially update the specified ScheduledJob - This method makes a synchronous HTTP request by default. To make 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_namespaced_scheduled_job(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ScheduledJob (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: V2alpha1CronJob - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_scheduled_job_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified ScheduledJob - This method makes a synchronous HTTP request by default. To make 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_namespaced_scheduled_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 ScheduledJob (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: V2alpha1CronJob - 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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_namespaced_scheduled_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_namespaced_scheduled_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_namespaced_scheduled_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_namespaced_scheduled_job`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{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']) - - # 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='V2alpha1CronJob', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_scheduled_job_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified ScheduledJob - This method makes a synchronous HTTP request by default. To make 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_namespaced_scheduled_job_status(name, namespace, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ScheduledJob (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: V2alpha1CronJob - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.patch_namespaced_scheduled_job_status_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_scheduled_job_status_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_namespaced_scheduled_job_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified ScheduledJob - This method makes a synchronous HTTP request by default. To make 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_namespaced_scheduled_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 ScheduledJob (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob If the method is called asynchronously, @@ -2694,261 +1583,19 @@ def patch_namespaced_scheduled_job_status_with_http_info(self, name, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_scheduled_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_namespaced_scheduled_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_namespaced_scheduled_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_namespaced_scheduled_job_status`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{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']) - - # 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='V2alpha1CronJob', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_cron_job(self, name, namespace, **kwargs): - """ - read the specified CronJob - This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_job(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CronJob (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: V2alpha1CronJob - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) - return data - - def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): - """ - read the specified CronJob - This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_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 CronJob (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: V2alpha1CronJob - 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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_namespaced_cron_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_namespaced_cron_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_namespaced_cron_job`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{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']) - - # HTTP header `Content-Type` - 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='V2alpha1CronJob', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_cron_job_status(self, name, namespace, **kwargs): - """ - read status of the specified CronJob - This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_job_status(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CronJob (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: V2alpha1CronJob - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) - return data - - def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified CronJob - This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_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 CronJob (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: V2alpha1CronJob - 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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_namespaced_cron_job_status" % key + " to method patch_namespaced_cron_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_namespaced_cron_job_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_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_namespaced_cron_job_status`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_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_namespaced_cron_job_status`") collection_formats = {} @@ -2970,18 +1617,20 @@ def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwar 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']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + 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, 'GET', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, @@ -2996,59 +1645,57 @@ def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_job(self, name, namespace, **kwargs): + def patch_namespaced_scheduled_job(self, name, namespace, body, **kwargs): """ - read the specified Job + partially update the specified ScheduledJob This method makes a synchronous HTTP request by default. To make 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_namespaced_job(name, namespace, callback=callback_function) + >>> thread = api.patch_namespaced_scheduled_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 name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (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: V2alpha1Job + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_job_with_http_info(name, namespace, **kwargs) + return self.patch_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_job_with_http_info(name, namespace, **kwargs) + (data) = self.patch_namespaced_scheduled_job_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): + def patch_namespaced_scheduled_job_with_http_info(self, name, namespace, body, **kwargs): """ - read the specified Job + partially update the specified ScheduledJob This method makes a synchronous HTTP request by default. To make 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_namespaced_job_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.patch_namespaced_scheduled_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 name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (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: V2alpha1Job + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3059,21 +1706,24 @@ def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_job" % key + " to method patch_namespaced_scheduled_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_namespaced_job`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scheduled_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_namespaced_job`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scheduled_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_namespaced_scheduled_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -3083,10 +1733,6 @@ def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): 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 = {} @@ -3094,25 +1740,27 @@ def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): 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']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + 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, 'GET', + 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='V2alpha1Job', + response_type='V2alpha1CronJob', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3120,55 +1768,57 @@ def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_job_status(self, name, namespace, **kwargs): + def patch_namespaced_scheduled_job_status(self, name, namespace, body, **kwargs): """ - read status of the specified Job + partially update status of the specified ScheduledJob This method makes a synchronous HTTP request by default. To make 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_namespaced_job_status(name, namespace, callback=callback_function) + >>> thread = api.patch_namespaced_scheduled_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 name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1Job + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) + return self.patch_namespaced_scheduled_job_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) + (data) = self.patch_namespaced_scheduled_job_status_with_http_info(name, namespace, body, **kwargs) return data - def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): + def patch_namespaced_scheduled_job_status_with_http_info(self, name, namespace, body, **kwargs): """ - read status of the specified Job + partially update status of the specified ScheduledJob This method makes a synchronous HTTP request by default. To make 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_namespaced_job_status_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.patch_namespaced_scheduled_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 name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1Job + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3179,21 +1829,24 @@ def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_job_status" % key + " to method patch_namespaced_scheduled_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_namespaced_job_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_scheduled_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_namespaced_job_status`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_scheduled_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_namespaced_scheduled_job_status`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -3210,25 +1863,27 @@ def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): 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']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + 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, 'GET', + 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='V2alpha1Job', + response_type='V2alpha1CronJob', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3236,23 +1891,23 @@ def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_scheduled_job(self, name, namespace, **kwargs): + def read_namespaced_cron_job(self, name, namespace, **kwargs): """ - read the specified ScheduledJob + read the specified CronJob This method makes a synchronous HTTP request by default. To make 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_namespaced_scheduled_job(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_cron_job(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ScheduledJob (required) + :param str name: name of the CronJob (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 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: V2alpha1CronJob If the method is called asynchronously, @@ -3260,28 +1915,28 @@ def read_namespaced_scheduled_job(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_scheduled_job_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_scheduled_job_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_scheduled_job_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): """ - read the specified ScheduledJob + read the specified CronJob This method makes a synchronous HTTP request by default. To make 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_namespaced_scheduled_job_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_cron_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 ScheduledJob (required) + :param str name: name of the CronJob (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 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: V2alpha1CronJob If the method is called asynchronously, @@ -3299,21 +1954,21 @@ def read_namespaced_scheduled_job_with_http_info(self, name, namespace, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_scheduled_job" % key + " to method read_namespaced_cron_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_namespaced_scheduled_job`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_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_namespaced_scheduled_job`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -3360,20 +2015,20 @@ def read_namespaced_scheduled_job_with_http_info(self, name, namespace, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_scheduled_job_status(self, name, namespace, **kwargs): + def read_namespaced_cron_job_status(self, name, namespace, **kwargs): """ - read status of the specified ScheduledJob + read status of the specified CronJob This method makes a synchronous HTTP request by default. To make 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_namespaced_scheduled_job_status(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_cron_job_status(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the ScheduledJob (required) + :param str name: name of the CronJob (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: V2alpha1CronJob @@ -3382,25 +2037,25 @@ def read_namespaced_scheduled_job_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_scheduled_job_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_scheduled_job_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_scheduled_job_status_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwargs): """ - read status of the specified ScheduledJob + read status of the specified CronJob This method makes a synchronous HTTP request by default. To make 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_namespaced_scheduled_job_status_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_cron_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 ScheduledJob (required) + :param str name: name of the CronJob (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: V2alpha1CronJob @@ -3419,21 +2074,21 @@ def read_namespaced_scheduled_job_status_with_http_info(self, name, namespace, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_scheduled_job_status" % key + " to method read_namespaced_cron_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_namespaced_scheduled_job_status`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_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_namespaced_scheduled_job_status`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job_status`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -3476,57 +2131,59 @@ def read_namespaced_scheduled_job_status_with_http_info(self, name, namespace, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_cron_job(self, name, namespace, body, **kwargs): + def read_namespaced_scheduled_job(self, name, namespace, **kwargs): """ - replace the specified CronJob + read the specified ScheduledJob This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_job(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_scheduled_job(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) + :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1CronJob body: (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: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_scheduled_job_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_scheduled_job_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_scheduled_job_with_http_info(self, name, namespace, **kwargs): """ - replace the specified CronJob + read the specified ScheduledJob This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_job_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_scheduled_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 CronJob (required) + :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1CronJob body: (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: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3537,24 +2194,21 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_cron_job" % key + " to method read_namespaced_scheduled_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_namespaced_cron_job`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_scheduled_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_namespaced_cron_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_namespaced_cron_job`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_scheduled_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -3564,6 +2218,10 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw 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 = {} @@ -3571,8 +2229,6 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw 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']) @@ -3584,7 +2240,7 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, @@ -3599,22 +2255,21 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_cron_job_status(self, name, namespace, body, **kwargs): + def read_namespaced_scheduled_job_status(self, name, namespace, **kwargs): """ - replace status of the specified CronJob + read status of the specified ScheduledJob This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_job_status(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_scheduled_job_status(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: name of the CronJob (required) + :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob If the method is called asynchronously, @@ -3622,34 +2277,33 @@ def replace_namespaced_cron_job_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_scheduled_job_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_scheduled_job_status_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_scheduled_job_status_with_http_info(self, name, namespace, **kwargs): """ - replace status of the specified CronJob + read status of the specified ScheduledJob This method makes a synchronous HTTP request by default. To make 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_namespaced_cron_job_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_scheduled_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 CronJob (required) + :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3660,24 +2314,21 @@ def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_cron_job_status" % key + " to method read_namespaced_scheduled_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_namespaced_cron_job_status`") + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_scheduled_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_namespaced_cron_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_namespaced_cron_job_status`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_scheduled_job_status`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -3694,8 +2345,6 @@ def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, bod 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']) @@ -3707,7 +2356,7 @@ def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, bod # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, @@ -3722,52 +2371,52 @@ def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, bod _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_job(self, name, namespace, body, **kwargs): + def replace_namespaced_cron_job(self, name, namespace, body, **kwargs): """ - replace the specified Job + replace the specified CronJob This method makes a synchronous HTTP request by default. To make 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_namespaced_job(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_cron_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 name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1Job body: (required) + :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1Job + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_job_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): """ - replace the specified Job + replace the specified CronJob This method makes a synchronous HTTP request by default. To make 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_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_cron_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 name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1Job body: (required) + :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1Job + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ @@ -3783,24 +2432,24 @@ def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_job" % key + " to method replace_namespaced_cron_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_namespaced_job`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_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_namespaced_job`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_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_namespaced_job`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -3837,7 +2486,7 @@ def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs) body=body_params, post_params=form_params, files=local_var_files, - response_type='V2alpha1Job', + response_type='V2alpha1CronJob', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3845,52 +2494,52 @@ def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_job_status(self, name, namespace, body, **kwargs): + def replace_namespaced_cron_job_status(self, name, namespace, body, **kwargs): """ - replace status of the specified Job + replace status of the specified CronJob This method makes a synchronous HTTP request by default. To make 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_namespaced_job_status(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_cron_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 name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1Job body: (required) + :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1Job + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): """ - replace status of the specified Job + replace status of the specified CronJob This method makes a synchronous HTTP request by default. To make 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_namespaced_job_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_cron_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 name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V2alpha1Job body: (required) + :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1Job + :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ @@ -3906,24 +2555,24 @@ def replace_namespaced_job_status_with_http_info(self, name, namespace, body, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_job_status" % key + " to method replace_namespaced_cron_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_namespaced_job_status`") + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_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_namespaced_job_status`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_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_namespaced_job_status`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job_status`") collection_formats = {} - resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -3960,7 +2609,7 @@ def replace_namespaced_job_status_with_http_info(self, name, namespace, body, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='V2alpha1Job', + response_type='V2alpha1CronJob', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/certificates_api.py b/kubernetes/client/apis/certificates_api.py index 11627e9ad6..96a8192c67 100644 --- a/kubernetes/client/apis/certificates_api.py +++ b/kubernetes/client/apis/certificates_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIGroup', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/certificates_v1alpha1_api.py b/kubernetes/client/apis/certificates_v1beta1_api.py similarity index 87% rename from kubernetes/client/apis/certificates_v1alpha1_api.py rename to kubernetes/client/apis/certificates_v1beta1_api.py index cd895af19a..1ae83cb8d2 100644 --- a/kubernetes/client/apis/certificates_v1alpha1_api.py +++ b/kubernetes/client/apis/certificates_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class CertificatesV1alpha1Api(object): +class CertificatesV1beta1Api(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -53,9 +53,9 @@ def create_certificate_signing_request(self, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1CertificateSigningRequest body: (required) + :param V1beta1CertificateSigningRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1CertificateSigningRequest + :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ @@ -79,9 +79,9 @@ def create_certificate_signing_request_with_http_info(self, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1CertificateSigningRequest body: (required) + :param V1beta1CertificateSigningRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1CertificateSigningRequest + :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ @@ -108,7 +108,7 @@ def create_certificate_signing_request_with_http_info(self, body, **kwargs): collection_formats = {} - resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests'.replace('{format}', 'json') + resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests'.replace('{format}', 'json') path_params = {} query_params = {} @@ -141,7 +141,7 @@ def create_certificate_signing_request_with_http_info(self, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1CertificateSigningRequest', + response_type='V1beta1CertificateSigningRequest', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -166,8 +166,9 @@ def delete_certificate_signing_request(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -195,13 +196,14 @@ def delete_certificate_signing_request_with_http_info(self, name, body, **kwargs :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -226,7 +228,7 @@ def delete_certificate_signing_request_with_http_info(self, name, body, **kwargs collection_formats = {} - resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}'.replace('{format}', 'json') + resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -238,6 +240,8 @@ def delete_certificate_signing_request_with_http_info(self, name, body, **kwargs query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -265,7 +269,7 @@ def delete_certificate_signing_request_with_http_info(self, name, body, **kwargs body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -289,10 +293,10 @@ def delete_collection_certificate_signing_request(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -319,10 +323,10 @@ def delete_collection_certificate_signing_request_with_http_info(self, **kwargs) :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -346,7 +350,7 @@ def delete_collection_certificate_signing_request_with_http_info(self, **kwargs) collection_formats = {} - resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests'.replace('{format}', 'json') + resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests'.replace('{format}', 'json') path_params = {} query_params = {} @@ -387,7 +391,7 @@ def delete_collection_certificate_signing_request_with_http_info(self, **kwargs) body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -408,7 +412,7 @@ def get_api_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -432,7 +436,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -455,7 +459,7 @@ def get_api_resources_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/apis/certificates.k8s.io/v1alpha1/'.replace('{format}', 'json') + resource_path = '/apis/certificates.k8s.io/v1beta1/'.replace('{format}', 'json') path_params = {} query_params = {} @@ -484,7 +488,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIResourceList', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -508,10 +512,10 @@ def list_certificate_signing_request(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1beta1CertificateSigningRequestList If the method is called asynchronously, returns the request thread. """ @@ -538,10 +542,10 @@ def list_certificate_signing_request_with_http_info(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1beta1CertificateSigningRequestList If the method is called asynchronously, returns the request thread. """ @@ -565,7 +569,7 @@ def list_certificate_signing_request_with_http_info(self, **kwargs): collection_formats = {} - resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests'.replace('{format}', 'json') + resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests'.replace('{format}', 'json') path_params = {} query_params = {} @@ -606,7 +610,7 @@ def list_certificate_signing_request_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1CertificateSigningRequestList', + response_type='V1beta1CertificateSigningRequestList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -628,9 +632,9 @@ def patch_certificate_signing_request(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the CertificateSigningRequest (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1CertificateSigningRequest + :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ @@ -655,9 +659,9 @@ def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the CertificateSigningRequest (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1CertificateSigningRequest + :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ @@ -687,7 +691,7 @@ def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs) collection_formats = {} - resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}'.replace('{format}', 'json') + resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -722,7 +726,7 @@ def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs) body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1CertificateSigningRequest', + response_type='V1beta1CertificateSigningRequest', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -745,9 +749,9 @@ def read_certificate_signing_request(self, name, **kwargs): 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 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 + :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ @@ -773,9 +777,9 @@ def read_certificate_signing_request_with_http_info(self, name, **kwargs): 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 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 + :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ @@ -802,7 +806,7 @@ def read_certificate_signing_request_with_http_info(self, name, **kwargs): collection_formats = {} - resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}'.replace('{format}', 'json') + resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -839,7 +843,7 @@ def read_certificate_signing_request_with_http_info(self, name, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1CertificateSigningRequest', + response_type='V1beta1CertificateSigningRequest', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -861,9 +865,9 @@ def replace_certificate_signing_request(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the CertificateSigningRequest (required) - :param V1alpha1CertificateSigningRequest body: (required) + :param V1beta1CertificateSigningRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1CertificateSigningRequest + :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ @@ -888,9 +892,9 @@ def replace_certificate_signing_request_with_http_info(self, name, body, **kwarg :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the CertificateSigningRequest (required) - :param V1alpha1CertificateSigningRequest body: (required) + :param V1beta1CertificateSigningRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1CertificateSigningRequest + :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ @@ -920,7 +924,7 @@ def replace_certificate_signing_request_with_http_info(self, name, body, **kwarg collection_formats = {} - resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}'.replace('{format}', 'json') + resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -955,7 +959,7 @@ def replace_certificate_signing_request_with_http_info(self, name, body, **kwarg body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1CertificateSigningRequest', + response_type='V1beta1CertificateSigningRequest', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -963,7 +967,7 @@ def replace_certificate_signing_request_with_http_info(self, name, body, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_certificate_signing_request_approval(self, body, name, **kwargs): + def replace_certificate_signing_request_approval(self, name, body, **kwargs): """ replace approval of the specified CertificateSigningRequest This method makes a synchronous HTTP request by default. To make an @@ -972,25 +976,25 @@ def replace_certificate_signing_request_approval(self, body, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_certificate_signing_request_approval(body, name, callback=callback_function) + >>> thread = api.replace_certificate_signing_request_approval(name, body, 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 V1beta1CertificateSigningRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1CertificateSigningRequest + :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_certificate_signing_request_approval_with_http_info(body, name, **kwargs) + return self.replace_certificate_signing_request_approval_with_http_info(name, body, **kwargs) else: - (data) = self.replace_certificate_signing_request_approval_with_http_info(body, name, **kwargs) + (data) = self.replace_certificate_signing_request_approval_with_http_info(name, body, **kwargs) return data - def replace_certificate_signing_request_approval_with_http_info(self, body, name, **kwargs): + def replace_certificate_signing_request_approval_with_http_info(self, name, body, **kwargs): """ replace approval of the specified CertificateSigningRequest This method makes a synchronous HTTP request by default. To make an @@ -999,19 +1003,19 @@ def replace_certificate_signing_request_approval_with_http_info(self, body, name >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_certificate_signing_request_approval_with_http_info(body, name, callback=callback_function) + >>> thread = api.replace_certificate_signing_request_approval_with_http_info(name, body, 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 V1beta1CertificateSigningRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1CertificateSigningRequest + :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'name', 'pretty'] + all_params = ['name', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1026,17 +1030,17 @@ def replace_certificate_signing_request_approval_with_http_info(self, body, name ) 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_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_certificate_signing_request_approval`") + # 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_certificate_signing_request_approval`") collection_formats = {} - resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/approval'.replace('{format}', 'json') + resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -1071,7 +1075,7 @@ def replace_certificate_signing_request_approval_with_http_info(self, body, name body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1CertificateSigningRequest', + response_type='V1beta1CertificateSigningRequest', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1079,7 +1083,7 @@ def replace_certificate_signing_request_approval_with_http_info(self, body, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_certificate_signing_request_status(self, body, name, **kwargs): + def replace_certificate_signing_request_status(self, name, body, **kwargs): """ replace status of the specified CertificateSigningRequest This method makes a synchronous HTTP request by default. To make an @@ -1088,25 +1092,25 @@ def replace_certificate_signing_request_status(self, body, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_certificate_signing_request_status(body, name, callback=callback_function) + >>> thread = api.replace_certificate_signing_request_status(name, body, 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 V1beta1CertificateSigningRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1CertificateSigningRequest + :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_certificate_signing_request_status_with_http_info(body, name, **kwargs) + return self.replace_certificate_signing_request_status_with_http_info(name, body, **kwargs) else: - (data) = self.replace_certificate_signing_request_status_with_http_info(body, name, **kwargs) + (data) = self.replace_certificate_signing_request_status_with_http_info(name, body, **kwargs) return data - def replace_certificate_signing_request_status_with_http_info(self, body, name, **kwargs): + def replace_certificate_signing_request_status_with_http_info(self, name, body, **kwargs): """ replace status of the specified CertificateSigningRequest This method makes a synchronous HTTP request by default. To make an @@ -1115,19 +1119,19 @@ def replace_certificate_signing_request_status_with_http_info(self, body, name, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_certificate_signing_request_status_with_http_info(body, name, callback=callback_function) + >>> thread = api.replace_certificate_signing_request_status_with_http_info(name, body, 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 V1beta1CertificateSigningRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1CertificateSigningRequest + :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'name', 'pretty'] + all_params = ['name', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1142,17 +1146,17 @@ def replace_certificate_signing_request_status_with_http_info(self, body, name, ) 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_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_certificate_signing_request_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_certificate_signing_request_status`") collection_formats = {} - resource_path = '/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -1187,7 +1191,7 @@ def replace_certificate_signing_request_status_with_http_info(self, body, name, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1CertificateSigningRequest', + response_type='V1beta1CertificateSigningRequest', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/core_api.py b/kubernetes/client/apis/core_api.py index 13cb84b8ac..646829a057 100644 --- a/kubernetes/client/apis/core_api.py +++ b/kubernetes/client/apis/core_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_versions(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIVersions + :return: V1APIVersions If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_versions_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIVersions + :return: V1APIVersions If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_versions_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIVersions', + response_type='V1APIVersions', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/core_v1_api.py b/kubernetes/client/apis/core_v1_api.py index 3e45774498..014d56c325 100644 --- a/kubernetes/client/apis/core_v1_api.py +++ b/kubernetes/client/apis/core_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -1026,6 +1026,7 @@ def connect_get_namespaced_pod_portforward(self, name, namespace, **kwargs): 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 int ports: List of ports to forward Required when using WebSockets :return: str If the method is called asynchronously, returns the request thread. @@ -1052,12 +1053,13 @@ def connect_get_namespaced_pod_portforward_with_http_info(self, name, namespace, 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 int ports: List of ports to forward Required when using WebSockets :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'ports'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1090,6 +1092,8 @@ def connect_get_namespaced_pod_portforward_with_http_info(self, name, namespace, path_params['namespace'] = params['namespace'] query_params = {} + if 'ports' in params: + query_params['ports'] = params['ports'] header_params = {} @@ -3515,6 +3519,7 @@ def connect_post_namespaced_pod_portforward(self, name, namespace, **kwargs): 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 int ports: List of ports to forward Required when using WebSockets :return: str If the method is called asynchronously, returns the request thread. @@ -3541,12 +3546,13 @@ def connect_post_namespaced_pod_portforward_with_http_info(self, name, namespace 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 int ports: List of ports to forward Required when using WebSockets :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = ['name', 'namespace', 'ports'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3579,6 +3585,8 @@ def connect_post_namespaced_pod_portforward_with_http_info(self, name, namespace path_params['namespace'] = params['namespace'] query_params = {} + if 'ports' in params: + query_params['ports'] = params['ports'] header_params = {} @@ -5127,7 +5135,7 @@ def create_namespace_with_http_info(self, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_binding(self, body, namespace, **kwargs): + def create_namespaced_binding(self, namespace, body, **kwargs): """ create a Binding This method makes a synchronous HTTP request by default. To make an @@ -5136,12 +5144,12 @@ def create_namespaced_binding(self, body, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_binding(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_binding(namespace, body, 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 V1Binding body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Binding If the method is called asynchronously, @@ -5149,12 +5157,12 @@ def create_namespaced_binding(self, body, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_binding_with_http_info(body, namespace, **kwargs) + return self.create_namespaced_binding_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_namespaced_binding_with_http_info(body, namespace, **kwargs) + (data) = self.create_namespaced_binding_with_http_info(namespace, body, **kwargs) return data - def create_namespaced_binding_with_http_info(self, body, namespace, **kwargs): + def create_namespaced_binding_with_http_info(self, namespace, body, **kwargs): """ create a Binding This method makes a synchronous HTTP request by default. To make an @@ -5163,19 +5171,19 @@ def create_namespaced_binding_with_http_info(self, body, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_binding_with_http_info(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_binding_with_http_info(namespace, body, 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 V1Binding body: (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 = ['namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5190,12 +5198,12 @@ def create_namespaced_binding_with_http_info(self, body, namespace, **kwargs): ) 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_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_namespaced_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_namespaced_binding`") collection_formats = {} @@ -5243,7 +5251,7 @@ def create_namespaced_binding_with_http_info(self, body, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_binding_binding(self, body, name, namespace, **kwargs): + def create_namespaced_binding_binding(self, name, namespace, body, **kwargs): """ create binding of a Binding This method makes a synchronous HTTP request by default. To make an @@ -5252,13 +5260,13 @@ def create_namespaced_binding_binding(self, body, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_binding_binding(body, name, namespace, callback=callback_function) + >>> thread = api.create_namespaced_binding_binding(name, namespace, body, 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 V1Binding body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Binding If the method is called asynchronously, @@ -5266,12 +5274,12 @@ def create_namespaced_binding_binding(self, body, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_binding_binding_with_http_info(body, name, namespace, **kwargs) + return self.create_namespaced_binding_binding_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.create_namespaced_binding_binding_with_http_info(body, name, namespace, **kwargs) + (data) = self.create_namespaced_binding_binding_with_http_info(name, namespace, body, **kwargs) return data - def create_namespaced_binding_binding_with_http_info(self, body, name, namespace, **kwargs): + def create_namespaced_binding_binding_with_http_info(self, name, namespace, body, **kwargs): """ create binding of a Binding This method makes a synchronous HTTP request by default. To make an @@ -5280,20 +5288,20 @@ def create_namespaced_binding_binding_with_http_info(self, body, name, namespace >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_binding_binding_with_http_info(body, name, namespace, callback=callback_function) + >>> thread = api.create_namespaced_binding_binding_with_http_info(name, namespace, body, 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 V1Binding body: (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 = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5308,15 +5316,15 @@ def create_namespaced_binding_binding_with_http_info(self, body, name, namespace ) 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_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_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_namespaced_binding_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_namespaced_binding_binding`") collection_formats = {} @@ -5714,7 +5722,7 @@ def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_eviction_eviction(self, body, name, namespace, **kwargs): + def create_namespaced_eviction_eviction(self, name, namespace, body, **kwargs): """ create eviction of an Eviction This method makes a synchronous HTTP request by default. To make an @@ -5723,13 +5731,13 @@ def create_namespaced_eviction_eviction(self, body, name, namespace, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_eviction_eviction(body, name, namespace, callback=callback_function) + >>> thread = api.create_namespaced_eviction_eviction(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1beta1Eviction 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 V1beta1Eviction body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Eviction If the method is called asynchronously, @@ -5737,12 +5745,12 @@ def create_namespaced_eviction_eviction(self, body, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_eviction_eviction_with_http_info(body, name, namespace, **kwargs) + return self.create_namespaced_eviction_eviction_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.create_namespaced_eviction_eviction_with_http_info(body, name, namespace, **kwargs) + (data) = self.create_namespaced_eviction_eviction_with_http_info(name, namespace, body, **kwargs) return data - def create_namespaced_eviction_eviction_with_http_info(self, body, name, namespace, **kwargs): + def create_namespaced_eviction_eviction_with_http_info(self, name, namespace, body, **kwargs): """ create eviction of an Eviction This method makes a synchronous HTTP request by default. To make an @@ -5751,20 +5759,20 @@ def create_namespaced_eviction_eviction_with_http_info(self, body, name, namespa >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_eviction_eviction_with_http_info(body, name, namespace, callback=callback_function) + >>> thread = api.create_namespaced_eviction_eviction_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1beta1Eviction 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 V1beta1Eviction body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Eviction If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'name', 'namespace', 'pretty'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5779,15 +5787,15 @@ def create_namespaced_eviction_eviction_with_http_info(self, body, name, namespa ) 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_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_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_namespaced_eviction_eviction`") + # 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_namespaced_eviction_eviction`") collection_formats = {} @@ -7115,10 +7123,10 @@ def delete_collection_namespace(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -7145,10 +7153,10 @@ def delete_collection_namespace_with_http_info(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -7213,7 +7221,7 @@ def delete_collection_namespace_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7238,10 +7246,10 @@ def delete_collection_namespaced_config_map(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -7269,10 +7277,10 @@ def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kw :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -7342,7 +7350,7 @@ def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7367,10 +7375,10 @@ def delete_collection_namespaced_endpoints(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -7398,10 +7406,10 @@ def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwa :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -7471,7 +7479,7 @@ def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwa body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7496,10 +7504,10 @@ def delete_collection_namespaced_event(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -7527,10 +7535,10 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -7600,7 +7608,7 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7625,10 +7633,10 @@ def delete_collection_namespaced_limit_range(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -7656,10 +7664,10 @@ def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **k :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -7729,7 +7737,7 @@ def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **k body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7754,10 +7762,10 @@ def delete_collection_namespaced_persistent_volume_claim(self, namespace, **kwar :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -7785,10 +7793,10 @@ def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, na :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -7858,7 +7866,7 @@ def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, na body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -7883,10 +7891,10 @@ def delete_collection_namespaced_pod(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -7914,10 +7922,10 @@ def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -7987,7 +7995,7 @@ def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8012,10 +8020,10 @@ def delete_collection_namespaced_pod_template(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8043,10 +8051,10 @@ def delete_collection_namespaced_pod_template_with_http_info(self, namespace, ** :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8116,7 +8124,7 @@ def delete_collection_namespaced_pod_template_with_http_info(self, namespace, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8141,10 +8149,10 @@ def delete_collection_namespaced_replication_controller(self, namespace, **kwarg :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8172,10 +8180,10 @@ def delete_collection_namespaced_replication_controller_with_http_info(self, nam :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8245,7 +8253,7 @@ def delete_collection_namespaced_replication_controller_with_http_info(self, nam body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8270,10 +8278,10 @@ def delete_collection_namespaced_resource_quota(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8301,10 +8309,10 @@ def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8374,7 +8382,7 @@ def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8399,10 +8407,10 @@ def delete_collection_namespaced_secret(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8430,10 +8438,10 @@ def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8503,7 +8511,7 @@ def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8528,10 +8536,10 @@ def delete_collection_namespaced_service_account(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8559,10 +8567,10 @@ def delete_collection_namespaced_service_account_with_http_info(self, namespace, :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8632,7 +8640,7 @@ def delete_collection_namespaced_service_account_with_http_info(self, namespace, body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8656,10 +8664,10 @@ def delete_collection_node(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8686,10 +8694,10 @@ def delete_collection_node_with_http_info(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8754,7 +8762,7 @@ def delete_collection_node_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8778,10 +8786,10 @@ def delete_collection_persistent_volume(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8808,10 +8816,10 @@ def delete_collection_persistent_volume_with_http_info(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8876,7 +8884,7 @@ def delete_collection_persistent_volume_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8901,8 +8909,9 @@ def delete_namespace(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -8930,13 +8939,14 @@ def delete_namespace_with_http_info(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8973,6 +8983,8 @@ def delete_namespace_with_http_info(self, name, body, **kwargs): query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -9000,7 +9012,7 @@ def delete_namespace_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9026,8 +9038,9 @@ def delete_namespaced_config_map(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -9056,13 +9069,14 @@ def delete_namespaced_config_map_with_http_info(self, name, namespace, body, **k :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9104,6 +9118,8 @@ def delete_namespaced_config_map_with_http_info(self, name, namespace, body, **k query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -9131,7 +9147,7 @@ def delete_namespaced_config_map_with_http_info(self, name, namespace, body, **k body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9157,8 +9173,9 @@ def delete_namespaced_endpoints(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -9187,13 +9204,14 @@ def delete_namespaced_endpoints_with_http_info(self, name, namespace, body, **kw :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9235,6 +9253,8 @@ def delete_namespaced_endpoints_with_http_info(self, name, namespace, body, **kw query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -9262,7 +9282,7 @@ def delete_namespaced_endpoints_with_http_info(self, name, namespace, body, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9288,8 +9308,9 @@ def delete_namespaced_event(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -9318,13 +9339,14 @@ def delete_namespaced_event_with_http_info(self, name, namespace, body, **kwargs :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9366,6 +9388,8 @@ def delete_namespaced_event_with_http_info(self, name, namespace, body, **kwargs query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -9393,7 +9417,7 @@ def delete_namespaced_event_with_http_info(self, name, namespace, body, **kwargs body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9419,8 +9443,9 @@ def delete_namespaced_limit_range(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -9449,13 +9474,14 @@ def delete_namespaced_limit_range_with_http_info(self, name, namespace, body, ** :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9497,6 +9523,8 @@ def delete_namespaced_limit_range_with_http_info(self, name, namespace, body, ** query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -9524,7 +9552,7 @@ def delete_namespaced_limit_range_with_http_info(self, name, namespace, body, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9550,8 +9578,9 @@ def delete_namespaced_persistent_volume_claim(self, name, namespace, body, **kwa :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -9580,13 +9609,14 @@ def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespa :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9628,6 +9658,8 @@ def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespa query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -9655,7 +9687,7 @@ def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespa body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9681,8 +9713,9 @@ def delete_namespaced_pod(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -9711,13 +9744,14 @@ def delete_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9759,6 +9793,8 @@ def delete_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -9786,7 +9822,7 @@ def delete_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9812,8 +9848,9 @@ def delete_namespaced_pod_template(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -9842,13 +9879,14 @@ def delete_namespaced_pod_template_with_http_info(self, name, namespace, body, * :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9890,6 +9928,8 @@ def delete_namespaced_pod_template_with_http_info(self, name, namespace, body, * query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -9917,7 +9957,7 @@ def delete_namespaced_pod_template_with_http_info(self, name, namespace, body, * body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9943,8 +9983,9 @@ def delete_namespaced_replication_controller(self, name, namespace, body, **kwar :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -9973,13 +10014,14 @@ def delete_namespaced_replication_controller_with_http_info(self, name, namespac :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10021,6 +10063,8 @@ def delete_namespaced_replication_controller_with_http_info(self, name, namespac query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -10048,7 +10092,7 @@ def delete_namespaced_replication_controller_with_http_info(self, name, namespac body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10074,8 +10118,9 @@ def delete_namespaced_resource_quota(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -10104,13 +10149,14 @@ def delete_namespaced_resource_quota_with_http_info(self, name, namespace, body, :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10152,6 +10198,8 @@ def delete_namespaced_resource_quota_with_http_info(self, name, namespace, body, query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -10179,7 +10227,7 @@ def delete_namespaced_resource_quota_with_http_info(self, name, namespace, body, body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10205,8 +10253,9 @@ def delete_namespaced_secret(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -10235,13 +10284,14 @@ def delete_namespaced_secret_with_http_info(self, name, namespace, body, **kwarg :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10283,6 +10333,8 @@ def delete_namespaced_secret_with_http_info(self, name, namespace, body, **kwarg query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -10310,7 +10362,7 @@ def delete_namespaced_secret_with_http_info(self, name, namespace, body, **kwarg body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10334,7 +10386,7 @@ def delete_namespaced_service(self, name, namespace, **kwargs): :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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -10361,7 +10413,7 @@ def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): :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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -10426,7 +10478,7 @@ def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10452,8 +10504,9 @@ def delete_namespaced_service_account(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -10482,13 +10535,14 @@ def delete_namespaced_service_account_with_http_info(self, name, namespace, body :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10530,6 +10584,8 @@ def delete_namespaced_service_account_with_http_info(self, name, namespace, body query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -10557,7 +10613,7 @@ def delete_namespaced_service_account_with_http_info(self, name, namespace, body body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10582,8 +10638,9 @@ def delete_node(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -10611,13 +10668,14 @@ def delete_node_with_http_info(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10654,6 +10712,8 @@ def delete_node_with_http_info(self, name, body, **kwargs): query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -10681,7 +10741,7 @@ def delete_node_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10706,8 +10766,9 @@ def delete_persistent_volume(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -10735,13 +10796,14 @@ def delete_persistent_volume_with_http_info(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -10778,6 +10840,8 @@ def delete_persistent_volume_with_http_info(self, name, body, **kwargs): query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -10805,7 +10869,7 @@ def delete_persistent_volume_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10826,7 +10890,7 @@ def get_api_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -10850,7 +10914,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -10902,7 +10966,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIResourceList', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10926,7 +10990,7 @@ def list_component_status(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -10956,7 +11020,7 @@ def list_component_status_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11048,7 +11112,7 @@ def list_config_map_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11078,7 +11142,7 @@ def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11170,7 +11234,7 @@ def list_endpoints_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11200,7 +11264,7 @@ def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11292,7 +11356,7 @@ def list_event_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11322,7 +11386,7 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11414,7 +11478,7 @@ def list_limit_range_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11444,7 +11508,7 @@ def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11536,7 +11600,7 @@ def list_namespace(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11566,7 +11630,7 @@ def list_namespace_with_http_info(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11659,7 +11723,7 @@ def list_namespaced_config_map(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11690,7 +11754,7 @@ def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11788,7 +11852,7 @@ def list_namespaced_endpoints(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11819,7 +11883,7 @@ def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11917,7 +11981,7 @@ def list_namespaced_event(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -11948,7 +12012,7 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12046,7 +12110,7 @@ def list_namespaced_limit_range(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12077,7 +12141,7 @@ def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12175,7 +12239,7 @@ def list_namespaced_persistent_volume_claim(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12206,7 +12270,7 @@ def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kw :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12304,7 +12368,7 @@ def list_namespaced_pod(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12335,7 +12399,7 @@ def list_namespaced_pod_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12433,7 +12497,7 @@ def list_namespaced_pod_template(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12464,7 +12528,7 @@ def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12562,7 +12626,7 @@ def list_namespaced_replication_controller(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12593,7 +12657,7 @@ def list_namespaced_replication_controller_with_http_info(self, namespace, **kwa :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12691,7 +12755,7 @@ def list_namespaced_resource_quota(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12722,7 +12786,7 @@ def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12820,7 +12884,7 @@ def list_namespaced_secret(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12851,7 +12915,7 @@ def list_namespaced_secret_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12949,7 +13013,7 @@ def list_namespaced_service(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -12980,7 +13044,7 @@ def list_namespaced_service_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13078,7 +13142,7 @@ def list_namespaced_service_account(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13109,7 +13173,7 @@ def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13206,7 +13270,7 @@ def list_node(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13236,7 +13300,7 @@ def list_node_with_http_info(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13328,7 +13392,7 @@ def list_persistent_volume(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13358,7 +13422,7 @@ def list_persistent_volume_with_http_info(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13450,7 +13514,7 @@ def list_persistent_volume_claim_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13480,7 +13544,7 @@ def list_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwarg :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13572,7 +13636,7 @@ def list_pod_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13602,7 +13666,7 @@ def list_pod_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13694,7 +13758,7 @@ def list_pod_template_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13724,7 +13788,7 @@ def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13816,7 +13880,7 @@ def list_replication_controller_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13846,7 +13910,7 @@ def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13938,7 +14002,7 @@ def list_resource_quota_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -13968,7 +14032,7 @@ def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -14060,7 +14124,7 @@ def list_secret_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -14090,7 +14154,7 @@ def list_secret_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -14182,7 +14246,7 @@ def list_service_account_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -14212,7 +14276,7 @@ def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -14304,7 +14368,7 @@ def list_service_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -14334,7 +14398,7 @@ def list_service_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -14424,7 +14488,7 @@ def patch_namespace(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Namespace (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Namespace If the method is called asynchronously, @@ -14451,7 +14515,7 @@ def patch_namespace_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Namespace (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Namespace If the method is called asynchronously, @@ -14540,7 +14604,7 @@ def patch_namespace_status(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Namespace (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Namespace If the method is called asynchronously, @@ -14567,7 +14631,7 @@ def patch_namespace_status_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Namespace (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Namespace If the method is called asynchronously, @@ -14657,7 +14721,7 @@ def patch_namespaced_config_map(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ConfigMap If the method is called asynchronously, @@ -14685,7 +14749,7 @@ def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kw 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ConfigMap If the method is called asynchronously, @@ -14780,7 +14844,7 @@ def patch_namespaced_endpoints(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Endpoints If the method is called asynchronously, @@ -14808,7 +14872,7 @@ def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwa 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Endpoints If the method is called asynchronously, @@ -14903,7 +14967,7 @@ def patch_namespaced_event(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Event If the method is called asynchronously, @@ -14931,7 +14995,7 @@ def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs) 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Event If the method is called asynchronously, @@ -15026,7 +15090,7 @@ def patch_namespaced_limit_range(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1LimitRange If the method is called asynchronously, @@ -15054,7 +15118,7 @@ def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **k 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1LimitRange If the method is called asynchronously, @@ -15149,7 +15213,7 @@ def patch_namespaced_persistent_volume_claim(self, name, namespace, body, **kwar 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolumeClaim If the method is called asynchronously, @@ -15177,7 +15241,7 @@ def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespac 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolumeClaim If the method is called asynchronously, @@ -15272,7 +15336,7 @@ def patch_namespaced_persistent_volume_claim_status(self, name, namespace, body, 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolumeClaim If the method is called asynchronously, @@ -15300,7 +15364,7 @@ def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, n 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolumeClaim If the method is called asynchronously, @@ -15395,7 +15459,7 @@ def patch_namespaced_pod(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Pod If the method is called asynchronously, @@ -15423,7 +15487,7 @@ def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Pod If the method is called asynchronously, @@ -15518,7 +15582,7 @@ def patch_namespaced_pod_status(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Pod If the method is called asynchronously, @@ -15546,7 +15610,7 @@ def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kw 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Pod If the method is called asynchronously, @@ -15641,7 +15705,7 @@ def patch_namespaced_pod_template(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PodTemplate If the method is called asynchronously, @@ -15669,7 +15733,7 @@ def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, ** 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PodTemplate If the method is called asynchronously, @@ -15764,7 +15828,7 @@ def patch_namespaced_replication_controller(self, name, namespace, body, **kwarg 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ReplicationController If the method is called asynchronously, @@ -15792,7 +15856,7 @@ def patch_namespaced_replication_controller_with_http_info(self, name, namespace 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ReplicationController If the method is called asynchronously, @@ -15887,7 +15951,7 @@ def patch_namespaced_replication_controller_status(self, name, namespace, body, 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ReplicationController If the method is called asynchronously, @@ -15915,7 +15979,7 @@ def patch_namespaced_replication_controller_status_with_http_info(self, name, na 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ReplicationController If the method is called asynchronously, @@ -16010,7 +16074,7 @@ def patch_namespaced_resource_quota(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ResourceQuota If the method is called asynchronously, @@ -16038,7 +16102,7 @@ def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ResourceQuota If the method is called asynchronously, @@ -16133,7 +16197,7 @@ def patch_namespaced_resource_quota_status(self, name, namespace, body, **kwargs 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ResourceQuota If the method is called asynchronously, @@ -16161,7 +16225,7 @@ def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ResourceQuota If the method is called asynchronously, @@ -16256,7 +16320,7 @@ def patch_namespaced_scale_scale(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Scale If the method is called asynchronously, @@ -16284,7 +16348,7 @@ def patch_namespaced_scale_scale_with_http_info(self, name, namespace, body, **k 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Scale If the method is called asynchronously, @@ -16379,7 +16443,7 @@ def patch_namespaced_secret(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Secret If the method is called asynchronously, @@ -16407,7 +16471,7 @@ def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Secret If the method is called asynchronously, @@ -16502,7 +16566,7 @@ def patch_namespaced_service(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Service If the method is called asynchronously, @@ -16530,7 +16594,7 @@ def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwarg 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Service If the method is called asynchronously, @@ -16625,7 +16689,7 @@ def patch_namespaced_service_account(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ServiceAccount If the method is called asynchronously, @@ -16653,7 +16717,7 @@ def patch_namespaced_service_account_with_http_info(self, name, namespace, body, 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ServiceAccount If the method is called asynchronously, @@ -16748,7 +16812,7 @@ def patch_namespaced_service_status(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Service If the method is called asynchronously, @@ -16776,7 +16840,7 @@ def patch_namespaced_service_status_with_http_info(self, name, namespace, body, 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Service If the method is called asynchronously, @@ -16870,7 +16934,7 @@ def patch_node(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Node (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Node If the method is called asynchronously, @@ -16897,7 +16961,7 @@ def patch_node_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Node (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Node If the method is called asynchronously, @@ -16986,7 +17050,7 @@ def patch_node_status(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Node (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Node If the method is called asynchronously, @@ -17013,7 +17077,7 @@ def patch_node_status_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Node (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Node If the method is called asynchronously, @@ -17102,7 +17166,7 @@ def patch_persistent_volume(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PersistentVolume (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolume If the method is called asynchronously, @@ -17129,7 +17193,7 @@ def patch_persistent_volume_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PersistentVolume (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolume If the method is called asynchronously, @@ -17218,7 +17282,7 @@ def patch_persistent_volume_status(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PersistentVolume (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolume If the method is called asynchronously, @@ -17245,7 +17309,7 @@ def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PersistentVolume (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolume If the method is called asynchronously, @@ -20036,16 +20100,16 @@ def proxy_options_node_with_path_with_http_info(self, name, path, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_post_namespaced_pod(self, name, namespace, **kwargs): + def proxy_patch_namespaced_pod(self, name, namespace, **kwargs): """ - proxy POST requests to Pod + proxy PATCH 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_post_namespaced_pod(name, namespace, callback=callback_function) + >>> thread = api.proxy_patch_namespaced_pod(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20057,21 +20121,21 @@ def proxy_post_namespaced_pod(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_post_namespaced_pod_with_http_info(name, namespace, **kwargs) + return self.proxy_patch_namespaced_pod_with_http_info(name, namespace, **kwargs) else: - (data) = self.proxy_post_namespaced_pod_with_http_info(name, namespace, **kwargs) + (data) = self.proxy_patch_namespaced_pod_with_http_info(name, namespace, **kwargs) return data - def proxy_post_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + def proxy_patch_namespaced_pod_with_http_info(self, name, namespace, **kwargs): """ - proxy POST requests to Pod + proxy PATCH 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_post_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.proxy_patch_namespaced_pod_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20093,16 +20157,16 @@ def proxy_post_namespaced_pod_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_post_namespaced_pod" % key + " to method proxy_patch_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_post_namespaced_pod`") + raise ValueError("Missing the required parameter `name` when calling `proxy_patch_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_post_namespaced_pod`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_patch_namespaced_pod`") collection_formats = {} @@ -20133,7 +20197,7 @@ def proxy_post_namespaced_pod_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, @@ -20148,16 +20212,16 @@ def proxy_post_namespaced_pod_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_post_namespaced_pod_with_path(self, name, namespace, path, **kwargs): + def proxy_patch_namespaced_pod_with_path(self, name, namespace, path, **kwargs): """ - proxy POST requests to Pod + proxy PATCH 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_post_namespaced_pod_with_path(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_patch_namespaced_pod_with_path(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20170,21 +20234,21 @@ def proxy_post_namespaced_pod_with_path(self, name, namespace, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_post_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + return self.proxy_patch_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) else: - (data) = self.proxy_post_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.proxy_patch_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) return data - def proxy_post_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): + def proxy_patch_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): """ - proxy POST requests to Pod + proxy PATCH 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_post_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_patch_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20207,19 +20271,19 @@ def proxy_post_namespaced_pod_with_path_with_http_info(self, name, namespace, pa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_post_namespaced_pod_with_path" % key + " to method proxy_patch_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_post_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_patch_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_post_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_patch_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_post_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_patch_namespaced_pod_with_path`") collection_formats = {} @@ -20252,7 +20316,7 @@ def proxy_post_namespaced_pod_with_path_with_http_info(self, name, namespace, pa # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, @@ -20267,16 +20331,16 @@ def proxy_post_namespaced_pod_with_path_with_http_info(self, name, namespace, pa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_post_namespaced_service(self, name, namespace, **kwargs): + def proxy_patch_namespaced_service(self, name, namespace, **kwargs): """ - proxy POST requests to Service + proxy PATCH 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_post_namespaced_service(name, namespace, callback=callback_function) + >>> thread = api.proxy_patch_namespaced_service(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20288,21 +20352,21 @@ def proxy_post_namespaced_service(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_post_namespaced_service_with_http_info(name, namespace, **kwargs) + return self.proxy_patch_namespaced_service_with_http_info(name, namespace, **kwargs) else: - (data) = self.proxy_post_namespaced_service_with_http_info(name, namespace, **kwargs) + (data) = self.proxy_patch_namespaced_service_with_http_info(name, namespace, **kwargs) return data - def proxy_post_namespaced_service_with_http_info(self, name, namespace, **kwargs): + def proxy_patch_namespaced_service_with_http_info(self, name, namespace, **kwargs): """ - proxy POST requests to Service + proxy PATCH 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_post_namespaced_service_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.proxy_patch_namespaced_service_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20324,16 +20388,16 @@ def proxy_post_namespaced_service_with_http_info(self, name, namespace, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_post_namespaced_service" % key + " to method proxy_patch_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_post_namespaced_service`") + raise ValueError("Missing the required parameter `name` when calling `proxy_patch_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_post_namespaced_service`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_patch_namespaced_service`") collection_formats = {} @@ -20364,7 +20428,7 @@ def proxy_post_namespaced_service_with_http_info(self, name, namespace, **kwargs # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, @@ -20379,16 +20443,16 @@ def proxy_post_namespaced_service_with_http_info(self, name, namespace, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_post_namespaced_service_with_path(self, name, namespace, path, **kwargs): + def proxy_patch_namespaced_service_with_path(self, name, namespace, path, **kwargs): """ - proxy POST requests to Service + proxy PATCH 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_post_namespaced_service_with_path(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_patch_namespaced_service_with_path(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20401,21 +20465,21 @@ def proxy_post_namespaced_service_with_path(self, name, namespace, path, **kwarg """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_post_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + return self.proxy_patch_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) else: - (data) = self.proxy_post_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.proxy_patch_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) return data - def proxy_post_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): + def proxy_patch_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): """ - proxy POST requests to Service + proxy PATCH 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_post_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_patch_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20438,19 +20502,19 @@ def proxy_post_namespaced_service_with_path_with_http_info(self, name, namespace if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_post_namespaced_service_with_path" % key + " to method proxy_patch_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_post_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_patch_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_post_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_patch_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_post_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_patch_namespaced_service_with_path`") collection_formats = {} @@ -20483,7 +20547,7 @@ def proxy_post_namespaced_service_with_path_with_http_info(self, name, namespace # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, @@ -20498,16 +20562,16 @@ def proxy_post_namespaced_service_with_path_with_http_info(self, name, namespace _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_post_node(self, name, **kwargs): + def proxy_patch_node(self, name, **kwargs): """ - proxy POST requests to Node + proxy PATCH 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_post_node(name, callback=callback_function) + >>> thread = api.proxy_patch_node(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20518,21 +20582,21 @@ def proxy_post_node(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_post_node_with_http_info(name, **kwargs) + return self.proxy_patch_node_with_http_info(name, **kwargs) else: - (data) = self.proxy_post_node_with_http_info(name, **kwargs) + (data) = self.proxy_patch_node_with_http_info(name, **kwargs) return data - def proxy_post_node_with_http_info(self, name, **kwargs): + def proxy_patch_node_with_http_info(self, name, **kwargs): """ - proxy POST requests to Node + proxy PATCH 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_post_node_with_http_info(name, callback=callback_function) + >>> thread = api.proxy_patch_node_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20553,13 +20617,13 @@ def proxy_post_node_with_http_info(self, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_post_node" % key + " to method proxy_patch_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_post_node`") + raise ValueError("Missing the required parameter `name` when calling `proxy_patch_node`") collection_formats = {} @@ -20588,7 +20652,7 @@ def proxy_post_node_with_http_info(self, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, @@ -20603,16 +20667,16 @@ def proxy_post_node_with_http_info(self, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_post_node_with_path(self, name, path, **kwargs): + def proxy_patch_node_with_path(self, name, path, **kwargs): """ - proxy POST requests to Node + proxy PATCH 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_post_node_with_path(name, path, callback=callback_function) + >>> thread = api.proxy_patch_node_with_path(name, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20624,21 +20688,21 @@ def proxy_post_node_with_path(self, name, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_post_node_with_path_with_http_info(name, path, **kwargs) + return self.proxy_patch_node_with_path_with_http_info(name, path, **kwargs) else: - (data) = self.proxy_post_node_with_path_with_http_info(name, path, **kwargs) + (data) = self.proxy_patch_node_with_path_with_http_info(name, path, **kwargs) return data - def proxy_post_node_with_path_with_http_info(self, name, path, **kwargs): + def proxy_patch_node_with_path_with_http_info(self, name, path, **kwargs): """ - proxy POST requests to Node + proxy PATCH 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_post_node_with_path_with_http_info(name, path, callback=callback_function) + >>> thread = api.proxy_patch_node_with_path_with_http_info(name, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20660,16 +20724,16 @@ def proxy_post_node_with_path_with_http_info(self, name, path, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_post_node_with_path" % key + " to method proxy_patch_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_post_node_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_patch_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_post_node_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_patch_node_with_path`") collection_formats = {} @@ -20700,7 +20764,7 @@ def proxy_post_node_with_path_with_http_info(self, name, path, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'POST', + return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, @@ -20715,16 +20779,16 @@ def proxy_post_node_with_path_with_http_info(self, name, path, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_put_namespaced_pod(self, name, namespace, **kwargs): + def proxy_post_namespaced_pod(self, name, namespace, **kwargs): """ - proxy PUT requests to Pod + 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_put_namespaced_pod(name, namespace, callback=callback_function) + >>> thread = api.proxy_post_namespaced_pod(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20736,21 +20800,21 @@ def proxy_put_namespaced_pod(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_put_namespaced_pod_with_http_info(name, namespace, **kwargs) + return self.proxy_post_namespaced_pod_with_http_info(name, namespace, **kwargs) else: - (data) = self.proxy_put_namespaced_pod_with_http_info(name, namespace, **kwargs) + (data) = self.proxy_post_namespaced_pod_with_http_info(name, namespace, **kwargs) return data - def proxy_put_namespaced_pod_with_http_info(self, name, namespace, **kwargs): + def proxy_post_namespaced_pod_with_http_info(self, name, namespace, **kwargs): """ - proxy PUT requests to Pod + 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_put_namespaced_pod_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.proxy_post_namespaced_pod_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20772,16 +20836,16 @@ def proxy_put_namespaced_pod_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_put_namespaced_pod" % key + " to method proxy_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_put_namespaced_pod`") + raise ValueError("Missing the required parameter `name` when calling `proxy_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_put_namespaced_pod`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_post_namespaced_pod`") collection_formats = {} @@ -20812,7 +20876,7 @@ def proxy_put_namespaced_pod_with_http_info(self, name, namespace, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, @@ -20827,16 +20891,16 @@ def proxy_put_namespaced_pod_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_put_namespaced_pod_with_path(self, name, namespace, path, **kwargs): + def proxy_post_namespaced_pod_with_path(self, name, namespace, path, **kwargs): """ - proxy PUT requests to Pod + 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_put_namespaced_pod_with_path(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_post_namespaced_pod_with_path(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20849,21 +20913,21 @@ def proxy_put_namespaced_pod_with_path(self, name, namespace, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_put_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + return self.proxy_post_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) else: - (data) = self.proxy_put_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.proxy_post_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) return data - def proxy_put_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): + def proxy_post_namespaced_pod_with_path_with_http_info(self, name, namespace, path, **kwargs): """ - proxy PUT requests to Pod + 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_put_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_post_namespaced_pod_with_path_with_http_info(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20886,19 +20950,19 @@ def proxy_put_namespaced_pod_with_path_with_http_info(self, name, namespace, pat if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_put_namespaced_pod_with_path" % key + " to method proxy_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_put_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_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_put_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_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_put_namespaced_pod_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_post_namespaced_pod_with_path`") collection_formats = {} @@ -20931,7 +20995,7 @@ def proxy_put_namespaced_pod_with_path_with_http_info(self, name, namespace, pat # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, @@ -20946,16 +21010,16 @@ def proxy_put_namespaced_pod_with_path_with_http_info(self, name, namespace, pat _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_put_namespaced_service(self, name, namespace, **kwargs): + def proxy_post_namespaced_service(self, name, namespace, **kwargs): """ - proxy PUT requests to Service + 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_put_namespaced_service(name, namespace, callback=callback_function) + >>> thread = api.proxy_post_namespaced_service(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -20967,21 +21031,21 @@ def proxy_put_namespaced_service(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_put_namespaced_service_with_http_info(name, namespace, **kwargs) + return self.proxy_post_namespaced_service_with_http_info(name, namespace, **kwargs) else: - (data) = self.proxy_put_namespaced_service_with_http_info(name, namespace, **kwargs) + (data) = self.proxy_post_namespaced_service_with_http_info(name, namespace, **kwargs) return data - def proxy_put_namespaced_service_with_http_info(self, name, namespace, **kwargs): + def proxy_post_namespaced_service_with_http_info(self, name, namespace, **kwargs): """ - proxy PUT requests to Service + 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_put_namespaced_service_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.proxy_post_namespaced_service_with_http_info(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21003,16 +21067,16 @@ def proxy_put_namespaced_service_with_http_info(self, name, namespace, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_put_namespaced_service" % key + " to method proxy_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_put_namespaced_service`") + raise ValueError("Missing the required parameter `name` when calling `proxy_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_put_namespaced_service`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_post_namespaced_service`") collection_formats = {} @@ -21043,7 +21107,7 @@ def proxy_put_namespaced_service_with_http_info(self, name, namespace, **kwargs) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, @@ -21058,16 +21122,16 @@ def proxy_put_namespaced_service_with_http_info(self, name, namespace, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_put_namespaced_service_with_path(self, name, namespace, path, **kwargs): + def proxy_post_namespaced_service_with_path(self, name, namespace, path, **kwargs): """ - proxy PUT requests to Service + 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_put_namespaced_service_with_path(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_post_namespaced_service_with_path(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21080,21 +21144,21 @@ def proxy_put_namespaced_service_with_path(self, name, namespace, path, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_put_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + return self.proxy_post_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) else: - (data) = self.proxy_put_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.proxy_post_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) return data - def proxy_put_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): + def proxy_post_namespaced_service_with_path_with_http_info(self, name, namespace, path, **kwargs): """ - proxy PUT requests to Service + 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_put_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) + >>> thread = api.proxy_post_namespaced_service_with_path_with_http_info(name, namespace, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21117,19 +21181,19 @@ def proxy_put_namespaced_service_with_path_with_http_info(self, name, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_put_namespaced_service_with_path" % key + " to method proxy_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_put_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_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_put_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `namespace` when calling `proxy_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_put_namespaced_service_with_path`") + raise ValueError("Missing the required parameter `path` when calling `proxy_post_namespaced_service_with_path`") collection_formats = {} @@ -21162,7 +21226,7 @@ def proxy_put_namespaced_service_with_path_with_http_info(self, name, namespace, # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, @@ -21177,16 +21241,16 @@ def proxy_put_namespaced_service_with_path_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_put_node(self, name, **kwargs): + def proxy_post_node(self, name, **kwargs): """ - proxy PUT requests to Node + 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_put_node(name, callback=callback_function) + >>> thread = api.proxy_post_node(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21197,21 +21261,21 @@ def proxy_put_node(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_put_node_with_http_info(name, **kwargs) + return self.proxy_post_node_with_http_info(name, **kwargs) else: - (data) = self.proxy_put_node_with_http_info(name, **kwargs) + (data) = self.proxy_post_node_with_http_info(name, **kwargs) return data - def proxy_put_node_with_http_info(self, name, **kwargs): + def proxy_post_node_with_http_info(self, name, **kwargs): """ - proxy PUT requests to Node + 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_put_node_with_http_info(name, callback=callback_function) + >>> thread = api.proxy_post_node_with_http_info(name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21232,13 +21296,13 @@ def proxy_put_node_with_http_info(self, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_put_node" % key + " to method proxy_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_put_node`") + raise ValueError("Missing the required parameter `name` when calling `proxy_post_node`") collection_formats = {} @@ -21267,7 +21331,7 @@ def proxy_put_node_with_http_info(self, name, **kwargs): # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PUT', + return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, @@ -21282,16 +21346,16 @@ def proxy_put_node_with_http_info(self, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def proxy_put_node_with_path(self, name, path, **kwargs): + def proxy_post_node_with_path(self, name, path, **kwargs): """ - proxy PUT requests to Node + 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_put_node_with_path(name, path, callback=callback_function) + >>> thread = api.proxy_post_node_with_path(name, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21303,21 +21367,21 @@ def proxy_put_node_with_path(self, name, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.proxy_put_node_with_path_with_http_info(name, path, **kwargs) + return self.proxy_post_node_with_path_with_http_info(name, path, **kwargs) else: - (data) = self.proxy_put_node_with_path_with_http_info(name, path, **kwargs) + (data) = self.proxy_post_node_with_path_with_http_info(name, path, **kwargs) return data - def proxy_put_node_with_path_with_http_info(self, name, path, **kwargs): + def proxy_post_node_with_path_with_http_info(self, name, path, **kwargs): """ - proxy PUT requests to Node + 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_put_node_with_path_with_http_info(name, path, callback=callback_function) + >>> thread = api.proxy_post_node_with_path_with_http_info(name, path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -21339,13 +21403,692 @@ def proxy_put_node_with_path_with_http_info(self, name, path, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method proxy_put_node_with_path" % key + " to method proxy_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_put_node_with_path`") + raise ValueError("Missing the required parameter `name` when calling `proxy_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_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(['*/*']) + + # HTTP header `Content-Type` + 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'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def proxy_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_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_put_namespaced_pod_with_http_info(name, namespace, **kwargs) + else: + (data) = self.proxy_put_namespaced_pod_with_http_info(name, namespace, **kwargs) + return data + + def proxy_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_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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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(['*/*']) + + # HTTP header `Content-Type` + 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'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def proxy_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_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_put_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.proxy_put_namespaced_pod_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def proxy_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_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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_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(['*/*']) + + # HTTP header `Content-Type` + 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'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def proxy_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_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_put_namespaced_service_with_http_info(name, namespace, **kwargs) + else: + (data) = self.proxy_put_namespaced_service_with_http_info(name, namespace, **kwargs) + return data + + def proxy_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_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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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(['*/*']) + + # HTTP header `Content-Type` + 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'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def proxy_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_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_put_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + else: + (data) = self.proxy_put_namespaced_service_with_path_with_http_info(name, namespace, path, **kwargs) + return data + + def proxy_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_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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_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(['*/*']) + + # HTTP header `Content-Type` + 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'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def proxy_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_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_put_node_with_http_info(name, **kwargs) + else: + (data) = self.proxy_put_node_with_http_info(name, **kwargs) + return data + + def proxy_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_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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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(['*/*']) + + # HTTP header `Content-Type` + 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'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def proxy_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_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_put_node_with_path_with_http_info(name, path, **kwargs) + else: + (data) = self.proxy_put_node_with_path_with_http_info(name, path, **kwargs) + return data + + def proxy_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_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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_put_node_with_path`") @@ -21518,7 +22261,7 @@ def read_namespace(self, name, **kwargs): 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 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, @@ -21546,7 +22289,7 @@ def read_namespace_with_http_info(self, name, **kwargs): 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 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, @@ -21745,7 +22488,7 @@ def read_namespaced_config_map(self, name, namespace, **kwargs): :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 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, @@ -21774,7 +22517,7 @@ def read_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): :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 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, @@ -21869,7 +22612,7 @@ def read_namespaced_endpoints(self, name, namespace, **kwargs): :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 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, @@ -21898,7 +22641,7 @@ def read_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): :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 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, @@ -21993,7 +22736,7 @@ def read_namespaced_event(self, name, namespace, **kwargs): :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 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, @@ -22022,7 +22765,7 @@ def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): :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 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, @@ -22117,7 +22860,7 @@ def read_namespaced_limit_range(self, name, namespace, **kwargs): :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 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, @@ -22146,7 +22889,7 @@ def read_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): :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 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, @@ -22241,7 +22984,7 @@ def read_namespaced_persistent_volume_claim(self, name, namespace, **kwargs): :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 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, @@ -22270,7 +23013,7 @@ def read_namespaced_persistent_volume_claim_with_http_info(self, name, namespace :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 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, @@ -22481,7 +23224,7 @@ def read_namespaced_pod(self, name, namespace, **kwargs): :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 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, @@ -22510,7 +23253,7 @@ def read_namespaced_pod_with_http_info(self, name, namespace, **kwargs): :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 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, @@ -22610,7 +23353,6 @@ def read_namespaced_pod_log(self, name, namespace, **kwargs): :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: str @@ -22645,7 +23387,6 @@ def read_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): :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: str @@ -22653,7 +23394,7 @@ def read_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'container', 'follow', 'limit_bytes', 'pretty', 'previous', 'since_seconds', 'since_time', 'tail_lines', 'timestamps'] + all_params = ['name', 'namespace', 'container', 'follow', 'limit_bytes', 'pretty', 'previous', 'since_seconds', 'tail_lines', 'timestamps'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -22698,8 +23439,6 @@ def read_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): 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: @@ -22869,7 +23608,7 @@ def read_namespaced_pod_template(self, name, namespace, **kwargs): :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 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, @@ -22898,7 +23637,7 @@ def read_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs) :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 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, @@ -22993,7 +23732,7 @@ def read_namespaced_replication_controller(self, name, namespace, **kwargs): :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 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, @@ -23022,7 +23761,7 @@ def read_namespaced_replication_controller_with_http_info(self, name, namespace, :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 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, @@ -23233,7 +23972,7 @@ def read_namespaced_resource_quota(self, name, namespace, **kwargs): :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 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, @@ -23262,7 +24001,7 @@ def read_namespaced_resource_quota_with_http_info(self, name, namespace, **kwarg :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 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, @@ -23589,7 +24328,7 @@ def read_namespaced_secret(self, name, namespace, **kwargs): :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 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, @@ -23618,7 +24357,7 @@ def read_namespaced_secret_with_http_info(self, name, namespace, **kwargs): :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 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, @@ -23713,7 +24452,7 @@ def read_namespaced_service(self, name, namespace, **kwargs): :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 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, @@ -23742,7 +24481,7 @@ def read_namespaced_service_with_http_info(self, name, namespace, **kwargs): :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 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, @@ -23837,7 +24576,7 @@ def read_namespaced_service_account(self, name, namespace, **kwargs): :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 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, @@ -23866,7 +24605,7 @@ def read_namespaced_service_account_with_http_info(self, name, namespace, **kwar :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 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, @@ -24076,7 +24815,7 @@ def read_node(self, name, **kwargs): 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 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, @@ -24104,7 +24843,7 @@ def read_node_with_http_info(self, name, **kwargs): 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 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, @@ -24302,7 +25041,7 @@ def read_persistent_volume(self, name, **kwargs): 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 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, @@ -24330,7 +25069,7 @@ def read_persistent_volume_with_http_info(self, name, **kwargs): 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 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, @@ -24629,7 +25368,7 @@ def replace_namespace_with_http_info(self, name, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespace_finalize(self, body, name, **kwargs): + def replace_namespace_finalize(self, name, body, **kwargs): """ replace finalize of the specified Namespace This method makes a synchronous HTTP request by default. To make an @@ -24638,12 +25377,12 @@ def replace_namespace_finalize(self, body, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespace_finalize(body, name, callback=callback_function) + >>> thread = api.replace_namespace_finalize(name, body, 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 V1Namespace body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Namespace If the method is called asynchronously, @@ -24651,12 +25390,12 @@ def replace_namespace_finalize(self, body, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespace_finalize_with_http_info(body, name, **kwargs) + return self.replace_namespace_finalize_with_http_info(name, body, **kwargs) else: - (data) = self.replace_namespace_finalize_with_http_info(body, name, **kwargs) + (data) = self.replace_namespace_finalize_with_http_info(name, body, **kwargs) return data - def replace_namespace_finalize_with_http_info(self, body, name, **kwargs): + def replace_namespace_finalize_with_http_info(self, name, body, **kwargs): """ replace finalize of the specified Namespace This method makes a synchronous HTTP request by default. To make an @@ -24665,19 +25404,19 @@ def replace_namespace_finalize_with_http_info(self, body, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.replace_namespace_finalize_with_http_info(body, name, callback=callback_function) + >>> thread = api.replace_namespace_finalize_with_http_info(name, body, 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 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', 'name', 'pretty'] + all_params = ['name', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -24692,12 +25431,12 @@ def replace_namespace_finalize_with_http_info(self, body, name, **kwargs): ) 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_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_namespace_finalize`") + # 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_namespace_finalize`") collection_formats = {} diff --git a/kubernetes/client/apis/extensions_api.py b/kubernetes/client/apis/extensions_api.py index 7c902569ed..5048be0a00 100644 --- a/kubernetes/client/apis/extensions_api.py +++ b/kubernetes/client/apis/extensions_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIGroup', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/extensions_v1beta1_api.py b/kubernetes/client/apis/extensions_v1beta1_api.py index 8a975e0e7b..d496d76d39 100644 --- a/kubernetes/client/apis/extensions_v1beta1_api.py +++ b/kubernetes/client/apis/extensions_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -170,9 +170,9 @@ def create_namespaced_deployment(self, namespace, body, **kwargs): :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 ExtensionsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Deployment + :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ @@ -197,9 +197,9 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) :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 ExtensionsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Deployment + :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ @@ -264,7 +264,7 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Deployment', + response_type='ExtensionsV1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -272,7 +272,7 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_deployment_rollback_rollback(self, body, name, namespace, **kwargs): + def create_namespaced_deployment_rollback_rollback(self, name, namespace, body, **kwargs): """ create rollback of a DeploymentRollback This method makes a synchronous HTTP request by default. To make an @@ -281,26 +281,26 @@ def create_namespaced_deployment_rollback_rollback(self, body, name, namespace, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_deployment_rollback_rollback(body, name, namespace, callback=callback_function) + >>> thread = api.create_namespaced_deployment_rollback_rollback(name, namespace, body, 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 ExtensionsV1beta1DeploymentRollback body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DeploymentRollback + :return: ExtensionsV1beta1DeploymentRollback If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_deployment_rollback_rollback_with_http_info(body, name, namespace, **kwargs) + return self.create_namespaced_deployment_rollback_rollback_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.create_namespaced_deployment_rollback_rollback_with_http_info(body, name, namespace, **kwargs) + (data) = self.create_namespaced_deployment_rollback_rollback_with_http_info(name, namespace, body, **kwargs) return data - def create_namespaced_deployment_rollback_rollback_with_http_info(self, body, name, namespace, **kwargs): + def create_namespaced_deployment_rollback_rollback_with_http_info(self, name, namespace, body, **kwargs): """ create rollback of a DeploymentRollback This method makes a synchronous HTTP request by default. To make an @@ -309,20 +309,20 @@ def create_namespaced_deployment_rollback_rollback_with_http_info(self, body, na >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_namespaced_deployment_rollback_rollback_with_http_info(body, name, namespace, callback=callback_function) + >>> thread = api.create_namespaced_deployment_rollback_rollback_with_http_info(name, namespace, body, 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 ExtensionsV1beta1DeploymentRollback body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DeploymentRollback + :return: ExtensionsV1beta1DeploymentRollback If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'name', 'namespace', 'pretty'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -337,15 +337,15 @@ def create_namespaced_deployment_rollback_rollback_with_http_info(self, body, na ) 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_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_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_namespaced_deployment_rollback_rollback`") + # 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_namespaced_deployment_rollback_rollback`") collection_formats = {} @@ -387,123 +387,7 @@ def create_namespaced_deployment_rollback_rollback_with_http_info(self, body, na 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_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_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_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) - else: - (data) = self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) - return data - - def create_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_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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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']) - - # HTTP header `Content-Type` - 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', + response_type='ExtensionsV1beta1DeploymentRollback', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -627,50 +511,50 @@ def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_job(self, namespace, body, **kwargs): + def create_namespaced_network_policy(self, namespace, body, **kwargs): """ - create a Job + 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_namespaced_job(namespace, body, callback=callback_function) + >>> thread = api.create_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 V1beta1Job body: (required) + :param V1beta1NetworkPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Job + :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_namespaced_job_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_namespaced_job_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) return data - def create_namespaced_job_with_http_info(self, namespace, body, **kwargs): + def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwargs): """ - create a Job + 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_namespaced_job_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_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 V1beta1Job body: (required) + :param V1beta1NetworkPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Job + :return: V1beta1NetworkPolicy If the method is called asynchronously, returns the request thread. """ @@ -686,21 +570,21 @@ def create_namespaced_job_with_http_info(self, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_job" % key + " to method create_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_namespaced_job`") + raise ValueError("Missing the required parameter `namespace` when calling `create_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_namespaced_job`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_network_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -735,7 +619,7 @@ def create_namespaced_job_with_http_info(self, namespace, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Job', + response_type='V1beta1NetworkPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -743,50 +627,50 @@ def create_namespaced_job_with_http_info(self, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_network_policy(self, namespace, body, **kwargs): + def create_namespaced_replica_set(self, namespace, body, **kwargs): """ - create a NetworkPolicy + 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_namespaced_network_policy(namespace, body, callback=callback_function) + >>> thread = api.create_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 V1beta1NetworkPolicy body: (required) + :param V1beta1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1NetworkPolicy + :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_namespaced_network_policy_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) else: - (data) = self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) return data - def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwargs): + def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs): """ - create a NetworkPolicy + 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_namespaced_network_policy_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_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 V1beta1NetworkPolicy body: (required) + :param V1beta1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1NetworkPolicy + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -802,21 +686,21 @@ def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_network_policy" % key + " to method create_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_namespaced_network_policy`") + raise ValueError("Missing the required parameter `namespace` when calling `create_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_namespaced_network_policy`") + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -851,7 +735,7 @@ def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwa body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1NetworkPolicy', + response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -859,55 +743,53 @@ def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_namespaced_replica_set(self, namespace, body, **kwargs): + def create_pod_security_policy(self, body, **kwargs): """ - create a ReplicaSet + create a PodSecurityPolicy This method makes a synchronous HTTP request by default. To make 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_namespaced_replica_set(namespace, body, callback=callback_function) + >>> thread = api.create_pod_security_policy(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 V1beta1PodSecurityPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ReplicaSet + :return: V1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) + return self.create_pod_security_policy_with_http_info(body, **kwargs) else: - (data) = self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) + (data) = self.create_pod_security_policy_with_http_info(body, **kwargs) return data - def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs): + def create_pod_security_policy_with_http_info(self, body, **kwargs): """ - create a ReplicaSet + create a PodSecurityPolicy This method makes a synchronous HTTP request by default. To make 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_namespaced_replica_set_with_http_info(namespace, body, callback=callback_function) + >>> thread = api.create_pod_security_policy_with_http_info(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 V1beta1PodSecurityPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ReplicaSet + :return: V1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty'] + all_params = ['body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -918,24 +800,19 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_namespaced_replica_set" % key + " to method create_pod_security_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_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_namespaced_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `create_pod_security_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/podsecuritypolicies'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -967,7 +844,7 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ReplicaSet', + response_type='V1beta1PodSecurityPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1101,10 +978,10 @@ def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -1132,10 +1009,10 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -1205,7 +1082,7 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1230,10 +1107,10 @@ def delete_collection_namespaced_deployment(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -1261,10 +1138,10 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -1334,7 +1211,7 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1342,16 +1219,16 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): + def delete_collection_namespaced_ingress(self, namespace, **kwargs): """ - delete collection of HorizontalPodAutoscaler + 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_collection_namespaced_horizontal_pod_autoscaler(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_ingress(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1359,30 +1236,30 @@ def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kw :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) else: - (data) = self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) return data - def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): + def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwargs): """ - delete collection of HorizontalPodAutoscaler + 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_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_ingress_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1390,10 +1267,10 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -1409,18 +1286,18 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_horizontal_pod_autoscaler" % key + " to method delete_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_collection_namespaced_horizontal_pod_autoscaler`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_ingress`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -1463,7 +1340,7 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1471,16 +1348,16 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_ingress(self, namespace, **kwargs): + def delete_collection_namespaced_network_policy(self, namespace, **kwargs): """ - delete collection of Ingress + 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_collection_namespaced_ingress(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_network_policy(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1488,30 +1365,30 @@ def delete_collection_namespaced_ingress(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) else: - (data) = self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) return data - def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwargs): + def delete_collection_namespaced_network_policy_with_http_info(self, namespace, **kwargs): """ - delete collection of Ingress + 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_collection_namespaced_ingress_with_http_info(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_network_policy_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1519,10 +1396,10 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -1538,18 +1415,18 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_ingress" % key + " to method delete_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_collection_namespaced_ingress`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_network_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -1592,7 +1469,7 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1600,16 +1477,16 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_job(self, namespace, **kwargs): + def delete_collection_namespaced_replica_set(self, namespace, **kwargs): """ - delete collection of Job + 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_collection_namespaced_job(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_replica_set(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1617,30 +1494,30 @@ def delete_collection_namespaced_job(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) else: - (data) = self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) return data - def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): + def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **kwargs): """ - delete collection of Job + 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_collection_namespaced_job_with_http_info(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_replica_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -1648,10 +1525,10 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -1667,18 +1544,18 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_job" % key + " to method delete_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_collection_namespaced_job`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -1721,7 +1598,7 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1729,63 +1606,61 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_network_policy(self, namespace, **kwargs): + def delete_collection_pod_security_policy(self, **kwargs): """ - delete collection of NetworkPolicy + delete collection of PodSecurityPolicy This method makes a synchronous HTTP request by default. To make 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_collection_namespaced_network_policy(namespace, callback=callback_function) + >>> thread = api.delete_collection_pod_security_policy(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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) + return self.delete_collection_pod_security_policy_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_pod_security_policy_with_http_info(**kwargs) return data - def delete_collection_namespaced_network_policy_with_http_info(self, namespace, **kwargs): + def delete_collection_pod_security_policy_with_http_info(self, **kwargs): """ - delete collection of NetworkPolicy + delete collection of PodSecurityPolicy This method makes a synchronous HTTP request by default. To make 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_collection_namespaced_network_policy_with_http_info(namespace, callback=callback_function) + >>> thread = api.delete_collection_pod_security_policy_with_http_info(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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status 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 = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1796,21 +1671,16 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_collection_namespaced_network_policy" % key + " to method delete_collection_pod_security_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_collection_namespaced_network_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/podsecuritypolicies'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -1850,7 +1720,7 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1858,163 +1728,34 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_replica_set(self, namespace, **kwargs): + def delete_collection_third_party_resource(self, **kwargs): """ - delete collection of ReplicaSet + 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_collection_namespaced_replica_set(namespace, callback=callback_function) + >>> thread = api.delete_collection_third_party_resource(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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) + return self.delete_collection_third_party_resource_with_http_info(**kwargs) else: - (data) = self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) - return data - - def delete_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_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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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']) - - # HTTP header `Content-Type` - 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_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_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_collection_third_party_resource_with_http_info(**kwargs) - else: - (data) = self.delete_collection_third_party_resource_with_http_info(**kwargs) + (data) = self.delete_collection_third_party_resource_with_http_info(**kwargs) return data def delete_collection_third_party_resource_with_http_info(self, **kwargs): @@ -2033,10 +1774,10 @@ def delete_collection_third_party_resource_with_http_info(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -2101,7 +1842,7 @@ def delete_collection_third_party_resource_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2127,8 +1868,9 @@ def delete_namespaced_daemon_set(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -2157,13 +1899,14 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, body, **k :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2205,6 +1948,8 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, body, **k query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -2232,7 +1977,7 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, body, **k body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2258,8 +2003,9 @@ def delete_namespaced_deployment(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -2288,13 +2034,14 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, body, **k :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2336,6 +2083,8 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, body, **k query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -2363,7 +2112,7 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, body, **k body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2371,61 +2120,63 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, body, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): + def delete_namespaced_ingress(self, name, namespace, body, **kwargs): """ - delete a HorizontalPodAutoscaler + 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_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_ingress(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 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. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): """ - delete a HorizontalPodAutoscaler + 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_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_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 HorizontalPodAutoscaler (required) + :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. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2436,24 +2187,24 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_horizontal_pod_autoscaler" % key + " to method delete_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_namespaced_horizontal_pod_autoscaler`") + raise ValueError("Missing the required parameter `name` when calling `delete_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_namespaced_horizontal_pod_autoscaler`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_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_namespaced_horizontal_pod_autoscaler`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_ingress`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -2467,6 +2218,8 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -2494,7 +2247,7 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2502,61 +2255,63 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_ingress(self, name, namespace, body, **kwargs): + def delete_namespaced_network_policy(self, name, namespace, body, **kwargs): """ - delete an Ingress + 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_namespaced_ingress(name, namespace, body, callback=callback_function) + >>> thread = api.delete_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 Ingress (required) + :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. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): """ - delete an Ingress + 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_namespaced_ingress_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_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 Ingress (required) + :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. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2567,24 +2322,24 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, body, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_ingress" % key + " to method delete_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_namespaced_ingress`") + raise ValueError("Missing the required parameter `name` when calling `delete_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_namespaced_ingress`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_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_namespaced_ingress`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_network_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -2598,6 +2353,8 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, body, **kwar query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -2625,7 +2382,7 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, body, **kwar body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2633,61 +2390,63 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, body, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_job(self, name, namespace, body, **kwargs): + def delete_namespaced_replica_set(self, name, namespace, body, **kwargs): """ - delete a Job + 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_namespaced_job(name, namespace, body, callback=callback_function) + >>> thread = api.delete_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 Job (required) + :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. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_job_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): """ - delete a Job + 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_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_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 Job (required) + :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. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2698,24 +2457,24 @@ def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_job" % key + " to method delete_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_namespaced_job`") + raise ValueError("Missing the required parameter `name` when calling `delete_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_namespaced_job`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_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_namespaced_job`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_replica_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -2729,6 +2488,8 @@ def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -2756,7 +2517,7 @@ def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2764,61 +2525,61 @@ def delete_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_network_policy(self, name, namespace, body, **kwargs): + def delete_pod_security_policy(self, name, body, **kwargs): """ - delete a NetworkPolicy + delete a PodSecurityPolicy This method makes a synchronous HTTP request by default. To make 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_namespaced_network_policy(name, namespace, body, callback=callback_function) + >>> thread = api.delete_pod_security_policy(name, 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 str name: name of the PodSecurityPolicy (required) :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + return self.delete_pod_security_policy_with_http_info(name, body, **kwargs) else: - (data) = self.delete_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_pod_security_policy_with_http_info(name, body, **kwargs) return data - def delete_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): + def delete_pod_security_policy_with_http_info(self, name, body, **kwargs): """ - delete a NetworkPolicy + delete a PodSecurityPolicy This method makes a synchronous HTTP request by default. To make 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_namespaced_network_policy_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_pod_security_policy_with_http_info(name, 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 str name: name of the PodSecurityPolicy (required) :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2829,29 +2590,24 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_network_policy" % key + " to method delete_pod_security_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_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_namespaced_network_policy`") + raise ValueError("Missing the required parameter `name` when calling `delete_pod_security_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_namespaced_network_policy`") + raise ValueError("Missing the required parameter `body` when calling `delete_pod_security_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/podsecuritypolicies/{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: @@ -2860,6 +2616,8 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, body, query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -2887,7 +2645,7 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, body, body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2895,61 +2653,61 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_replica_set(self, name, namespace, body, **kwargs): + def delete_third_party_resource(self, name, body, **kwargs): """ - delete a ReplicaSet + 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_namespaced_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.delete_third_party_resource(name, 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 str name: name of the ThirdPartyResource (required) :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.delete_third_party_resource_with_http_info(name, body, **kwargs) else: - (data) = self.delete_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_third_party_resource_with_http_info(name, body, **kwargs) return data - def delete_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def delete_third_party_resource_with_http_info(self, name, body, **kwargs): """ - delete a ReplicaSet + 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_namespaced_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_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 ReplicaSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) + :param str name: name of the ThirdPartyResource (required) :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2960,29 +2718,24 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, body, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_replica_set" % key + " to method delete_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_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_namespaced_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `delete_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_namespaced_replica_set`") + raise ValueError("Missing the required parameter `body` when calling `delete_third_party_resource`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/thirdpartyresources/{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: @@ -2991,6 +2744,8 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, body, ** query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -3018,7 +2773,7 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, body, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3026,155 +2781,31 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, body, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_third_party_resource(self, name, body, **kwargs): + def get_api_resources(self, **kwargs): """ - delete a ThirdPartyResource + 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.delete_third_party_resource(name, body, callback=callback_function) + >>> thread = api.get_api_resources(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. - :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_third_party_resource_with_http_info(name, body, **kwargs) + return self.get_api_resources_with_http_info(**kwargs) else: - (data) = self.delete_third_party_resource_with_http_info(name, body, **kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) return data - def delete_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_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. - :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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 'grace_period_seconds' in params: - query_params['gracePeriodSeconds'] = params['grace_period_seconds'] - if 'orphan_dependents' in params: - query_params['orphanDependents'] = params['orphan_dependents'] - - 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']) - - # HTTP header `Content-Type` - 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_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_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_api_resources_with_http_info(**kwargs) - else: - (data) = self.get_api_resources_with_http_info(**kwargs) - return data - - def get_api_resources_with_http_info(self, **kwargs): + def get_api_resources_with_http_info(self, **kwargs): """ get available resources This method makes a synchronous HTTP request by default. To make an @@ -3187,7 +2818,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -3239,7 +2870,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIResourceList', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3263,7 +2894,7 @@ def list_daemon_set_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -3293,7 +2924,7 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -3385,10 +3016,10 @@ def list_deployment_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: ExtensionsV1beta1DeploymentList If the method is called asynchronously, returns the request thread. """ @@ -3415,10 +3046,10 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: ExtensionsV1beta1DeploymentList If the method is called asynchronously, returns the request thread. """ @@ -3483,7 +3114,7 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1DeploymentList', + response_type='ExtensionsV1beta1DeploymentList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3491,56 +3122,56 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): + def list_ingress_for_all_namespaces(self, **kwargs): """ - list or watch objects of kind HorizontalPodAutoscaler + 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_horizontal_pod_autoscaler_for_all_namespaces(callback=callback_function) + >>> thread = api.list_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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :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_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + return self.list_ingress_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_ingress_for_all_namespaces_with_http_info(**kwargs) return data - def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwargs): + def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): """ - list or watch objects of kind HorizontalPodAutoscaler + 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_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1beta1IngressList If the method is called asynchronously, returns the request thread. """ @@ -3556,7 +3187,7 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_horizontal_pod_autoscaler_for_all_namespaces" % key + " to method list_ingress_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -3564,7 +3195,7 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa collection_formats = {} - resource_path = '/apis/extensions/v1beta1/horizontalpodautoscalers'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/ingresses'.replace('{format}', 'json') path_params = {} query_params = {} @@ -3605,7 +3236,7 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1HorizontalPodAutoscalerList', + response_type='V1beta1IngressList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3613,61 +3244,63 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_ingress_for_all_namespaces(self, **kwargs): + def list_namespaced_daemon_set(self, namespace, **kwargs): """ - list or watch objects of kind Ingress + 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_ingress_for_all_namespaces(callback=callback_function) + >>> thread = api.list_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 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :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_ingress_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) else: - (data) = self.list_ingress_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) return data - def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind Ingress + 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_ingress_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_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 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :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 = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3678,24 +3311,29 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_ingress_for_all_namespaces" % key + " to method list_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_namespaced_daemon_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/ingresses'.replace('{format}', 'json') + 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 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -3727,7 +3365,7 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1IngressList', + response_type='V1beta1DaemonSetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3735,61 +3373,63 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_job_for_all_namespaces(self, **kwargs): + def list_namespaced_deployment(self, namespace, **kwargs): """ - list or watch objects of kind Job + 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_job_for_all_namespaces(callback=callback_function) + >>> thread = api.list_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 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: ExtensionsV1beta1DeploymentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_job_for_all_namespaces_with_http_info(**kwargs) + return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) else: - (data) = self.list_job_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) return data - def list_job_for_all_namespaces_with_http_info(self, **kwargs): + def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind Job + 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_job_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.list_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 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: ExtensionsV1beta1DeploymentList If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3800,24 +3440,29 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_job_for_all_namespaces" % key + " to method list_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_namespaced_deployment`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/jobs'.replace('{format}', 'json') + 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 'pretty' in params: - query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -3849,7 +3494,7 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1JobList', + response_type='ExtensionsV1beta1DeploymentList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3857,16 +3502,16 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_daemon_set(self, namespace, **kwargs): + def list_namespaced_ingress(self, namespace, **kwargs): """ - list or watch objects of kind DaemonSet + 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_namespaced_daemon_set(namespace, callback=callback_function) + >>> thread = api.list_namespaced_ingress(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3874,30 +3519,30 @@ def list_namespaced_daemon_set(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :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_namespaced_daemon_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_ingress_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_ingress_with_http_info(namespace, **kwargs) return data - def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): + def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind DaemonSet + 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_namespaced_daemon_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_ingress_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -3905,10 +3550,10 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1beta1IngressList If the method is called asynchronously, returns the request thread. """ @@ -3924,18 +3569,18 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_daemon_set" % key + " to method list_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_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_ingress`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -3978,7 +3623,7 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1DaemonSetList', + response_type='V1beta1IngressList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3986,16 +3631,16 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_deployment(self, namespace, **kwargs): + def list_namespaced_network_policy(self, namespace, **kwargs): """ - list or watch objects of kind Deployment + 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_namespaced_deployment(namespace, callback=callback_function) + >>> thread = api.list_namespaced_network_policy(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4003,30 +3648,30 @@ def list_namespaced_deployment(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :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_namespaced_deployment_with_http_info(namespace, **kwargs) + return self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) return data - def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): + def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind Deployment + 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_namespaced_deployment_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_network_policy_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4034,10 +3679,10 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1beta1NetworkPolicyList If the method is called asynchronously, returns the request thread. """ @@ -4053,18 +3698,18 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_deployment" % key + " to method list_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_namespaced_deployment`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_network_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -4107,7 +3752,7 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1DeploymentList', + response_type='V1beta1NetworkPolicyList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4115,16 +3760,16 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): + def list_namespaced_replica_set(self, namespace, **kwargs): """ - list or watch objects of kind HorizontalPodAutoscaler + 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_namespaced_horizontal_pod_autoscaler(namespace, callback=callback_function) + >>> thread = api.list_namespaced_replica_set(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4132,30 +3777,30 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :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_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) else: - (data) = self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) return data - def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): + def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): """ - list or watch objects of kind HorizontalPodAutoscaler + 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_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_namespaced_replica_set_with_http_info(namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4163,10 +3808,10 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1beta1ReplicaSetList If the method is called asynchronously, returns the request thread. """ @@ -4182,18 +3827,18 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_horizontal_pod_autoscaler" % key + " to method list_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_namespaced_horizontal_pod_autoscaler`") + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') path_params = {} if 'namespace' in params: path_params['namespace'] = params['namespace'] @@ -4236,7 +3881,7 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1HorizontalPodAutoscalerList', + response_type='V1beta1ReplicaSetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4244,63 +3889,61 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_ingress(self, namespace, **kwargs): + def list_network_policy_for_all_namespaces(self, **kwargs): """ - list or watch objects of kind Ingress + 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_namespaced_ingress(namespace, callback=callback_function) + >>> thread = api.list_network_policy_for_all_namespaces(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 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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :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_namespaced_ingress_with_http_info(namespace, **kwargs) + return self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_namespaced_ingress_with_http_info(namespace, **kwargs) + (data) = self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) return data - def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): + def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): """ - list or watch objects of kind Ingress + 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_namespaced_ingress_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_network_policy_for_all_namespaces_with_http_info(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 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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :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 = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4311,29 +3954,24 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_ingress" % key + " to method list_network_policy_for_all_namespaces" % 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_namespaced_ingress`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/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 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -4365,7 +4003,7 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1IngressList', + response_type='V1beta1NetworkPolicyList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4373,63 +4011,61 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_job(self, namespace, **kwargs): + def list_pod_security_policy(self, **kwargs): """ - list or watch objects of kind Job + list or watch objects of kind PodSecurityPolicy This method makes a synchronous HTTP request by default. To make 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_namespaced_job(namespace, callback=callback_function) + >>> thread = api.list_pod_security_policy(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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1beta1PodSecurityPolicyList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_namespaced_job_with_http_info(namespace, **kwargs) + return self.list_pod_security_policy_with_http_info(**kwargs) else: - (data) = self.list_namespaced_job_with_http_info(namespace, **kwargs) + (data) = self.list_pod_security_policy_with_http_info(**kwargs) return data - def list_namespaced_job_with_http_info(self, namespace, **kwargs): + def list_pod_security_policy_with_http_info(self, **kwargs): """ - list or watch objects of kind Job + list or watch objects of kind PodSecurityPolicy This method makes a synchronous HTTP request by default. To make 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_namespaced_job_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_pod_security_policy_with_http_info(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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1beta1PodSecurityPolicyList 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 = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4440,21 +4076,16 @@ def list_namespaced_job_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_job" % key + " to method list_pod_security_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_namespaced_job`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/podsecuritypolicies'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -4494,7 +4125,7 @@ def list_namespaced_job_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1JobList', + response_type='V1beta1PodSecurityPolicyList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4502,63 +4133,61 @@ def list_namespaced_job_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_network_policy(self, namespace, **kwargs): + def list_replica_set_for_all_namespaces(self, **kwargs): """ - list or watch objects of kind NetworkPolicy + 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_namespaced_network_policy(namespace, callback=callback_function) + >>> thread = api.list_replica_set_for_all_namespaces(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 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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :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_namespaced_network_policy_with_http_info(namespace, **kwargs) + return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) + (data) = self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) return data - def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): + def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): """ - list or watch objects of kind NetworkPolicy + 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_namespaced_network_policy_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_replica_set_for_all_namespaces_with_http_info(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 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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :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 = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4569,29 +4198,24 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_network_policy" % key + " to method list_replica_set_for_all_namespaces" % 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_namespaced_network_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/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 'pretty' in params: + query_params['pretty'] = params['pretty'] if 'resource_version' in params: query_params['resourceVersion'] = params['resource_version'] if 'timeout_seconds' in params: @@ -4623,7 +4247,7 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1NetworkPolicyList', + response_type='V1beta1ReplicaSetList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4631,63 +4255,61 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_replica_set(self, namespace, **kwargs): + def list_third_party_resource(self, **kwargs): """ - list or watch objects of kind ReplicaSet + 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_namespaced_replica_set(namespace, callback=callback_function) + >>> thread = api.list_third_party_resource(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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :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_namespaced_replica_set_with_http_info(namespace, **kwargs) + return self.list_third_party_resource_with_http_info(**kwargs) else: - (data) = self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) + (data) = self.list_third_party_resource_with_http_info(**kwargs) return data - def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): + def list_third_party_resource_with_http_info(self, **kwargs): """ - list or watch objects of kind ReplicaSet + 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_namespaced_replica_set_with_http_info(namespace, callback=callback_function) + >>> thread = api.list_third_party_resource_with_http_info(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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1beta1ThirdPartyResourceList 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 = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4698,21 +4320,16 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_namespaced_replica_set" % key + " to method list_third_party_resource" % 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_namespaced_replica_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/thirdpartyresources'.replace('{format}', 'json') path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = {} if 'pretty' in params: @@ -4752,7 +4369,7 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ReplicaSetList', + response_type='V1beta1ThirdPartyResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4760,61 +4377,57 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_network_policy_for_all_namespaces(self, **kwargs): + def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): """ - list or watch objects of kind NetworkPolicy + 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.list_network_policy_for_all_namespaces(callback=callback_function) + >>> thread = api.patch_namespaced_daemon_set(name, namespace, body, 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 name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :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 + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) + return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) + (data) = self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) return data - def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): + def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind NetworkPolicy + 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.list_network_policy_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.patch_namespaced_daemon_set_with_http_info(name, namespace, body, 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 name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :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 + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4825,30 +4438,33 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_network_policy_for_all_namespaces" % key + " to method patch_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_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_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_namespaced_daemon_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/networkpolicies'.replace('{format}', 'json') + 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 '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 = {} @@ -4856,25 +4472,27 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): 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', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + 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, 'GET', + 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='V1beta1NetworkPolicyList', + response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4882,61 +4500,57 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_replica_set_for_all_namespaces(self, **kwargs): + def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): """ - list or watch objects of kind ReplicaSet + 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.list_replica_set_for_all_namespaces(callback=callback_function) + >>> thread = api.patch_namespaced_daemon_set_status(name, namespace, body, 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 name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :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 + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) + return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) return data - def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): + def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind ReplicaSet + 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.list_replica_set_for_all_namespaces_with_http_info(callback=callback_function) + >>> thread = api.patch_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 field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param str name: name of the DaemonSet (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) :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 + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4947,30 +4561,33 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_replica_set_for_all_namespaces" % key + " to method patch_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_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_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_namespaced_daemon_set_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/replicasets'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.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 '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 '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 = {} @@ -4978,25 +4595,27 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): 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', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + 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, 'GET', + 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='V1beta1ReplicaSetList', + response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5004,61 +4623,57 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_third_party_resource(self, **kwargs): + def patch_namespaced_deployment(self, name, namespace, body, **kwargs): """ - list or watch objects of kind ThirdPartyResource + 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.list_third_party_resource(callback=callback_function) + >>> thread = api.patch_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 V1Patch body: (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: V1beta1ThirdPartyResourceList + :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.list_third_party_resource_with_http_info(**kwargs) + return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.list_third_party_resource_with_http_info(**kwargs) + (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) return data - def list_third_party_resource_with_http_info(self, **kwargs): + def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): """ - list or watch objects of kind ThirdPartyResource + 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.list_third_party_resource_with_http_info(callback=callback_function) + >>> thread = api.patch_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 V1Patch body: (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: V1beta1ThirdPartyResourceList + :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['name', 'namespace', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5069,30 +4684,33 @@ def list_third_party_resource_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_third_party_resource" % key + " to method patch_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_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_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_namespaced_deployment`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/thirdpartyresources'.replace('{format}', 'json') + 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 '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 = {} @@ -5100,25 +4718,27 @@ def list_third_party_resource_with_http_info(self, **kwargs): 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', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) + select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + 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, 'GET', + 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='V1beta1ThirdPartyResourceList', + response_type='ExtensionsV1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5126,52 +4746,52 @@ def list_third_party_resource_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): + def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): """ - partially update the specified DaemonSet + 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_namespaced_daemon_set(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 DaemonSet (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified DaemonSet + 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_namespaced_daemon_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 DaemonSet (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ @@ -5187,24 +4807,24 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_daemon_set" % key + " to method patch_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_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `name` when calling `patch_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_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_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_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -5241,7 +4861,7 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1DaemonSet', + response_type='ExtensionsV1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5249,52 +4869,52 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): + def patch_namespaced_deployments_scale(self, name, namespace, body, **kwargs): """ - partially update status of the specified DaemonSet + 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_namespaced_daemon_set_status(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 DaemonSet (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_deployments_scale_with_http_info(self, name, namespace, body, **kwargs): """ - partially update status of the specified DaemonSet + 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_namespaced_daemon_set_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 DaemonSet (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -5310,24 +4930,24 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_daemon_set_status" % key + " to method patch_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_namespaced_daemon_set_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_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_namespaced_daemon_set_status`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_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_namespaced_daemon_set_status`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployments_scale`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -5364,7 +4984,7 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1DaemonSet', + response_type='ExtensionsV1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5372,52 +4992,52 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_deployment(self, name, namespace, body, **kwargs): + def patch_namespaced_ingress(self, name, namespace, body, **kwargs): """ - partially update the specified Deployment + 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_namespaced_deployment(name, namespace, body, callback=callback_function) + >>> thread = api.patch_namespaced_ingress(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 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Deployment + :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_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified Deployment + 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_namespaced_deployment_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 Deployment (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Deployment + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ @@ -5433,24 +5053,24 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_deployment" % key + " to method patch_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_namespaced_deployment`") + raise ValueError("Missing the required parameter `name` when calling `patch_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_namespaced_deployment`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_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_namespaced_deployment`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -5487,7 +5107,7 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Deployment', + response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5495,52 +5115,52 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): + def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): """ - partially update status of the specified Deployment + 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_namespaced_deployment_status(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 Deployment (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Deployment + :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_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): """ - partially update status of the specified Deployment + 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_namespaced_deployment_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 Deployment (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Deployment + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ @@ -5556,24 +5176,24 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_deployment_status" % key + " to method patch_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_namespaced_deployment_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_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_namespaced_deployment_status`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_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_namespaced_deployment_status`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -5610,7 +5230,7 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Deployment', + response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5618,52 +5238,52 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_deployments_scale(self, name, namespace, body, **kwargs): + def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): """ - partially update scale of the specified Scale + 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_namespaced_deployments_scale(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 Scale (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Scale + :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_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_deployments_scale_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): """ - partially update scale of the specified Scale + 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_namespaced_deployments_scale_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 Scale (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Scale + :return: V1beta1NetworkPolicy If the method is called asynchronously, returns the request thread. """ @@ -5679,24 +5299,24 @@ def patch_namespaced_deployments_scale_with_http_info(self, name, namespace, bod if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_deployments_scale" % key + " to method patch_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_namespaced_deployments_scale`") + raise ValueError("Missing the required parameter `name` when calling `patch_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_namespaced_deployments_scale`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_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_namespaced_deployments_scale`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_network_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -5733,7 +5353,7 @@ def patch_namespaced_deployments_scale_with_http_info(self, name, namespace, bod body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Scale', + response_type='V1beta1NetworkPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5741,52 +5361,52 @@ def patch_namespaced_deployments_scale_with_http_info(self, name, namespace, bod _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): + def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): """ - partially update the specified HorizontalPodAutoscaler + 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_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 HorizontalPodAutoscaler (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1HorizontalPodAutoscaler + :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_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified HorizontalPodAutoscaler + 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_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 HorizontalPodAutoscaler (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1HorizontalPodAutoscaler + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -5802,24 +5422,24 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_horizontal_pod_autoscaler" % key + " to method patch_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_namespaced_horizontal_pod_autoscaler`") + raise ValueError("Missing the required parameter `name` when calling `patch_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_namespaced_horizontal_pod_autoscaler`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_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_namespaced_horizontal_pod_autoscaler`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -5856,7 +5476,7 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1HorizontalPodAutoscaler', + response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5864,52 +5484,52 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): + def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): """ - partially update status of the specified HorizontalPodAutoscaler + 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_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 HorizontalPodAutoscaler (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1HorizontalPodAutoscaler + :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_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): """ - partially update status of the specified HorizontalPodAutoscaler + 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_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 HorizontalPodAutoscaler (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1HorizontalPodAutoscaler + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ @@ -5925,24 +5545,24 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_horizontal_pod_autoscaler_status" % key + " to method patch_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_namespaced_horizontal_pod_autoscaler_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_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_namespaced_horizontal_pod_autoscaler_status`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_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_namespaced_horizontal_pod_autoscaler_status`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -5979,7 +5599,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1HorizontalPodAutoscaler', + response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5987,52 +5607,52 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_ingress(self, name, namespace, body, **kwargs): + def patch_namespaced_replicasets_scale(self, name, namespace, body, **kwargs): """ - partially update the specified Ingress + 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_namespaced_ingress(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 Ingress (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replicasets_scale_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replicasets_scale_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_replicasets_scale_with_http_info(self, name, namespace, body, **kwargs): """ - partially update the specified Ingress + 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_namespaced_ingress_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 Ingress (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -6048,24 +5668,24 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_ingress" % key + " to method patch_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_namespaced_ingress`") + raise ValueError("Missing the required parameter `name` when calling `patch_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_namespaced_ingress`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_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_namespaced_ingress`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replicasets_scale`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -6102,7 +5722,7 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Ingress', + response_type='ExtensionsV1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6110,52 +5730,52 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): + def patch_namespaced_replicationcontrollers_scale(self, name, namespace, body, **kwargs): """ - partially update status of the specified Ingress + 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_namespaced_ingress_status(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 Ingress (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, **kwargs) return data - def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): + def patch_namespaced_replicationcontrollers_scale_with_http_info(self, name, namespace, body, **kwargs): """ - partially update status of the specified Ingress + 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_namespaced_ingress_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 Ingress (required) + :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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -6171,24 +5791,24 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_ingress_status" % key + " to method patch_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_namespaced_ingress_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_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_namespaced_ingress_status`") + raise ValueError("Missing the required parameter `namespace` when calling `patch_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_namespaced_ingress_status`") + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replicationcontrollers_scale`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -6225,7 +5845,7 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Ingress', + response_type='ExtensionsV1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6233,57 +5853,55 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_job(self, name, namespace, body, **kwargs): + def patch_pod_security_policy(self, name, body, **kwargs): """ - partially update the specified Job + partially update the specified PodSecurityPolicy This method makes a synchronous HTTP request by default. To make 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_namespaced_job(name, namespace, body, callback=callback_function) + >>> thread = api.patch_pod_security_policy(name, 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 name: name of the PodSecurityPolicy (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Job + :return: V1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) + return self.patch_pod_security_policy_with_http_info(name, body, **kwargs) else: - (data) = self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_pod_security_policy_with_http_info(name, body, **kwargs) return data - def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): + def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): """ - partially update the specified Job + partially update the specified PodSecurityPolicy This method makes a synchronous HTTP request by default. To make 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_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_pod_security_policy_with_http_info(name, 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 name: name of the PodSecurityPolicy (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Job + :return: V1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6294,29 +5912,24 @@ def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_job" % key + " to method patch_pod_security_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_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_namespaced_job`") + raise ValueError("Missing the required parameter `name` when calling `patch_pod_security_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_namespaced_job`") + raise ValueError("Missing the required parameter `body` when calling `patch_pod_security_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/podsecuritypolicies/{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: @@ -6348,7 +5961,7 @@ def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Job', + response_type='V1beta1PodSecurityPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6356,57 +5969,55 @@ def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_job_status(self, name, namespace, body, **kwargs): + def patch_third_party_resource(self, name, body, **kwargs): """ - partially update status of the specified Job + 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_namespaced_job_status(name, namespace, body, callback=callback_function) + >>> thread = api.patch_third_party_resource(name, 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 name: name of the ThirdPartyResource (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Job + :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_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_third_party_resource_with_http_info(name, body, **kwargs) else: - (data) = self.patch_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_third_party_resource_with_http_info(name, body, **kwargs) return data - def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): + def patch_third_party_resource_with_http_info(self, name, body, **kwargs): """ - partially update status of the specified Job + 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_namespaced_job_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.patch_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 Job (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UnversionedPatch body: (required) + :param str name: name of the ThirdPartyResource (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Job + :return: V1beta1ThirdPartyResource If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'body', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6417,29 +6028,24 @@ def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_job_status" % key + " to method patch_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_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_namespaced_job_status`") + raise ValueError("Missing the required parameter `name` when calling `patch_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_namespaced_job_status`") + raise ValueError("Missing the required parameter `body` when calling `patch_third_party_resource`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/thirdpartyresources/{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: @@ -6471,7 +6077,7 @@ def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Job', + response_type='V1beta1ThirdPartyResource', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6479,57 +6085,59 @@ def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): + def read_namespaced_daemon_set(self, name, namespace, **kwargs): """ - partially update the specified NetworkPolicy + 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.patch_namespaced_network_policy(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_daemon_set(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 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: V1beta1NetworkPolicy + :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.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): """ - partially update the specified NetworkPolicy + 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.patch_namespaced_network_policy_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_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 NetworkPolicy (required) + :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: V1beta1NetworkPolicy + :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', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6540,24 +6148,21 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_network_policy" % key + " to method read_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_namespaced_network_policy`") + raise ValueError("Missing the required parameter `name` when calling `read_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_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_namespaced_network_policy`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -6567,6 +6172,10 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, 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 = {} @@ -6574,27 +6183,25 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, 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']) # 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']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + 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', + response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6602,57 +6209,55 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): + def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): """ - partially update the specified ReplicaSet + 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.patch_namespaced_replica_set(name, namespace, body, callback=callback_function) + >>> thread = api.read_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 ReplicaSet (required) + :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: V1beta1ReplicaSet + :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_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kwargs): """ - partially update the specified ReplicaSet + 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.patch_namespaced_replica_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_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 ReplicaSet (required) + :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: V1beta1ReplicaSet + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6663,24 +6268,21 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method patch_namespaced_replica_set" % key + " to method read_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_namespaced_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `read_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_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_namespaced_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -6697,27 +6299,25 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k 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']) # 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']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PATCH', + 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', + response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6725,1615 +6325,54 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): + def read_namespaced_deployment(self, name, namespace, **kwargs): """ - partially update status of the specified ReplicaSet + 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.patch_namespaced_replica_set_status(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_deployment(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 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: V1beta1ReplicaSet + :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: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) else: - (data) = self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) return data - def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): """ - partially update status of the specified ReplicaSet + 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.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_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 ReplicaSet (required) + :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: 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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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_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']) - - # 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_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_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_namespaced_replicasets_scale_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_replicasets_scale_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_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_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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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_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']) - - # 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_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_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_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, **kwargs) - else: - (data) = self.patch_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, body, **kwargs) - return data - - def patch_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_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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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_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']) - - # 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_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_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_third_party_resource_with_http_info(name, body, **kwargs) - else: - (data) = self.patch_third_party_resource_with_http_info(name, body, **kwargs) - return data - - def patch_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_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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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']) - - # 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_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_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_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) - return data - - def read_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_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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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']) - - # HTTP header `Content-Type` - 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_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_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_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) - return data - - def read_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_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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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']) - - # HTTP header `Content-Type` - 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_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_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_namespaced_deployment_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) - return data - - def read_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_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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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']) - - # HTTP header `Content-Type` - 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_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_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_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) - return data - - def read_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_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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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']) - - # HTTP header `Content-Type` - 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_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_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_namespaced_deployments_scale_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_deployments_scale_with_http_info(name, namespace, **kwargs) - return data - - def read_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_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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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']) - - # HTTP header `Content-Type` - 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_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_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_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) - return data - - def read_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_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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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']) - - # HTTP header `Content-Type` - 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_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_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_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) - return data - - def read_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_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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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']) - - # HTTP header `Content-Type` - 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_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_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_namespaced_ingress_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) - return data - - def read_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_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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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']) - - # HTTP header `Content-Type` - 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_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_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_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) - return data - - def read_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_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') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = 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_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_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_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']) - - # HTTP header `Content-Type` - 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'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_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_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_namespaced_job_with_http_info(name, namespace, **kwargs) - else: - (data) = self.read_namespaced_job_with_http_info(name, namespace, **kwargs) - return data - - def read_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_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 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 + :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ @@ -8349,21 +6388,21 @@ def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_job" % key + " to method read_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_namespaced_job`") + raise ValueError("Missing the required parameter `name` when calling `read_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_namespaced_job`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -8402,7 +6441,7 @@ def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Job', + response_type='ExtensionsV1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8410,50 +6449,50 @@ def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_job_status(self, name, namespace, **kwargs): + def read_namespaced_deployment_status(self, name, namespace, **kwargs): """ - read status of the specified Job + 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_namespaced_job_status(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_deployment_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 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: V1beta1Job + :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): """ - read status of the specified Job + 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_namespaced_job_status_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_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 Job (required) + :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: V1beta1Job + :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ @@ -8469,21 +6508,21 @@ def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_job_status" % key + " to method read_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_namespaced_job_status`") + raise ValueError("Missing the required parameter `name` when calling `read_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_namespaced_job_status`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -8518,7 +6557,7 @@ def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Job', + response_type='ExtensionsV1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8526,59 +6565,55 @@ def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_network_policy(self, name, namespace, **kwargs): + def read_namespaced_deployments_scale(self, name, namespace, **kwargs): """ - read the specified NetworkPolicy + 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_namespaced_network_policy(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_deployments_scale(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 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. - :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 + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_deployments_scale_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_deployments_scale_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_deployments_scale_with_http_info(self, name, namespace, **kwargs): """ - read the specified NetworkPolicy + 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_namespaced_network_policy_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_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 NetworkPolicy (required) + :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. - :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 + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8589,21 +6624,21 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_network_policy" % key + " to method read_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_namespaced_network_policy`") + raise ValueError("Missing the required parameter `name` when calling `read_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_namespaced_network_policy`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployments_scale`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -8613,10 +6648,6 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg 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 = {} @@ -8642,7 +6673,7 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1NetworkPolicy', + response_type='ExtensionsV1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8650,54 +6681,54 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_replica_set(self, name, namespace, **kwargs): + def read_namespaced_ingress(self, name, namespace, **kwargs): """ - read the specified ReplicaSet + 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_namespaced_replica_set(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_ingress(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 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 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 + :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_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): """ - read the specified ReplicaSet + 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_namespaced_replica_set_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_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 ReplicaSet (required) + :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 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 + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ @@ -8713,21 +6744,21 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_replica_set" % key + " to method read_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_namespaced_replica_set`") + raise ValueError("Missing the required parameter `name` when calling `read_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_namespaced_replica_set`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -8766,7 +6797,7 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ReplicaSet', + response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8774,50 +6805,50 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_replica_set_status(self, name, namespace, **kwargs): + def read_namespaced_ingress_status(self, name, namespace, **kwargs): """ - read status of the specified ReplicaSet + 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_namespaced_replica_set_status(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_ingress_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 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: V1beta1ReplicaSet + :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_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwargs): """ - read status of the specified ReplicaSet + 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_namespaced_replica_set_status_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_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 ReplicaSet (required) + :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: V1beta1ReplicaSet + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ @@ -8833,21 +6864,21 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_replica_set_status" % key + " to method read_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_namespaced_replica_set_status`") + raise ValueError("Missing the required parameter `name` when calling `read_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_namespaced_replica_set_status`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -8882,7 +6913,7 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ReplicaSet', + response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8890,55 +6921,59 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_replicasets_scale(self, name, namespace, **kwargs): + def read_namespaced_network_policy(self, name, namespace, **kwargs): """ - read scale of the specified Scale + 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_namespaced_replicasets_scale(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_network_policy(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 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. - :return: V1beta1Scale + :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_namespaced_replicasets_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_replicasets_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_replicasets_scale_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): """ - read scale of the specified Scale + 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_namespaced_replicasets_scale_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_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 Scale (required) + :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. - :return: V1beta1Scale + :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'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -8949,21 +6984,21 @@ def read_namespaced_replicasets_scale_with_http_info(self, name, namespace, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_replicasets_scale" % key + " to method read_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_namespaced_replicasets_scale`") + raise ValueError("Missing the required parameter `name` when calling `read_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_namespaced_replicasets_scale`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_network_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -8973,6 +7008,10 @@ def read_namespaced_replicasets_scale_with_http_info(self, name, namespace, **kw 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 = {} @@ -8998,7 +7037,7 @@ def read_namespaced_replicasets_scale_with_http_info(self, name, namespace, **kw body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Scale', + response_type='V1beta1NetworkPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9006,55 +7045,59 @@ def read_namespaced_replicasets_scale_with_http_info(self, name, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_replicationcontrollers_scale(self, name, namespace, **kwargs): + def read_namespaced_replica_set(self, name, namespace, **kwargs): """ - read scale of the specified Scale + 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_namespaced_replicationcontrollers_scale(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_replica_set(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 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: V1beta1Scale + :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_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_replicationcontrollers_scale_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): """ - read scale of the specified Scale + 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_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.read_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 Scale (required) + :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: V1beta1Scale + :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'] + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9065,21 +7108,21 @@ def read_namespaced_replicationcontrollers_scale_with_http_info(self, name, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_replicationcontrollers_scale" % key + " to method read_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_namespaced_replicationcontrollers_scale`") + raise ValueError("Missing the required parameter `name` when calling `read_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_namespaced_replicationcontrollers_scale`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -9089,6 +7132,10 @@ def read_namespaced_replicationcontrollers_scale_with_http_info(self, name, 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 = {} @@ -9114,7 +7161,7 @@ def read_namespaced_replicationcontrollers_scale_with_http_info(self, name, name body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Scale', + response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9122,57 +7169,55 @@ def read_namespaced_replicationcontrollers_scale_with_http_info(self, name, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_third_party_resource(self, name, **kwargs): + def read_namespaced_replica_set_status(self, name, namespace, **kwargs): """ - read the specified ThirdPartyResource + 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_third_party_resource(name, callback=callback_function) + >>> thread = api.read_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 ThirdPartyResource (required) + :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: V1beta1ThirdPartyResource + :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_third_party_resource_with_http_info(name, **kwargs) + return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_third_party_resource_with_http_info(name, **kwargs) + (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) return data - def read_third_party_resource_with_http_info(self, name, **kwargs): + def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs): """ - read the specified ThirdPartyResource + 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_third_party_resource_with_http_info(name, callback=callback_function) + >>> thread = api.read_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 ThirdPartyResource (required) + :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: V1beta1ThirdPartyResource + :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9183,29 +7228,30 @@ def read_third_party_resource_with_http_info(self, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_third_party_resource" % key + " to method read_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_third_party_resource`") + raise ValueError("Missing the required parameter `name` when calling `read_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_namespaced_replica_set_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/thirdpartyresources/{name}'.replace('{format}', 'json') + 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'] - if 'exact' in params: - query_params['exact'] = params['exact'] - if 'export' in params: - query_params['export'] = params['export'] header_params = {} @@ -9231,7 +7277,7 @@ def read_third_party_resource_with_http_info(self, name, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1ThirdPartyResource', + response_type='V1beta1ReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9239,57 +7285,55 @@ def read_third_party_resource_with_http_info(self, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): + def read_namespaced_replicasets_scale(self, name, namespace, **kwargs): """ - replace the specified DaemonSet + 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.replace_namespaced_daemon_set(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_replicasets_scale(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 name: name of the Scale (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 + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_replicasets_scale_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_replicasets_scale_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_replicasets_scale_with_http_info(self, name, namespace, **kwargs): """ - replace the specified DaemonSet + 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.replace_namespaced_daemon_set_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_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 DaemonSet (required) + :param str name: name of the Scale (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 + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9300,24 +7344,21 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_daemon_set" % key + " to method read_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_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `name` when calling `read_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_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_namespaced_daemon_set`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replicasets_scale`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -9334,8 +7375,6 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** 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']) @@ -9347,14 +7386,14 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PUT', + 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', + response_type='ExtensionsV1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9362,57 +7401,55 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): + def read_namespaced_replicationcontrollers_scale(self, name, namespace, **kwargs): """ - replace status of the specified DaemonSet + 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.replace_namespaced_daemon_set_status(name, namespace, body, callback=callback_function) + >>> thread = api.read_namespaced_replicationcontrollers_scale(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 name: name of the Scale (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 + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + return self.read_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, **kwargs) else: - (data) = self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_namespaced_replicationcontrollers_scale_with_http_info(name, namespace, **kwargs) return data - def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): + def read_namespaced_replicationcontrollers_scale_with_http_info(self, name, namespace, **kwargs): """ - replace status of the specified DaemonSet + 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.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_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 DaemonSet (required) + :param str name: name of the Scale (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 + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'namespace', 'pretty'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9423,24 +7460,21 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_daemon_set_status" % key + " to method read_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_namespaced_daemon_set_status`") + raise ValueError("Missing the required parameter `name` when calling `read_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_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_namespaced_daemon_set_status`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replicationcontrollers_scale`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -9457,8 +7491,6 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b 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']) @@ -9470,14 +7502,14 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PUT', + 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', + response_type='ExtensionsV1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9485,57 +7517,57 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_deployment(self, name, namespace, body, **kwargs): + def read_pod_security_policy(self, name, **kwargs): """ - replace the specified Deployment + read the specified PodSecurityPolicy This method makes a synchronous HTTP request by default. To make 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_namespaced_deployment(name, namespace, body, callback=callback_function) + >>> thread = api.read_pod_security_policy(name, 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 name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Deployment + :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: V1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.read_pod_security_policy_with_http_info(name, **kwargs) else: - (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_pod_security_policy_with_http_info(name, **kwargs) return data - def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): + def read_pod_security_policy_with_http_info(self, name, **kwargs): """ - replace the specified Deployment + read the specified PodSecurityPolicy This method makes a synchronous HTTP request by default. To make 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_namespaced_deployment_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_pod_security_policy_with_http_info(name, 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 name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Deployment + :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: V1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty'] + all_params = ['name', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9546,33 +7578,29 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_deployment" % key + " to method read_pod_security_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_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_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_namespaced_deployment`") + raise ValueError("Missing the required parameter `name` when calling `read_pod_security_policy`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/podsecuritypolicies/{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 = {} @@ -9580,8 +7608,6 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** 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']) @@ -9593,14 +7619,14 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PUT', + 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', + response_type='V1beta1PodSecurityPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9608,57 +7634,57 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): + def read_third_party_resource(self, name, **kwargs): """ - replace status of the specified Deployment + 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.replace_namespaced_deployment_status(name, namespace, body, callback=callback_function) + >>> thread = api.read_third_party_resource(name, 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 name: name of the ThirdPartyResource (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Deployment + :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.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return self.read_third_party_resource_with_http_info(name, **kwargs) else: - (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.read_third_party_resource_with_http_info(name, **kwargs) return data - def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): + def read_third_party_resource_with_http_info(self, name, **kwargs): """ - replace status of the specified Deployment + 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.replace_namespaced_deployment_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.read_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 Deployment (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Deployment body: (required) + :param str name: name of the ThirdPartyResource (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Deployment + :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', 'namespace', 'body', 'pretty'] + all_params = ['name', 'pretty', 'exact', 'export'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -9669,33 +7695,29 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_deployment_status" % key + " to method read_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_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_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_namespaced_deployment_status`") + raise ValueError("Missing the required parameter `name` when calling `read_third_party_resource`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/thirdpartyresources/{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 = {} @@ -9703,8 +7725,6 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b 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']) @@ -9716,14 +7736,14 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b # Authentication setting auth_settings = ['BearerToken'] - return self.api_client.call_api(resource_path, 'PUT', + 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', + response_type='V1beta1ThirdPartyResource', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9731,52 +7751,52 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_deployments_scale(self, name, namespace, body, **kwargs): + def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): """ - replace scale of the specified Scale + 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_namespaced_deployments_scale(name, namespace, body, callback=callback_function) + >>> thread = api.replace_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 Scale (required) + :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Scale body: (required) + :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Scale + :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_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_deployments_scale_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): """ - replace scale of the specified Scale + 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_namespaced_deployments_scale_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_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 Scale (required) + :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Scale body: (required) + :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Scale + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ @@ -9792,24 +7812,24 @@ def replace_namespaced_deployments_scale_with_http_info(self, name, namespace, b if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_deployments_scale" % key + " to method replace_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_namespaced_deployments_scale`") + raise ValueError("Missing the required parameter `name` when calling `replace_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_namespaced_deployments_scale`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_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_namespaced_deployments_scale`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -9846,7 +7866,7 @@ def replace_namespaced_deployments_scale_with_http_info(self, name, namespace, b body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Scale', + response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9854,52 +7874,52 @@ def replace_namespaced_deployments_scale_with_http_info(self, name, namespace, b _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): + def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): """ - replace the specified HorizontalPodAutoscaler + 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_namespaced_horizontal_pod_autoscaler(name, namespace, body, callback=callback_function) + >>> thread = api.replace_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 HorizontalPodAutoscaler (required) + :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1HorizontalPodAutoscaler body: (required) + :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1HorizontalPodAutoscaler + :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_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): """ - replace the specified HorizontalPodAutoscaler + 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_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_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 HorizontalPodAutoscaler (required) + :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1HorizontalPodAutoscaler body: (required) + :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1HorizontalPodAutoscaler + :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ @@ -9915,24 +7935,24 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_horizontal_pod_autoscaler" % key + " to method replace_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_namespaced_horizontal_pod_autoscaler`") + raise ValueError("Missing the required parameter `name` when calling `replace_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_namespaced_horizontal_pod_autoscaler`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_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_namespaced_horizontal_pod_autoscaler`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -9969,7 +7989,7 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1HorizontalPodAutoscaler', + response_type='V1beta1DaemonSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -9977,52 +7997,52 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): + def replace_namespaced_deployment(self, name, namespace, body, **kwargs): """ - replace status of the specified HorizontalPodAutoscaler + 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_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_deployment(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 name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1HorizontalPodAutoscaler body: (required) + :param ExtensionsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1HorizontalPodAutoscaler + :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): """ - replace status of the specified HorizontalPodAutoscaler + 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_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_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 HorizontalPodAutoscaler (required) + :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1HorizontalPodAutoscaler body: (required) + :param ExtensionsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1HorizontalPodAutoscaler + :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ @@ -10038,24 +8058,24 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_horizontal_pod_autoscaler_status" % key + " to method replace_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_namespaced_horizontal_pod_autoscaler_status`") + raise ValueError("Missing the required parameter `name` when calling `replace_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_namespaced_horizontal_pod_autoscaler_status`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_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_namespaced_horizontal_pod_autoscaler_status`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -10092,7 +8112,7 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1HorizontalPodAutoscaler', + response_type='ExtensionsV1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10100,52 +8120,52 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_ingress(self, name, namespace, body, **kwargs): + def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): """ - replace the specified Ingress + 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_namespaced_ingress(name, namespace, body, callback=callback_function) + >>> thread = api.replace_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 Ingress (required) + :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Ingress body: (required) + :param ExtensionsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): """ - replace the specified Ingress + 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_namespaced_ingress_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_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 Ingress (required) + :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Ingress body: (required) + :param ExtensionsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ @@ -10161,24 +8181,24 @@ def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_ingress" % key + " to method replace_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_namespaced_ingress`") + raise ValueError("Missing the required parameter `name` when calling `replace_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_namespaced_ingress`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_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_namespaced_ingress`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -10215,7 +8235,7 @@ def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwa body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Ingress', + response_type='ExtensionsV1beta1Deployment', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10223,52 +8243,52 @@ def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_ingress_status(self, name, namespace, body, **kwargs): + def replace_namespaced_deployments_scale(self, name, namespace, body, **kwargs): """ - replace status of the specified Ingress + 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_namespaced_ingress_status(name, namespace, body, callback=callback_function) + >>> thread = api.replace_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 Ingress (required) + :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Ingress body: (required) + :param ExtensionsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployments_scale_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_deployments_scale_with_http_info(self, name, namespace, body, **kwargs): """ - replace status of the specified Ingress + 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_namespaced_ingress_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_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 Ingress (required) + :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Ingress body: (required) + :param ExtensionsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Ingress + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -10284,24 +8304,24 @@ def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_ingress_status" % key + " to method replace_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_namespaced_ingress_status`") + raise ValueError("Missing the required parameter `name` when calling `replace_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_namespaced_ingress_status`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_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_namespaced_ingress_status`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployments_scale`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -10338,7 +8358,7 @@ def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Ingress', + response_type='ExtensionsV1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10346,52 +8366,52 @@ def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_job(self, name, namespace, body, **kwargs): + def replace_namespaced_ingress(self, name, namespace, body, **kwargs): """ - replace the specified Job + 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_namespaced_job(name, namespace, body, callback=callback_function) + >>> thread = api.replace_namespaced_ingress(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 name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Job body: (required) + :param V1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Job + :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_namespaced_job_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): """ - replace the specified Job + 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_namespaced_job_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_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 Job (required) + :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Job body: (required) + :param V1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Job + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ @@ -10407,24 +8427,24 @@ def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_job" % key + " to method replace_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_namespaced_job`") + raise ValueError("Missing the required parameter `name` when calling `replace_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_namespaced_job`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_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_namespaced_job`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -10461,7 +8481,7 @@ def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs) body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Job', + response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10469,52 +8489,52 @@ def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_job_status(self, name, namespace, body, **kwargs): + def replace_namespaced_ingress_status(self, name, namespace, body, **kwargs): """ - replace status of the specified Job + 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_namespaced_job_status(name, namespace, body, callback=callback_function) + >>> thread = api.replace_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 Job (required) + :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Job body: (required) + :param V1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Job + :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_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.replace_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) return data - def replace_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): + def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): """ - replace status of the specified Job + 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_namespaced_job_status_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.replace_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 Job (required) + :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1beta1Job body: (required) + :param V1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Job + :return: V1beta1Ingress If the method is called asynchronously, returns the request thread. """ @@ -10530,24 +8550,24 @@ def replace_namespaced_job_status_with_http_info(self, name, namespace, body, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method replace_namespaced_job_status" % key + " to method replace_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_namespaced_job_status`") + raise ValueError("Missing the required parameter `name` when calling `replace_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_namespaced_job_status`") + raise ValueError("Missing the required parameter `namespace` when calling `replace_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_namespaced_job_status`") + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress_status`") collection_formats = {} - resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status'.replace('{format}', 'json') + resource_path = '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status'.replace('{format}', 'json') path_params = {} if 'name' in params: path_params['name'] = params['name'] @@ -10584,7 +8604,7 @@ def replace_namespaced_job_status_with_http_info(self, name, namespace, body, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Job', + response_type='V1beta1Ingress', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10976,9 +8996,9 @@ def replace_namespaced_replicasets_scale(self, name, namespace, body, **kwargs): 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 ExtensionsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Scale + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -11004,9 +9024,9 @@ def replace_namespaced_replicasets_scale_with_http_info(self, name, namespace, b 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 ExtensionsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Scale + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -11076,7 +9096,7 @@ def replace_namespaced_replicasets_scale_with_http_info(self, name, namespace, b body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Scale', + response_type='ExtensionsV1beta1Scale', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -11099,9 +9119,9 @@ def replace_namespaced_replicationcontrollers_scale(self, name, namespace, body, 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 ExtensionsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Scale + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -11127,9 +9147,9 @@ def replace_namespaced_replicationcontrollers_scale_with_http_info(self, name, n 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 ExtensionsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Scale + :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ @@ -11199,7 +9219,123 @@ def replace_namespaced_replicationcontrollers_scale_with_http_info(self, name, n body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1Scale', + response_type='ExtensionsV1beta1Scale', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_pod_security_policy(self, name, body, **kwargs): + """ + replace the specified PodSecurityPolicy + This method makes a synchronous HTTP request by default. To make 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_pod_security_policy(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodSecurityPolicy (required) + :param V1beta1PodSecurityPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1PodSecurityPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_pod_security_policy_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_pod_security_policy_with_http_info(name, body, **kwargs) + return data + + def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): + """ + replace the specified PodSecurityPolicy + This method makes a synchronous HTTP request by default. To make 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_pod_security_policy_with_http_info(name, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodSecurityPolicy (required) + :param V1beta1PodSecurityPolicy body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1PodSecurityPolicy + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_pod_security_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_pod_security_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_pod_security_policy`") + + + collection_formats = {} + + resource_path = '/apis/extensions/v1beta1/podsecuritypolicies/{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']) + + # HTTP header `Content-Type` + 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='V1beta1PodSecurityPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/logs_api.py b/kubernetes/client/apis/logs_api.py index c774bc6390..198870ac60 100644 --- a/kubernetes/client/apis/logs_api.py +++ b/kubernetes/client/apis/logs_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/apis/policy_api.py b/kubernetes/client/apis/policy_api.py index da71ebfed7..0173ab0c06 100644 --- a/kubernetes/client/apis/policy_api.py +++ b/kubernetes/client/apis/policy_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIGroup', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/policy_v1beta1_api.py b/kubernetes/client/apis/policy_v1beta1_api.py index 7cfb28fa9c..3d1a737dcc 100644 --- a/kubernetes/client/apis/policy_v1beta1_api.py +++ b/kubernetes/client/apis/policy_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -173,10 +173,10 @@ def delete_collection_namespaced_pod_disruption_budget(self, namespace, **kwargs :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -204,10 +204,10 @@ def delete_collection_namespaced_pod_disruption_budget_with_http_info(self, name :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -277,7 +277,7 @@ def delete_collection_namespaced_pod_disruption_budget_with_http_info(self, name body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -303,8 +303,9 @@ def delete_namespaced_pod_disruption_budget(self, name, namespace, body, **kwarg :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -333,13 +334,14 @@ def delete_namespaced_pod_disruption_budget_with_http_info(self, name, namespace :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -381,6 +383,8 @@ def delete_namespaced_pod_disruption_budget_with_http_info(self, name, namespace query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -408,7 +412,7 @@ def delete_namespaced_pod_disruption_budget_with_http_info(self, name, namespace body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -429,7 +433,7 @@ def get_api_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -453,7 +457,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -505,7 +509,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIResourceList', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -530,7 +534,7 @@ def list_namespaced_pod_disruption_budget(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1beta1PodDisruptionBudgetList @@ -561,7 +565,7 @@ def list_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwar :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1beta1PodDisruptionBudgetList @@ -658,7 +662,7 @@ def list_pod_disruption_budget_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1beta1PodDisruptionBudgetList @@ -688,7 +692,7 @@ def list_pod_disruption_budget_for_all_namespaces_with_http_info(self, **kwargs) :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. :return: V1beta1PodDisruptionBudgetList @@ -779,7 +783,7 @@ def patch_namespaced_pod_disruption_budget(self, name, namespace, body, **kwargs 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, @@ -807,7 +811,7 @@ def patch_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, @@ -902,7 +906,7 @@ def patch_namespaced_pod_disruption_budget_status(self, name, namespace, body, * 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, @@ -930,7 +934,7 @@ def patch_namespaced_pod_disruption_budget_status_with_http_info(self, name, nam 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, @@ -1026,7 +1030,7 @@ def read_namespaced_pod_disruption_budget(self, name, namespace, **kwargs): :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 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: V1beta1PodDisruptionBudget If the method is called asynchronously, @@ -1055,7 +1059,7 @@ def read_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, :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 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: V1beta1PodDisruptionBudget If the method is called asynchronously, diff --git a/kubernetes/client/apis/rbac_authorization_api.py b/kubernetes/client/apis/rbac_authorization_api.py index 49301a9bbd..c7e35a2bbe 100644 --- a/kubernetes/client/apis/rbac_authorization_api.py +++ b/kubernetes/client/apis/rbac_authorization_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIGroup', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/rbac_authorization_v1alpha1_api.py b/kubernetes/client/apis/rbac_authorization_v1alpha1_api.py index a458ef7ff5..dd26e5d226 100644 --- a/kubernetes/client/apis/rbac_authorization_v1alpha1_api.py +++ b/kubernetes/client/apis/rbac_authorization_v1alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -507,8 +507,9 @@ def delete_cluster_role(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -536,13 +537,14 @@ def delete_cluster_role_with_http_info(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -579,6 +581,8 @@ def delete_cluster_role_with_http_info(self, name, body, **kwargs): query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -606,7 +610,7 @@ def delete_cluster_role_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -631,8 +635,9 @@ def delete_cluster_role_binding(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -660,13 +665,14 @@ def delete_cluster_role_binding_with_http_info(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -703,6 +709,8 @@ def delete_cluster_role_binding_with_http_info(self, name, body, **kwargs): query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -730,7 +738,7 @@ def delete_cluster_role_binding_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -754,10 +762,10 @@ def delete_collection_cluster_role(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -784,10 +792,10 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -852,7 +860,7 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -876,10 +884,10 @@ def delete_collection_cluster_role_binding(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -906,10 +914,10 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -974,7 +982,7 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -999,10 +1007,10 @@ def delete_collection_namespaced_role(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -1030,10 +1038,10 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -1103,7 +1111,7 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1128,10 +1136,10 @@ def delete_collection_namespaced_role_binding(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -1159,10 +1167,10 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -1232,7 +1240,7 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1258,8 +1266,9 @@ def delete_namespaced_role(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -1288,13 +1297,14 @@ def delete_namespaced_role_with_http_info(self, name, namespace, body, **kwargs) :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1336,6 +1346,8 @@ def delete_namespaced_role_with_http_info(self, name, namespace, body, **kwargs) query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -1363,7 +1375,7 @@ def delete_namespaced_role_with_http_info(self, name, namespace, body, **kwargs) body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1389,8 +1401,9 @@ def delete_namespaced_role_binding(self, name, namespace, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -1419,13 +1432,14 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, body, * :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1467,6 +1481,8 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, body, * query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -1494,7 +1510,7 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, body, * body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1515,7 +1531,7 @@ def get_api_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -1539,7 +1555,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -1591,7 +1607,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIResourceList', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1615,7 +1631,7 @@ def list_cluster_role(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -1645,7 +1661,7 @@ def list_cluster_role_with_http_info(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -1737,7 +1753,7 @@ def list_cluster_role_binding(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -1767,7 +1783,7 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -1860,7 +1876,7 @@ def list_namespaced_role(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -1891,7 +1907,7 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -1989,7 +2005,7 @@ def list_namespaced_role_binding(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -2020,7 +2036,7 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -2117,7 +2133,7 @@ def list_role_binding_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -2147,7 +2163,7 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -2239,7 +2255,7 @@ def list_role_for_all_namespaces(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -2269,7 +2285,7 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): :param str field_selector: A selector to restrict the list of returned objects by their fields. 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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -2359,7 +2375,7 @@ def patch_cluster_role(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRole (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRole If the method is called asynchronously, @@ -2386,7 +2402,7 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRole (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRole If the method is called asynchronously, @@ -2475,7 +2491,7 @@ def patch_cluster_role_binding(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRoleBinding (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, @@ -2502,7 +2518,7 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRoleBinding (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, @@ -2592,7 +2608,7 @@ def patch_namespaced_role(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1Role If the method is called asynchronously, @@ -2620,7 +2636,7 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1Role If the method is called asynchronously, @@ -2715,7 +2731,7 @@ def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1RoleBinding If the method is called asynchronously, @@ -2743,7 +2759,7 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** 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 V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1RoleBinding If the method is called asynchronously, diff --git a/kubernetes/client/apis/rbac_authorization_v1beta1_api.py b/kubernetes/client/apis/rbac_authorization_v1beta1_api.py new file mode 100644 index 0000000000..bacff6f58a --- /dev/null +++ b/kubernetes/client/apis/rbac_authorization_v1beta1_api.py @@ -0,0 +1,3768 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +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 RbacAuthorizationV1beta1Api(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_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_cluster_role(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1ClusterRole body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_cluster_role_with_http_info(body, **kwargs) + else: + (data) = self.create_cluster_role_with_http_info(body, **kwargs) + return data + + def create_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_cluster_role_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1ClusterRole body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ClusterRole + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_cluster_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1ClusterRole', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_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_cluster_role_binding(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1ClusterRoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_cluster_role_binding_with_http_info(body, **kwargs) + else: + (data) = self.create_cluster_role_binding_with_http_info(body, **kwargs) + return data + + def create_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_cluster_role_binding_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1beta1ClusterRoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ClusterRoleBinding + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1ClusterRoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_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_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 V1beta1Role body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_role_with_http_info(namespace, body, **kwargs) + return data + + def create_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_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 V1beta1Role body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Role + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1Role', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_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_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 V1beta1RoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) + return data + + def create_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_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 V1beta1RoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1RoleBinding + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1RoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_cluster_role_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_cluster_role_with_http_info(name, body, **kwargs) + return data + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_cluster_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] + + 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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_cluster_role_binding_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_cluster_role_binding_with_http_info(name, body, **kwargs) + return data + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] + + 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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_cluster_role_with_http_info(**kwargs) + else: + (data) = self.delete_collection_cluster_role_with_http_info(**kwargs) + return data + + def delete_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_collection_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) + else: + (data) = self.delete_collection_cluster_role_binding_with_http_info(**kwargs) + return data + + def delete_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_collection_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) + return data + + def delete_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_collection_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) + return data + + def delete_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_collection_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_role_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] + + 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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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'] + if 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] + + 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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_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_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_with_http_info(**kwargs) + return data + + def get_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_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_resources" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + resource_path = '/apis/rbac.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']) + + # 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='V1APIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ClusterRoleList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_cluster_role_with_http_info(**kwargs) + else: + (data) = self.list_cluster_role_with_http_info(**kwargs) + return data + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ClusterRoleList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_cluster_role" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1ClusterRoleList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ClusterRoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_cluster_role_binding_with_http_info(**kwargs) + else: + (data) = self.list_cluster_role_binding_with_http_info(**kwargs) + return data + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1ClusterRoleBindingList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_cluster_role_binding" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1ClusterRoleBindingList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1RoleList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_role_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_role_with_http_info(namespace, **kwargs) + return data + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1RoleList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1RoleList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1RoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) + return data + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1RoleBindingList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1RoleBindingList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1RoleBindingList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1RoleBindingList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_role_binding_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1RoleBindingList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1RoleList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_role_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_role_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1beta1RoleList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_role_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1RoleList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_cluster_role_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_cluster_role_with_http_info(name, body, **kwargs) + return data + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ClusterRole + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_cluster_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # 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='V1beta1ClusterRole', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) + return data + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ClusterRoleBinding + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # 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='V1beta1ClusterRoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Role + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # 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='V1beta1Role', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1RoleBinding + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # 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='V1beta1RoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_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_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: V1beta1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_cluster_role_with_http_info(name, **kwargs) + else: + (data) = self.read_cluster_role_with_http_info(name, **kwargs) + return data + + def read_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_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: V1beta1ClusterRole + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_cluster_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1ClusterRole', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_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_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: V1beta1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_cluster_role_binding_with_http_info(name, **kwargs) + else: + (data) = self.read_cluster_role_binding_with_http_info(name, **kwargs) + return data + + def read_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_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: V1beta1ClusterRoleBinding + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1ClusterRoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_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_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: V1beta1Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_role_with_http_info(name, namespace, **kwargs) + return data + + def read_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_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: V1beta1Role + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1Role', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_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_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: V1beta1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + return data + + def read_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_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: V1beta1RoleBinding + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1RoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_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_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 V1beta1ClusterRole body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ClusterRole + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_cluster_role_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_cluster_role_with_http_info(name, body, **kwargs) + return data + + def replace_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_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 V1beta1ClusterRole body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ClusterRole + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_cluster_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1ClusterRole', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_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_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 V1beta1ClusterRoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ClusterRoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) + return data + + def replace_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_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 V1beta1ClusterRoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1ClusterRoleBinding + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_cluster_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1ClusterRoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_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_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 V1beta1Role body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Role + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_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_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 V1beta1Role body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1Role + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_role`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1Role', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_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_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 V1beta1RoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1RoleBinding + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_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_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 V1beta1RoleBinding body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1beta1RoleBinding + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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_namespaced_role_binding`") + + + collection_formats = {} + + resource_path = '/apis/rbac.authorization.k8s.io/v1beta1/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']) + + # HTTP header `Content-Type` + 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='V1beta1RoleBinding', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/settings_api.py b/kubernetes/client/apis/settings_api.py new file mode 100644 index 0000000000..0e635e1527 --- /dev/null +++ b/kubernetes/client/apis/settings_api.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +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 SettingsApi(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_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_api_group(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_group_with_http_info(**kwargs) + else: + (data) = self.get_api_group_with_http_info(**kwargs) + return data + + def get_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_api_group_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_group" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + resource_path = '/apis/settings.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']) + + # 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='V1APIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/settings_v1alpha1_api.py b/kubernetes/client/apis/settings_v1alpha1_api.py new file mode 100644 index 0000000000..c06774b778 --- /dev/null +++ b/kubernetes/client/apis/settings_v1alpha1_api.py @@ -0,0 +1,1139 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +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 SettingsV1alpha1Api(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_namespaced_pod_preset(self, namespace, body, **kwargs): + """ + create a PodPreset + This method makes a synchronous HTTP request by default. To make 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_namespaced_pod_preset(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 V1alpha1PodPreset body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodPreset + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_pod_preset_with_http_info(namespace, body, **kwargs) + else: + (data) = self.create_namespaced_pod_preset_with_http_info(namespace, body, **kwargs) + return data + + def create_namespaced_pod_preset_with_http_info(self, namespace, body, **kwargs): + """ + create a PodPreset + This method makes a synchronous HTTP request by default. To make 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_namespaced_pod_preset_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 V1alpha1PodPreset body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodPreset + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_namespaced_pod_preset" % 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_namespaced_pod_preset`") + # 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_namespaced_pod_preset`") + + + collection_formats = {} + + resource_path = '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets'.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']) + + # HTTP header `Content-Type` + 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='V1alpha1PodPreset', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_pod_preset(self, namespace, **kwargs): + """ + delete collection of PodPreset + This method makes a synchronous HTTP request by default. To make 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_collection_namespaced_pod_preset(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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_pod_preset_with_http_info(namespace, **kwargs) + else: + (data) = self.delete_collection_namespaced_pod_preset_with_http_info(namespace, **kwargs) + return data + + def delete_collection_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): + """ + delete collection of PodPreset + This method makes a synchronous HTTP request by default. To make 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_collection_namespaced_pod_preset_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_collection_namespaced_pod_preset" % 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_collection_namespaced_pod_preset`") + + + collection_formats = {} + + resource_path = '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets'.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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_pod_preset(self, name, namespace, body, **kwargs): + """ + delete a PodPreset + This method makes a synchronous HTTP request by default. To make 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_namespaced_pod_preset(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodPreset (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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kwargs): + """ + delete a PodPreset + This method makes a synchronous HTTP request by default. To make 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_namespaced_pod_preset_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 PodPreset (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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_namespaced_pod_preset" % key + ) + params[key] = val + del params['kwargs'] + # verify the 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_namespaced_pod_preset`") + # verify the 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_namespaced_pod_preset`") + # 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_namespaced_pod_preset`") + + + collection_formats = {} + + resource_path = '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{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 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] + + 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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_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_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_with_http_info(**kwargs) + return data + + def get_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_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_resources" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + resource_path = '/apis/settings.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']) + + # 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='V1APIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_pod_preset(self, namespace, **kwargs): + """ + list or watch objects of kind PodPreset + This method makes a synchronous HTTP request by default. To make 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_namespaced_pod_preset(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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1PodPresetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_namespaced_pod_preset_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_pod_preset_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): + """ + list or watch objects of kind PodPreset + This method makes a synchronous HTTP request by default. To make 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_namespaced_pod_preset_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1PodPresetList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_namespaced_pod_preset" % 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_namespaced_pod_preset`") + + + collection_formats = {} + + resource_path = '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets'.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']) + + # HTTP header `Content-Type` + 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='V1alpha1PodPresetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_pod_preset_for_all_namespaces(self, **kwargs): + """ + list or watch objects of kind PodPreset + This method makes a synchronous HTTP request by default. To make 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_pod_preset_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1PodPresetList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_pod_preset_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_pod_preset_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_pod_preset_for_all_namespaces_with_http_info(self, **kwargs): + """ + list or watch objects of kind PodPreset + This method makes a synchronous HTTP request by default. To make 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_pod_preset_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1alpha1PodPresetList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_pod_preset_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/settings.k8s.io/v1alpha1/podpresets'.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']) + + # HTTP header `Content-Type` + 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='V1alpha1PodPresetList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_pod_preset(self, name, namespace, body, **kwargs): + """ + partially update the specified PodPreset + This method makes a synchronous HTTP request by default. To make 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_namespaced_pod_preset(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodPreset (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodPreset + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kwargs): + """ + partially update the specified PodPreset + This method makes a synchronous HTTP request by default. To make 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_namespaced_pod_preset_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 PodPreset (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodPreset + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_namespaced_pod_preset" % key + ) + params[key] = val + del params['kwargs'] + # verify the 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_namespaced_pod_preset`") + # verify the 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_namespaced_pod_preset`") + # 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_namespaced_pod_preset`") + + + collection_formats = {} + + resource_path = '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{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']) + + # 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='V1alpha1PodPreset', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_pod_preset(self, name, namespace, **kwargs): + """ + read the specified PodPreset + This method makes a synchronous HTTP request by default. To make 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_namespaced_pod_preset(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodPreset (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: V1alpha1PodPreset + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs): + """ + read the specified PodPreset + This method makes a synchronous HTTP request by default. To make 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_namespaced_pod_preset_with_http_info(name, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodPreset (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: V1alpha1PodPreset + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_namespaced_pod_preset" % key + ) + params[key] = val + del params['kwargs'] + # verify the 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_namespaced_pod_preset`") + # verify the 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_namespaced_pod_preset`") + + + collection_formats = {} + + resource_path = '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{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']) + + # HTTP header `Content-Type` + 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='V1alpha1PodPreset', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_pod_preset(self, name, namespace, body, **kwargs): + """ + replace the specified PodPreset + This method makes a synchronous HTTP request by default. To make 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_namespaced_pod_preset(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: name of the PodPreset (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1PodPreset body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodPreset + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kwargs): + """ + replace the specified PodPreset + This method makes a synchronous HTTP request by default. To make 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_namespaced_pod_preset_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 PodPreset (required) + :param str namespace: object name and auth scope, such as for teams and projects (required) + :param V1alpha1PodPreset body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1alpha1PodPreset + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_namespaced_pod_preset" % key + ) + params[key] = val + del params['kwargs'] + # verify the 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_namespaced_pod_preset`") + # verify the 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_namespaced_pod_preset`") + # 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_namespaced_pod_preset`") + + + collection_formats = {} + + resource_path = '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{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']) + + # HTTP header `Content-Type` + 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='V1alpha1PodPreset', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/storage_api.py b/kubernetes/client/apis/storage_api.py index 83b9cfe28d..5244ff5dbd 100644 --- a/kubernetes/client/apis/storage_api.py +++ b/kubernetes/client/apis/storage_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def get_api_group(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -77,7 +77,7 @@ def get_api_group_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIGroup + :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIGroup', + response_type='V1APIGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/kubernetes/client/apis/storage_v1_api.py b/kubernetes/client/apis/storage_v1_api.py new file mode 100644 index 0000000000..25cb9602ca --- /dev/null +++ b/kubernetes/client/apis/storage_v1_api.py @@ -0,0 +1,968 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +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 StorageV1Api(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_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_class(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1StorageClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1StorageClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_storage_class_with_http_info(body, **kwargs) + else: + (data) = self.create_storage_class_with_http_info(body, **kwargs) + return data + + def create_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_class_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1StorageClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1StorageClass + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_class`") + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1/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']) + + # HTTP header `Content-Type` + 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='V1StorageClass', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_storage_class_with_http_info(**kwargs) + else: + (data) = self.delete_collection_storage_class_with_http_info(**kwargs) + return data + + def delete_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1Status + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_collection_storage_class" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1/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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_storage_class_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_storage_class_with_http_info(name, body, **kwargs) + return data + + def delete_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_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. + :param int grace_period_seconds: 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 bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_class`") + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1/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 'grace_period_seconds' in params: + query_params['gracePeriodSeconds'] = params['grace_period_seconds'] + if 'orphan_dependents' in params: + query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] + + 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']) + + # HTTP header `Content-Type` + 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='V1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_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_api_resources(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_resources_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_with_http_info(**kwargs) + return data + + def get_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_api_resources_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: V1APIResourceList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_resources" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/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']) + + # 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='V1APIResourceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1StorageClassList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_storage_class_with_http_info(**kwargs) + else: + (data) = self.list_storage_class_with_http_info(**kwargs) + return data + + def list_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_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + :param int timeout_seconds: Timeout for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: V1StorageClassList + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_class" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1/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']) + + # HTTP header `Content-Type` + 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='V1StorageClassList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1StorageClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.patch_storage_class_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_storage_class_with_http_info(name, body, **kwargs) + return data + + def patch_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_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 V1Patch body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1StorageClass + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_class`") + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1/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']) + + # 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='V1StorageClass', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_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_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: V1StorageClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.read_storage_class_with_http_info(name, **kwargs) + else: + (data) = self.read_storage_class_with_http_info(name, **kwargs) + return data + + def read_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_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: V1StorageClass + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_class`") + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1/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']) + + # HTTP header `Content-Type` + 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='V1StorageClass', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_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_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 V1StorageClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1StorageClass + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.replace_storage_class_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_storage_class_with_http_info(name, body, **kwargs) + return data + + def replace_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_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 V1StorageClass body: (required) + :param str pretty: If 'true', then the output is pretty printed. + :return: V1StorageClass + 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') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_class`") + + + collection_formats = {} + + resource_path = '/apis/storage.k8s.io/v1/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']) + + # HTTP header `Content-Type` + 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='V1StorageClass', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/storage_v1beta1_api.py b/kubernetes/client/apis/storage_v1beta1_api.py index 7895a7756c..c46eadef24 100644 --- a/kubernetes/client/apis/storage_v1beta1_api.py +++ b/kubernetes/client/apis/storage_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -165,10 +165,10 @@ def delete_collection_storage_class(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -195,10 +195,10 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -263,7 +263,7 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -288,8 +288,9 @@ def delete_storage_class(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ @@ -317,13 +318,14 @@ def delete_storage_class_with_http_info(self, name, body, **kwargs): :param V1DeleteOptions body: (required) :param str pretty: If 'true', then the output is pretty printed. :param int grace_period_seconds: 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 bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. - :return: UnversionedStatus + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents'] + all_params = ['name', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -360,6 +362,8 @@ def delete_storage_class_with_http_info(self, name, body, **kwargs): query_params['gracePeriodSeconds'] = params['grace_period_seconds'] if 'orphan_dependents' in params: query_params['orphanDependents'] = params['orphan_dependents'] + if 'propagation_policy' in params: + query_params['propagationPolicy'] = params['propagation_policy'] header_params = {} @@ -387,7 +391,7 @@ def delete_storage_class_with_http_info(self, name, body, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedStatus', + response_type='V1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -408,7 +412,7 @@ def get_api_resources(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -432,7 +436,7 @@ def get_api_resources_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :return: UnversionedAPIResourceList + :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ @@ -484,7 +488,7 @@ def get_api_resources_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='UnversionedAPIResourceList', + response_type='V1APIResourceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -508,7 +512,7 @@ def list_storage_class(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -538,7 +542,7 @@ def list_storage_class_with_http_info(self, **kwargs): :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 str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. :param 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 @@ -628,7 +632,7 @@ def patch_storage_class(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the StorageClass (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1StorageClass If the method is called asynchronously, @@ -655,7 +659,7 @@ def patch_storage_class_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the StorageClass (required) - :param UnversionedPatch body: (required) + :param V1Patch body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1StorageClass If the method is called asynchronously, @@ -745,7 +749,7 @@ def read_storage_class(self, name, **kwargs): 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 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, @@ -773,7 +777,7 @@ def read_storage_class_with_http_info(self, name, **kwargs): 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 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, diff --git a/kubernetes/client/apis/version_api.py b/kubernetes/client/apis/version_api.py index dfa9484c5d..ede0aed51d 100644 --- a/kubernetes/client/apis/version_api.py +++ b/kubernetes/client/apis/version_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/__init__.py b/kubernetes/client/models/__init__.py index 1dfe5e6a06..d6d1c2c1e1 100644 --- a/kubernetes/client/models/__init__.py +++ b/kubernetes/client/models/__init__.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -14,24 +14,40 @@ from __future__ import absolute_import # import models into model package +from .apps_v1beta1_deployment import AppsV1beta1Deployment +from .apps_v1beta1_deployment_condition import AppsV1beta1DeploymentCondition +from .apps_v1beta1_deployment_list import AppsV1beta1DeploymentList +from .apps_v1beta1_deployment_rollback import AppsV1beta1DeploymentRollback +from .apps_v1beta1_deployment_spec import AppsV1beta1DeploymentSpec +from .apps_v1beta1_deployment_status import AppsV1beta1DeploymentStatus +from .apps_v1beta1_deployment_strategy import AppsV1beta1DeploymentStrategy +from .apps_v1beta1_rollback_config import AppsV1beta1RollbackConfig +from .apps_v1beta1_rolling_update_deployment import AppsV1beta1RollingUpdateDeployment +from .apps_v1beta1_scale import AppsV1beta1Scale +from .apps_v1beta1_scale_spec import AppsV1beta1ScaleSpec +from .apps_v1beta1_scale_status import AppsV1beta1ScaleStatus +from .extensions_v1beta1_deployment import ExtensionsV1beta1Deployment +from .extensions_v1beta1_deployment_condition import ExtensionsV1beta1DeploymentCondition +from .extensions_v1beta1_deployment_list import ExtensionsV1beta1DeploymentList +from .extensions_v1beta1_deployment_rollback import ExtensionsV1beta1DeploymentRollback +from .extensions_v1beta1_deployment_spec import ExtensionsV1beta1DeploymentSpec +from .extensions_v1beta1_deployment_status import ExtensionsV1beta1DeploymentStatus +from .extensions_v1beta1_deployment_strategy import ExtensionsV1beta1DeploymentStrategy +from .extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig +from .extensions_v1beta1_rolling_update_deployment import ExtensionsV1beta1RollingUpdateDeployment +from .extensions_v1beta1_scale import ExtensionsV1beta1Scale +from .extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec +from .extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus 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_api_group import V1APIGroup +from .v1_api_group_list import V1APIGroupList +from .v1_api_resource import V1APIResource +from .v1_api_resource_list import V1APIResourceList +from .v1_api_versions import V1APIVersions from .v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource +from .v1_affinity import V1Affinity from .v1_attached_volume import V1AttachedVolume from .v1_azure_disk_volume_source import V1AzureDiskVolumeSource from .v1_azure_file_volume_source import V1AzureFileVolumeSource @@ -43,8 +59,10 @@ from .v1_component_status import V1ComponentStatus from .v1_component_status_list import V1ComponentStatusList from .v1_config_map import V1ConfigMap +from .v1_config_map_env_source import V1ConfigMapEnvSource from .v1_config_map_key_selector import V1ConfigMapKeySelector from .v1_config_map_list import V1ConfigMapList +from .v1_config_map_projection import V1ConfigMapProjection from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container import V1Container from .v1_container_image import V1ContainerImage @@ -57,6 +75,7 @@ from .v1_cross_version_object_reference import V1CrossVersionObjectReference from .v1_daemon_endpoint import V1DaemonEndpoint from .v1_delete_options import V1DeleteOptions +from .v1_downward_api_projection import V1DownwardAPIProjection from .v1_downward_api_volume_file import V1DownwardAPIVolumeFile from .v1_downward_api_volume_source import V1DownwardAPIVolumeSource from .v1_empty_dir_volume_source import V1EmptyDirVolumeSource @@ -65,6 +84,7 @@ from .v1_endpoint_subset import V1EndpointSubset from .v1_endpoints import V1Endpoints from .v1_endpoints_list import V1EndpointsList +from .v1_env_from_source import V1EnvFromSource from .v1_env_var import V1EnvVar from .v1_env_var_source import V1EnvVarSource from .v1_event import V1Event @@ -77,6 +97,7 @@ from .v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource from .v1_git_repo_volume_source import V1GitRepoVolumeSource from .v1_glusterfs_volume_source import V1GlusterfsVolumeSource +from .v1_group_version_for_discovery import V1GroupVersionForDiscovery from .v1_http_get_action import V1HTTPGetAction from .v1_http_header import V1HTTPHeader from .v1_handler import V1Handler @@ -92,14 +113,18 @@ from .v1_job_spec import V1JobSpec from .v1_job_status import V1JobStatus from .v1_key_to_path import V1KeyToPath +from .v1_label_selector import V1LabelSelector +from .v1_label_selector_requirement import V1LabelSelectorRequirement 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_list_meta import V1ListMeta from .v1_load_balancer_ingress import V1LoadBalancerIngress from .v1_load_balancer_status import V1LoadBalancerStatus from .v1_local_object_reference import V1LocalObjectReference +from .v1_local_subject_access_review import V1LocalSubjectAccessReview from .v1_nfs_volume_source import V1NFSVolumeSource from .v1_namespace import V1Namespace from .v1_namespace_list import V1NamespaceList @@ -107,12 +132,17 @@ from .v1_namespace_status import V1NamespaceStatus from .v1_node import V1Node from .v1_node_address import V1NodeAddress +from .v1_node_affinity import V1NodeAffinity from .v1_node_condition import V1NodeCondition from .v1_node_daemon_endpoints import V1NodeDaemonEndpoints from .v1_node_list import V1NodeList +from .v1_node_selector import V1NodeSelector +from .v1_node_selector_requirement import V1NodeSelectorRequirement +from .v1_node_selector_term import V1NodeSelectorTerm from .v1_node_spec import V1NodeSpec from .v1_node_status import V1NodeStatus from .v1_node_system_info import V1NodeSystemInfo +from .v1_non_resource_attributes import V1NonResourceAttributes from .v1_object_field_selector import V1ObjectFieldSelector from .v1_object_meta import V1ObjectMeta from .v1_object_reference import V1ObjectReference @@ -128,6 +158,9 @@ from .v1_persistent_volume_status import V1PersistentVolumeStatus from .v1_photon_persistent_disk_volume_source import V1PhotonPersistentDiskVolumeSource from .v1_pod import V1Pod +from .v1_pod_affinity import V1PodAffinity +from .v1_pod_affinity_term import V1PodAffinityTerm +from .v1_pod_anti_affinity import V1PodAntiAffinity from .v1_pod_condition import V1PodCondition from .v1_pod_list import V1PodList from .v1_pod_security_context import V1PodSecurityContext @@ -136,8 +169,11 @@ from .v1_pod_template import V1PodTemplate from .v1_pod_template_list import V1PodTemplateList from .v1_pod_template_spec import V1PodTemplateSpec +from .v1_portworx_volume_source import V1PortworxVolumeSource from .v1_preconditions import V1Preconditions +from .v1_preferred_scheduling_term import V1PreferredSchedulingTerm from .v1_probe import V1Probe +from .v1_projected_volume_source import V1ProjectedVolumeSource from .v1_quobyte_volume_source import V1QuobyteVolumeSource from .v1_rbd_volume_source import V1RBDVolumeSource from .v1_replication_controller import V1ReplicationController @@ -145,6 +181,7 @@ from .v1_replication_controller_list import V1ReplicationControllerList from .v1_replication_controller_spec import V1ReplicationControllerSpec from .v1_replication_controller_status import V1ReplicationControllerStatus +from .v1_resource_attributes import V1ResourceAttributes from .v1_resource_field_selector import V1ResourceFieldSelector from .v1_resource_quota import V1ResourceQuota from .v1_resource_quota_list import V1ResourceQuotaList @@ -153,13 +190,19 @@ from .v1_resource_requirements import V1ResourceRequirements from .v1_se_linux_options import V1SELinuxOptions from .v1_scale import V1Scale +from .v1_scale_io_volume_source import V1ScaleIOVolumeSource from .v1_scale_spec import V1ScaleSpec from .v1_scale_status import V1ScaleStatus from .v1_secret import V1Secret +from .v1_secret_env_source import V1SecretEnvSource from .v1_secret_key_selector import V1SecretKeySelector from .v1_secret_list import V1SecretList +from .v1_secret_projection import V1SecretProjection from .v1_secret_volume_source import V1SecretVolumeSource from .v1_security_context import V1SecurityContext +from .v1_self_subject_access_review import V1SelfSubjectAccessReview +from .v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec +from .v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR from .v1_service import V1Service from .v1_service_account import V1ServiceAccount from .v1_service_account_list import V1ServiceAccountList @@ -167,19 +210,35 @@ from .v1_service_port import V1ServicePort from .v1_service_spec import V1ServiceSpec from .v1_service_status import V1ServiceStatus +from .v1_status import V1Status +from .v1_status_cause import V1StatusCause +from .v1_status_details import V1StatusDetails +from .v1_storage_class import V1StorageClass +from .v1_storage_class_list import V1StorageClassList +from .v1_subject_access_review import V1SubjectAccessReview +from .v1_subject_access_review_spec import V1SubjectAccessReviewSpec +from .v1_subject_access_review_status import V1SubjectAccessReviewStatus from .v1_tcp_socket_action import V1TCPSocketAction +from .v1_taint import V1Taint +from .v1_time import V1Time +from .v1_token_review import V1TokenReview +from .v1_token_review_spec import V1TokenReviewSpec +from .v1_token_review_status import V1TokenReviewStatus +from .v1_toleration import V1Toleration +from .v1_user_info import V1UserInfo from .v1_volume import V1Volume from .v1_volume_mount import V1VolumeMount +from .v1_volume_projection import V1VolumeProjection from .v1_vsphere_virtual_disk_volume_source import V1VsphereVirtualDiskVolumeSource -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 .v1_watch_event import V1WatchEvent +from .v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm 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_pod_preset import V1alpha1PodPreset +from .v1alpha1_pod_preset_list import V1alpha1PodPresetList +from .v1alpha1_pod_preset_spec import V1alpha1PodPresetSpec from .v1alpha1_policy_rule import V1alpha1PolicyRule from .v1alpha1_role import V1alpha1Role from .v1alpha1_role_binding import V1alpha1RoleBinding @@ -188,25 +247,26 @@ from .v1alpha1_role_ref import V1alpha1RoleRef from .v1alpha1_subject import V1alpha1Subject from .v1beta1_api_version import V1beta1APIVersion -from .v1beta1_cpu_target_utilization import V1beta1CPUTargetUtilization +from .v1beta1_certificate_signing_request import V1beta1CertificateSigningRequest +from .v1beta1_certificate_signing_request_condition import V1beta1CertificateSigningRequestCondition +from .v1beta1_certificate_signing_request_list import V1beta1CertificateSigningRequestList +from .v1beta1_certificate_signing_request_spec import V1beta1CertificateSigningRequestSpec +from .v1beta1_certificate_signing_request_status import V1beta1CertificateSigningRequestStatus +from .v1beta1_cluster_role import V1beta1ClusterRole +from .v1beta1_cluster_role_binding import V1beta1ClusterRoleBinding +from .v1beta1_cluster_role_binding_list import V1beta1ClusterRoleBindingList +from .v1beta1_cluster_role_list import V1beta1ClusterRoleList 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_daemon_set_update_strategy import V1beta1DaemonSetUpdateStrategy from .v1beta1_eviction import V1beta1Eviction +from .v1beta1_fs_group_strategy_options import V1beta1FSGroupStrategyOptions from .v1beta1_http_ingress_path import V1beta1HTTPIngressPath from .v1beta1_http_ingress_rule_value import V1beta1HTTPIngressRuleValue -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_host_port_range import V1beta1HostPortRange +from .v1beta1_id_range import V1beta1IDRange from .v1beta1_ingress import V1beta1Ingress from .v1beta1_ingress_backend import V1beta1IngressBackend from .v1beta1_ingress_list import V1beta1IngressList @@ -214,11 +274,6 @@ 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 @@ -231,17 +286,24 @@ from .v1beta1_pod_disruption_budget_list import V1beta1PodDisruptionBudgetList from .v1beta1_pod_disruption_budget_spec import V1beta1PodDisruptionBudgetSpec from .v1beta1_pod_disruption_budget_status import V1beta1PodDisruptionBudgetStatus +from .v1beta1_pod_security_policy import V1beta1PodSecurityPolicy +from .v1beta1_pod_security_policy_list import V1beta1PodSecurityPolicyList +from .v1beta1_pod_security_policy_spec import V1beta1PodSecurityPolicySpec +from .v1beta1_policy_rule import V1beta1PolicyRule 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_role import V1beta1Role +from .v1beta1_role_binding import V1beta1RoleBinding +from .v1beta1_role_binding_list import V1beta1RoleBindingList +from .v1beta1_role_list import V1beta1RoleList +from .v1beta1_role_ref import V1beta1RoleRef +from .v1beta1_rolling_update_daemon_set import V1beta1RollingUpdateDaemonSet +from .v1beta1_run_as_user_strategy_options import V1beta1RunAsUserStrategyOptions +from .v1beta1_se_linux_strategy_options import V1beta1SELinuxStrategyOptions from .v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview from .v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec from .v1beta1_stateful_set import V1beta1StatefulSet @@ -250,10 +312,11 @@ from .v1beta1_stateful_set_status import V1beta1StatefulSetStatus from .v1beta1_storage_class import V1beta1StorageClass from .v1beta1_storage_class_list import V1beta1StorageClassList +from .v1beta1_subject import V1beta1Subject 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_supplemental_groups_strategy_options import V1beta1SupplementalGroupsStrategyOptions from .v1beta1_third_party_resource import V1beta1ThirdPartyResource from .v1beta1_third_party_resource_list import V1beta1ThirdPartyResourceList from .v1beta1_token_review import V1beta1TokenReview @@ -264,11 +327,18 @@ from .v2alpha1_cron_job_list import V2alpha1CronJobList from .v2alpha1_cron_job_spec import V2alpha1CronJobSpec from .v2alpha1_cron_job_status import V2alpha1CronJobStatus -from .v2alpha1_job import V2alpha1Job -from .v2alpha1_job_condition import V2alpha1JobCondition -from .v2alpha1_job_list import V2alpha1JobList -from .v2alpha1_job_spec import V2alpha1JobSpec -from .v2alpha1_job_status import V2alpha1JobStatus +from .v2alpha1_cross_version_object_reference import V2alpha1CrossVersionObjectReference +from .v2alpha1_horizontal_pod_autoscaler import V2alpha1HorizontalPodAutoscaler +from .v2alpha1_horizontal_pod_autoscaler_list import V2alpha1HorizontalPodAutoscalerList +from .v2alpha1_horizontal_pod_autoscaler_spec import V2alpha1HorizontalPodAutoscalerSpec +from .v2alpha1_horizontal_pod_autoscaler_status import V2alpha1HorizontalPodAutoscalerStatus from .v2alpha1_job_template_spec import V2alpha1JobTemplateSpec +from .v2alpha1_metric_spec import V2alpha1MetricSpec +from .v2alpha1_metric_status import V2alpha1MetricStatus +from .v2alpha1_object_metric_source import V2alpha1ObjectMetricSource +from .v2alpha1_object_metric_status import V2alpha1ObjectMetricStatus +from .v2alpha1_pods_metric_source import V2alpha1PodsMetricSource +from .v2alpha1_pods_metric_status import V2alpha1PodsMetricStatus +from .v2alpha1_resource_metric_source import V2alpha1ResourceMetricSource +from .v2alpha1_resource_metric_status import V2alpha1ResourceMetricStatus from .version_info import VersionInfo -from .versioned_event import VersionedEvent diff --git a/kubernetes/client/models/v1beta1_deployment.py b/kubernetes/client/models/apps_v1beta1_deployment.py similarity index 76% rename from kubernetes/client/models/v1beta1_deployment.py rename to kubernetes/client/models/apps_v1beta1_deployment.py index d47cc6ffdd..fd4be29a7f 100644 --- a/kubernetes/client/models/v1beta1_deployment.py +++ b/kubernetes/client/models/apps_v1beta1_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1Deployment(object): +class AppsV1beta1Deployment(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, metadata=None, spec=None, status=None): """ - V1beta1Deployment - a model defined in Swagger + AppsV1beta1Deployment - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -34,8 +34,8 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', - 'spec': 'V1beta1DeploymentSpec', - 'status': 'V1beta1DeploymentStatus' + 'spec': 'AppsV1beta1DeploymentSpec', + 'status': 'AppsV1beta1DeploymentStatus' } self.attribute_map = { @@ -55,10 +55,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1beta1Deployment. + Gets the api_version of this AppsV1beta1Deployment. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this V1beta1Deployment. + :return: The api_version of this AppsV1beta1Deployment. :rtype: str """ return self._api_version @@ -66,10 +66,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1beta1Deployment. + Sets the api_version of this AppsV1beta1Deployment. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this V1beta1Deployment. + :param api_version: The api_version of this AppsV1beta1Deployment. :type: str """ @@ -78,10 +78,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1beta1Deployment. + Gets the kind of this AppsV1beta1Deployment. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this V1beta1Deployment. + :return: The kind of this AppsV1beta1Deployment. :rtype: str """ return self._kind @@ -89,10 +89,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1beta1Deployment. + Sets the kind of this AppsV1beta1Deployment. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1beta1Deployment. + :param kind: The kind of this AppsV1beta1Deployment. :type: str """ @@ -101,10 +101,10 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1beta1Deployment. + Gets the metadata of this AppsV1beta1Deployment. Standard object metadata. - :return: The metadata of this V1beta1Deployment. + :return: The metadata of this AppsV1beta1Deployment. :rtype: V1ObjectMeta """ return self._metadata @@ -112,10 +112,10 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1beta1Deployment. + Sets the metadata of this AppsV1beta1Deployment. Standard object metadata. - :param metadata: The metadata of this V1beta1Deployment. + :param metadata: The metadata of this AppsV1beta1Deployment. :type: V1ObjectMeta """ @@ -124,22 +124,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1beta1Deployment. + Gets the spec of this AppsV1beta1Deployment. Specification of the desired behavior of the Deployment. - :return: The spec of this V1beta1Deployment. - :rtype: V1beta1DeploymentSpec + :return: The spec of this AppsV1beta1Deployment. + :rtype: AppsV1beta1DeploymentSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1beta1Deployment. + Sets the spec of this AppsV1beta1Deployment. Specification of the desired behavior of the Deployment. - :param spec: The spec of this V1beta1Deployment. - :type: V1beta1DeploymentSpec + :param spec: The spec of this AppsV1beta1Deployment. + :type: AppsV1beta1DeploymentSpec """ self._spec = spec @@ -147,22 +147,22 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1beta1Deployment. + Gets the status of this AppsV1beta1Deployment. Most recently observed status of the Deployment. - :return: The status of this V1beta1Deployment. - :rtype: V1beta1DeploymentStatus + :return: The status of this AppsV1beta1Deployment. + :rtype: AppsV1beta1DeploymentStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V1beta1Deployment. + Sets the status of this AppsV1beta1Deployment. Most recently observed status of the Deployment. - :param status: The status of this V1beta1Deployment. - :type: V1beta1DeploymentStatus + :param status: The status of this AppsV1beta1Deployment. + :type: AppsV1beta1DeploymentStatus """ self._status = status diff --git a/kubernetes/client/models/v1beta1_deployment_condition.py b/kubernetes/client/models/apps_v1beta1_deployment_condition.py similarity index 73% rename from kubernetes/client/models/v1beta1_deployment_condition.py rename to kubernetes/client/models/apps_v1beta1_deployment_condition.py index e3987f6cf2..b53cafd117 100644 --- a/kubernetes/client/models/v1beta1_deployment_condition.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1DeploymentCondition(object): +class AppsV1beta1DeploymentCondition(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 + AppsV1beta1DeploymentCondition - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -31,8 +31,8 @@ def __init__(self, last_transition_time=None, last_update_time=None, message=Non and the value is json key in definition. """ self.swagger_types = { - 'last_transition_time': 'UnversionedTime', - 'last_update_time': 'UnversionedTime', + 'last_transition_time': 'V1Time', + 'last_update_time': 'V1Time', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -58,22 +58,22 @@ def __init__(self, last_transition_time=None, last_update_time=None, message=Non @property def last_transition_time(self): """ - Gets the last_transition_time of this V1beta1DeploymentCondition. + Gets the last_transition_time of this AppsV1beta1DeploymentCondition. Last time the condition transitioned from one status to another. - :return: The last_transition_time of this V1beta1DeploymentCondition. - :rtype: UnversionedTime + :return: The last_transition_time of this AppsV1beta1DeploymentCondition. + :rtype: V1Time """ 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. + Sets the last_transition_time of this AppsV1beta1DeploymentCondition. Last time the condition transitioned from one status to another. - :param last_transition_time: The last_transition_time of this V1beta1DeploymentCondition. - :type: UnversionedTime + :param last_transition_time: The last_transition_time of this AppsV1beta1DeploymentCondition. + :type: V1Time """ self._last_transition_time = last_transition_time @@ -81,22 +81,22 @@ def last_transition_time(self, last_transition_time): @property def last_update_time(self): """ - Gets the last_update_time of this V1beta1DeploymentCondition. + Gets the last_update_time of this AppsV1beta1DeploymentCondition. The last time this condition was updated. - :return: The last_update_time of this V1beta1DeploymentCondition. - :rtype: UnversionedTime + :return: The last_update_time of this AppsV1beta1DeploymentCondition. + :rtype: V1Time """ 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. + Sets the last_update_time of this AppsV1beta1DeploymentCondition. The last time this condition was updated. - :param last_update_time: The last_update_time of this V1beta1DeploymentCondition. - :type: UnversionedTime + :param last_update_time: The last_update_time of this AppsV1beta1DeploymentCondition. + :type: V1Time """ self._last_update_time = last_update_time @@ -104,10 +104,10 @@ def last_update_time(self, last_update_time): @property def message(self): """ - Gets the message of this V1beta1DeploymentCondition. + Gets the message of this AppsV1beta1DeploymentCondition. A human readable message indicating details about the transition. - :return: The message of this V1beta1DeploymentCondition. + :return: The message of this AppsV1beta1DeploymentCondition. :rtype: str """ return self._message @@ -115,10 +115,10 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this V1beta1DeploymentCondition. + Sets the message of this AppsV1beta1DeploymentCondition. A human readable message indicating details about the transition. - :param message: The message of this V1beta1DeploymentCondition. + :param message: The message of this AppsV1beta1DeploymentCondition. :type: str """ @@ -127,10 +127,10 @@ def message(self, message): @property def reason(self): """ - Gets the reason of this V1beta1DeploymentCondition. + Gets the reason of this AppsV1beta1DeploymentCondition. The reason for the condition's last transition. - :return: The reason of this V1beta1DeploymentCondition. + :return: The reason of this AppsV1beta1DeploymentCondition. :rtype: str """ return self._reason @@ -138,10 +138,10 @@ def reason(self): @reason.setter def reason(self, reason): """ - Sets the reason of this V1beta1DeploymentCondition. + Sets the reason of this AppsV1beta1DeploymentCondition. The reason for the condition's last transition. - :param reason: The reason of this V1beta1DeploymentCondition. + :param reason: The reason of this AppsV1beta1DeploymentCondition. :type: str """ @@ -150,10 +150,10 @@ def reason(self, reason): @property def status(self): """ - Gets the status of this V1beta1DeploymentCondition. + Gets the status of this AppsV1beta1DeploymentCondition. Status of the condition, one of True, False, Unknown. - :return: The status of this V1beta1DeploymentCondition. + :return: The status of this AppsV1beta1DeploymentCondition. :rtype: str """ return self._status @@ -161,10 +161,10 @@ def status(self): @status.setter def status(self, status): """ - Sets the status of this V1beta1DeploymentCondition. + Sets the status of this AppsV1beta1DeploymentCondition. Status of the condition, one of True, False, Unknown. - :param status: The status of this V1beta1DeploymentCondition. + :param status: The status of this AppsV1beta1DeploymentCondition. :type: str """ if status is None: @@ -175,10 +175,10 @@ def status(self, status): @property def type(self): """ - Gets the type of this V1beta1DeploymentCondition. + Gets the type of this AppsV1beta1DeploymentCondition. Type of deployment condition. - :return: The type of this V1beta1DeploymentCondition. + :return: The type of this AppsV1beta1DeploymentCondition. :rtype: str """ return self._type @@ -186,10 +186,10 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this V1beta1DeploymentCondition. + Sets the type of this AppsV1beta1DeploymentCondition. Type of deployment condition. - :param type: The type of this V1beta1DeploymentCondition. + :param type: The type of this AppsV1beta1DeploymentCondition. :type: str """ if type is None: diff --git a/kubernetes/client/models/v1beta1_deployment_list.py b/kubernetes/client/models/apps_v1beta1_deployment_list.py similarity index 77% rename from kubernetes/client/models/v1beta1_deployment_list.py rename to kubernetes/client/models/apps_v1beta1_deployment_list.py index 5a8dc03838..57ce2e073c 100644 --- a/kubernetes/client/models/v1beta1_deployment_list.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1DeploymentList(object): +class AppsV1beta1DeploymentList(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, items=None, kind=None, metadata=None): """ - V1beta1DeploymentList - a model defined in Swagger + AppsV1beta1DeploymentList - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -32,9 +32,9 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ self.swagger_types = { 'api_version': 'str', - 'items': 'list[V1beta1Deployment]', + 'items': 'list[AppsV1beta1Deployment]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -52,10 +52,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1beta1DeploymentList. + Gets the api_version of this AppsV1beta1DeploymentList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this V1beta1DeploymentList. + :return: The api_version of this AppsV1beta1DeploymentList. :rtype: str """ return self._api_version @@ -63,10 +63,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1beta1DeploymentList. + Sets the api_version of this AppsV1beta1DeploymentList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this V1beta1DeploymentList. + :param api_version: The api_version of this AppsV1beta1DeploymentList. :type: str """ @@ -75,22 +75,22 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1beta1DeploymentList. + Gets the items of this AppsV1beta1DeploymentList. Items is the list of Deployments. - :return: The items of this V1beta1DeploymentList. - :rtype: list[V1beta1Deployment] + :return: The items of this AppsV1beta1DeploymentList. + :rtype: list[AppsV1beta1Deployment] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1beta1DeploymentList. + Sets the items of this AppsV1beta1DeploymentList. Items is the list of Deployments. - :param items: The items of this V1beta1DeploymentList. - :type: list[V1beta1Deployment] + :param items: The items of this AppsV1beta1DeploymentList. + :type: list[AppsV1beta1Deployment] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -100,10 +100,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1beta1DeploymentList. + Gets the kind of this AppsV1beta1DeploymentList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this V1beta1DeploymentList. + :return: The kind of this AppsV1beta1DeploymentList. :rtype: str """ return self._kind @@ -111,10 +111,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1beta1DeploymentList. + Sets the kind of this AppsV1beta1DeploymentList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1beta1DeploymentList. + :param kind: The kind of this AppsV1beta1DeploymentList. :type: str """ @@ -123,22 +123,22 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1beta1DeploymentList. + Gets the metadata of this AppsV1beta1DeploymentList. Standard list metadata. - :return: The metadata of this V1beta1DeploymentList. - :rtype: UnversionedListMeta + :return: The metadata of this AppsV1beta1DeploymentList. + :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1beta1DeploymentList. + Sets the metadata of this AppsV1beta1DeploymentList. Standard list metadata. - :param metadata: The metadata of this V1beta1DeploymentList. - :type: UnversionedListMeta + :param metadata: The metadata of this AppsV1beta1DeploymentList. + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_deployment_rollback.py b/kubernetes/client/models/apps_v1beta1_deployment_rollback.py similarity index 78% rename from kubernetes/client/models/v1beta1_deployment_rollback.py rename to kubernetes/client/models/apps_v1beta1_deployment_rollback.py index 6a9d46dd55..ff3e375fe7 100644 --- a/kubernetes/client/models/v1beta1_deployment_rollback.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_rollback.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1DeploymentRollback(object): +class AppsV1beta1DeploymentRollback(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, rollback_to=None, updated_annotations=None): """ - V1beta1DeploymentRollback - a model defined in Swagger + AppsV1beta1DeploymentRollback - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -34,7 +34,7 @@ def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, upd 'api_version': 'str', 'kind': 'str', 'name': 'str', - 'rollback_to': 'V1beta1RollbackConfig', + 'rollback_to': 'AppsV1beta1RollbackConfig', 'updated_annotations': 'dict(str, str)' } @@ -55,10 +55,10 @@ def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, upd @property def api_version(self): """ - Gets the api_version of this V1beta1DeploymentRollback. + Gets the api_version of this AppsV1beta1DeploymentRollback. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this V1beta1DeploymentRollback. + :return: The api_version of this AppsV1beta1DeploymentRollback. :rtype: str """ return self._api_version @@ -66,10 +66,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1beta1DeploymentRollback. + Sets the api_version of this AppsV1beta1DeploymentRollback. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this V1beta1DeploymentRollback. + :param api_version: The api_version of this AppsV1beta1DeploymentRollback. :type: str """ @@ -78,10 +78,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1beta1DeploymentRollback. + Gets the kind of this AppsV1beta1DeploymentRollback. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this V1beta1DeploymentRollback. + :return: The kind of this AppsV1beta1DeploymentRollback. :rtype: str """ return self._kind @@ -89,10 +89,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1beta1DeploymentRollback. + Sets the kind of this AppsV1beta1DeploymentRollback. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1beta1DeploymentRollback. + :param kind: The kind of this AppsV1beta1DeploymentRollback. :type: str """ @@ -101,10 +101,10 @@ def kind(self, kind): @property def name(self): """ - Gets the name of this V1beta1DeploymentRollback. + Gets the name of this AppsV1beta1DeploymentRollback. Required: This must match the Name of a deployment. - :return: The name of this V1beta1DeploymentRollback. + :return: The name of this AppsV1beta1DeploymentRollback. :rtype: str """ return self._name @@ -112,10 +112,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1beta1DeploymentRollback. + Sets the name of this AppsV1beta1DeploymentRollback. Required: This must match the Name of a deployment. - :param name: The name of this V1beta1DeploymentRollback. + :param name: The name of this AppsV1beta1DeploymentRollback. :type: str """ if name is None: @@ -126,22 +126,22 @@ def name(self, name): @property def rollback_to(self): """ - Gets the rollback_to of this V1beta1DeploymentRollback. + Gets the rollback_to of this AppsV1beta1DeploymentRollback. The config of this deployment rollback. - :return: The rollback_to of this V1beta1DeploymentRollback. - :rtype: V1beta1RollbackConfig + :return: The rollback_to of this AppsV1beta1DeploymentRollback. + :rtype: AppsV1beta1RollbackConfig """ return self._rollback_to @rollback_to.setter def rollback_to(self, rollback_to): """ - Sets the rollback_to of this V1beta1DeploymentRollback. + Sets the rollback_to of this AppsV1beta1DeploymentRollback. The config of this deployment rollback. - :param rollback_to: The rollback_to of this V1beta1DeploymentRollback. - :type: V1beta1RollbackConfig + :param rollback_to: The rollback_to of this AppsV1beta1DeploymentRollback. + :type: AppsV1beta1RollbackConfig """ if rollback_to is None: raise ValueError("Invalid value for `rollback_to`, must not be `None`") @@ -151,10 +151,10 @@ def rollback_to(self, rollback_to): @property def updated_annotations(self): """ - Gets the updated_annotations of this V1beta1DeploymentRollback. + Gets the updated_annotations of this AppsV1beta1DeploymentRollback. The annotations to be updated to a deployment - :return: The updated_annotations of this V1beta1DeploymentRollback. + :return: The updated_annotations of this AppsV1beta1DeploymentRollback. :rtype: dict(str, str) """ return self._updated_annotations @@ -162,10 +162,10 @@ def updated_annotations(self): @updated_annotations.setter def updated_annotations(self, updated_annotations): """ - Sets the updated_annotations of this V1beta1DeploymentRollback. + Sets the updated_annotations of this AppsV1beta1DeploymentRollback. The annotations to be updated to a deployment - :param updated_annotations: The updated_annotations of this V1beta1DeploymentRollback. + :param updated_annotations: The updated_annotations of this AppsV1beta1DeploymentRollback. :type: dict(str, str) """ diff --git a/kubernetes/client/models/apps_v1beta1_deployment_spec.py b/kubernetes/client/models/apps_v1beta1_deployment_spec.py new file mode 100644 index 0000000000..175f56a414 --- /dev/null +++ b/kubernetes/client/models/apps_v1beta1_deployment_spec.py @@ -0,0 +1,324 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AppsV1beta1DeploymentSpec(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): + """ + AppsV1beta1DeploymentSpec - 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': 'AppsV1beta1RollbackConfig', + 'selector': 'V1LabelSelector', + 'strategy': 'AppsV1beta1DeploymentStrategy', + '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 AppsV1beta1DeploymentSpec. + 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 AppsV1beta1DeploymentSpec. + :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 AppsV1beta1DeploymentSpec. + 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 AppsV1beta1DeploymentSpec. + :type: int + """ + + self._min_ready_seconds = min_ready_seconds + + @property + def paused(self): + """ + Gets the paused of this AppsV1beta1DeploymentSpec. + Indicates that the deployment is paused. + + :return: The paused of this AppsV1beta1DeploymentSpec. + :rtype: bool + """ + return self._paused + + @paused.setter + def paused(self, paused): + """ + Sets the paused of this AppsV1beta1DeploymentSpec. + Indicates that the deployment is paused. + + :param paused: The paused of this AppsV1beta1DeploymentSpec. + :type: bool + """ + + self._paused = paused + + @property + def progress_deadline_seconds(self): + """ + Gets the progress_deadline_seconds of this AppsV1beta1DeploymentSpec. + 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. Defaults to 600s. + + :return: The progress_deadline_seconds of this AppsV1beta1DeploymentSpec. + :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 AppsV1beta1DeploymentSpec. + 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. Defaults to 600s. + + :param progress_deadline_seconds: The progress_deadline_seconds of this AppsV1beta1DeploymentSpec. + :type: int + """ + + self._progress_deadline_seconds = progress_deadline_seconds + + @property + def replicas(self): + """ + Gets the replicas of this AppsV1beta1DeploymentSpec. + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + + :return: The replicas of this AppsV1beta1DeploymentSpec. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this AppsV1beta1DeploymentSpec. + 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 AppsV1beta1DeploymentSpec. + :type: int + """ + + self._replicas = replicas + + @property + def revision_history_limit(self): + """ + Gets the revision_history_limit of this AppsV1beta1DeploymentSpec. + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. + + :return: The revision_history_limit of this AppsV1beta1DeploymentSpec. + :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 AppsV1beta1DeploymentSpec. + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. + + :param revision_history_limit: The revision_history_limit of this AppsV1beta1DeploymentSpec. + :type: int + """ + + self._revision_history_limit = revision_history_limit + + @property + def rollback_to(self): + """ + Gets the rollback_to of this AppsV1beta1DeploymentSpec. + The config this deployment is rolling back to. Will be cleared after rollback is done. + + :return: The rollback_to of this AppsV1beta1DeploymentSpec. + :rtype: AppsV1beta1RollbackConfig + """ + return self._rollback_to + + @rollback_to.setter + def rollback_to(self, rollback_to): + """ + Sets the rollback_to of this AppsV1beta1DeploymentSpec. + The config this deployment is rolling back to. Will be cleared after rollback is done. + + :param rollback_to: The rollback_to of this AppsV1beta1DeploymentSpec. + :type: AppsV1beta1RollbackConfig + """ + + self._rollback_to = rollback_to + + @property + def selector(self): + """ + Gets the selector of this AppsV1beta1DeploymentSpec. + 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 AppsV1beta1DeploymentSpec. + :rtype: V1LabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this AppsV1beta1DeploymentSpec. + 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 AppsV1beta1DeploymentSpec. + :type: V1LabelSelector + """ + + self._selector = selector + + @property + def strategy(self): + """ + Gets the strategy of this AppsV1beta1DeploymentSpec. + The deployment strategy to use to replace existing pods with new ones. + + :return: The strategy of this AppsV1beta1DeploymentSpec. + :rtype: AppsV1beta1DeploymentStrategy + """ + return self._strategy + + @strategy.setter + def strategy(self, strategy): + """ + Sets the strategy of this AppsV1beta1DeploymentSpec. + The deployment strategy to use to replace existing pods with new ones. + + :param strategy: The strategy of this AppsV1beta1DeploymentSpec. + :type: AppsV1beta1DeploymentStrategy + """ + + self._strategy = strategy + + @property + def template(self): + """ + Gets the template of this AppsV1beta1DeploymentSpec. + Template describes the pods that will be created. + + :return: The template of this AppsV1beta1DeploymentSpec. + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this AppsV1beta1DeploymentSpec. + Template describes the pods that will be created. + + :param template: The template of this AppsV1beta1DeploymentSpec. + :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/kubernetes/client/models/v1beta1_deployment_status.py b/kubernetes/client/models/apps_v1beta1_deployment_status.py similarity index 68% rename from kubernetes/client/models/v1beta1_deployment_status.py rename to kubernetes/client/models/apps_v1beta1_deployment_status.py index 49158739d6..ec16b378b9 100644 --- a/kubernetes/client/models/v1beta1_deployment_status.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1DeploymentStatus(object): +class AppsV1beta1DeploymentStatus(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): + def __init__(self, available_replicas=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): """ - V1beta1DeploymentStatus - a model defined in Swagger + AppsV1beta1DeploymentStatus - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -32,8 +32,9 @@ def __init__(self, available_replicas=None, conditions=None, observed_generation """ self.swagger_types = { 'available_replicas': 'int', - 'conditions': 'list[V1beta1DeploymentCondition]', + 'conditions': 'list[AppsV1beta1DeploymentCondition]', 'observed_generation': 'int', + 'ready_replicas': 'int', 'replicas': 'int', 'unavailable_replicas': 'int', 'updated_replicas': 'int' @@ -43,6 +44,7 @@ def __init__(self, available_replicas=None, conditions=None, observed_generation 'available_replicas': 'availableReplicas', 'conditions': 'conditions', 'observed_generation': 'observedGeneration', + 'ready_replicas': 'readyReplicas', 'replicas': 'replicas', 'unavailable_replicas': 'unavailableReplicas', 'updated_replicas': 'updatedReplicas' @@ -51,6 +53,7 @@ def __init__(self, available_replicas=None, conditions=None, observed_generation self._available_replicas = available_replicas self._conditions = conditions self._observed_generation = observed_generation + self._ready_replicas = ready_replicas self._replicas = replicas self._unavailable_replicas = unavailable_replicas self._updated_replicas = updated_replicas @@ -58,10 +61,10 @@ def __init__(self, available_replicas=None, conditions=None, observed_generation @property def available_replicas(self): """ - Gets the available_replicas of this V1beta1DeploymentStatus. + Gets the available_replicas of this AppsV1beta1DeploymentStatus. Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - :return: The available_replicas of this V1beta1DeploymentStatus. + :return: The available_replicas of this AppsV1beta1DeploymentStatus. :rtype: int """ return self._available_replicas @@ -69,10 +72,10 @@ def available_replicas(self): @available_replicas.setter def available_replicas(self, available_replicas): """ - Sets the available_replicas of this V1beta1DeploymentStatus. + Sets the available_replicas of this AppsV1beta1DeploymentStatus. Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - :param available_replicas: The available_replicas of this V1beta1DeploymentStatus. + :param available_replicas: The available_replicas of this AppsV1beta1DeploymentStatus. :type: int """ @@ -81,22 +84,22 @@ def available_replicas(self, available_replicas): @property def conditions(self): """ - Gets the conditions of this V1beta1DeploymentStatus. + Gets the conditions of this AppsV1beta1DeploymentStatus. Represents the latest available observations of a deployment's current state. - :return: The conditions of this V1beta1DeploymentStatus. - :rtype: list[V1beta1DeploymentCondition] + :return: The conditions of this AppsV1beta1DeploymentStatus. + :rtype: list[AppsV1beta1DeploymentCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): """ - Sets the conditions of this V1beta1DeploymentStatus. + Sets the conditions of this AppsV1beta1DeploymentStatus. Represents the latest available observations of a deployment's current state. - :param conditions: The conditions of this V1beta1DeploymentStatus. - :type: list[V1beta1DeploymentCondition] + :param conditions: The conditions of this AppsV1beta1DeploymentStatus. + :type: list[AppsV1beta1DeploymentCondition] """ self._conditions = conditions @@ -104,10 +107,10 @@ def conditions(self, conditions): @property def observed_generation(self): """ - Gets the observed_generation of this V1beta1DeploymentStatus. + Gets the observed_generation of this AppsV1beta1DeploymentStatus. The generation observed by the deployment controller. - :return: The observed_generation of this V1beta1DeploymentStatus. + :return: The observed_generation of this AppsV1beta1DeploymentStatus. :rtype: int """ return self._observed_generation @@ -115,22 +118,45 @@ def observed_generation(self): @observed_generation.setter def observed_generation(self, observed_generation): """ - Sets the observed_generation of this V1beta1DeploymentStatus. + Sets the observed_generation of this AppsV1beta1DeploymentStatus. The generation observed by the deployment controller. - :param observed_generation: The observed_generation of this V1beta1DeploymentStatus. + :param observed_generation: The observed_generation of this AppsV1beta1DeploymentStatus. :type: int """ self._observed_generation = observed_generation + @property + def ready_replicas(self): + """ + Gets the ready_replicas of this AppsV1beta1DeploymentStatus. + Total number of ready pods targeted by this deployment. + + :return: The ready_replicas of this AppsV1beta1DeploymentStatus. + :rtype: int + """ + return self._ready_replicas + + @ready_replicas.setter + def ready_replicas(self, ready_replicas): + """ + Sets the ready_replicas of this AppsV1beta1DeploymentStatus. + Total number of ready pods targeted by this deployment. + + :param ready_replicas: The ready_replicas of this AppsV1beta1DeploymentStatus. + :type: int + """ + + self._ready_replicas = ready_replicas + @property def replicas(self): """ - Gets the replicas of this V1beta1DeploymentStatus. + Gets the replicas of this AppsV1beta1DeploymentStatus. Total number of non-terminated pods targeted by this deployment (their labels match the selector). - :return: The replicas of this V1beta1DeploymentStatus. + :return: The replicas of this AppsV1beta1DeploymentStatus. :rtype: int """ return self._replicas @@ -138,10 +164,10 @@ def replicas(self): @replicas.setter def replicas(self, replicas): """ - Sets the replicas of this V1beta1DeploymentStatus. + Sets the replicas of this AppsV1beta1DeploymentStatus. Total number of non-terminated pods targeted by this deployment (their labels match the selector). - :param replicas: The replicas of this V1beta1DeploymentStatus. + :param replicas: The replicas of this AppsV1beta1DeploymentStatus. :type: int """ @@ -150,10 +176,10 @@ def replicas(self, replicas): @property def unavailable_replicas(self): """ - Gets the unavailable_replicas of this V1beta1DeploymentStatus. + Gets the unavailable_replicas of this AppsV1beta1DeploymentStatus. Total number of unavailable pods targeted by this deployment. - :return: The unavailable_replicas of this V1beta1DeploymentStatus. + :return: The unavailable_replicas of this AppsV1beta1DeploymentStatus. :rtype: int """ return self._unavailable_replicas @@ -161,10 +187,10 @@ def unavailable_replicas(self): @unavailable_replicas.setter def unavailable_replicas(self, unavailable_replicas): """ - Sets the unavailable_replicas of this V1beta1DeploymentStatus. + Sets the unavailable_replicas of this AppsV1beta1DeploymentStatus. Total number of unavailable pods targeted by this deployment. - :param unavailable_replicas: The unavailable_replicas of this V1beta1DeploymentStatus. + :param unavailable_replicas: The unavailable_replicas of this AppsV1beta1DeploymentStatus. :type: int """ @@ -173,10 +199,10 @@ def unavailable_replicas(self, unavailable_replicas): @property def updated_replicas(self): """ - Gets the updated_replicas of this V1beta1DeploymentStatus. + Gets the updated_replicas of this AppsV1beta1DeploymentStatus. Total number of non-terminated pods targeted by this deployment that have the desired template spec. - :return: The updated_replicas of this V1beta1DeploymentStatus. + :return: The updated_replicas of this AppsV1beta1DeploymentStatus. :rtype: int """ return self._updated_replicas @@ -184,10 +210,10 @@ def updated_replicas(self): @updated_replicas.setter def updated_replicas(self, updated_replicas): """ - Sets the updated_replicas of this V1beta1DeploymentStatus. + Sets the updated_replicas of this AppsV1beta1DeploymentStatus. 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. + :param updated_replicas: The updated_replicas of this AppsV1beta1DeploymentStatus. :type: int """ diff --git a/kubernetes/client/models/v1beta1_deployment_strategy.py b/kubernetes/client/models/apps_v1beta1_deployment_strategy.py similarity index 78% rename from kubernetes/client/models/v1beta1_deployment_strategy.py rename to kubernetes/client/models/apps_v1beta1_deployment_strategy.py index 6e551ad82c..1e7b0b60a8 100644 --- a/kubernetes/client/models/v1beta1_deployment_strategy.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1DeploymentStrategy(object): +class AppsV1beta1DeploymentStrategy(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 + AppsV1beta1DeploymentStrategy - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -31,7 +31,7 @@ def __init__(self, rolling_update=None, type=None): and the value is json key in definition. """ self.swagger_types = { - 'rolling_update': 'V1beta1RollingUpdateDeployment', + 'rolling_update': 'AppsV1beta1RollingUpdateDeployment', 'type': 'str' } @@ -46,22 +46,22 @@ def __init__(self, rolling_update=None, type=None): @property def rolling_update(self): """ - Gets the rolling_update of this V1beta1DeploymentStrategy. + Gets the rolling_update of this AppsV1beta1DeploymentStrategy. Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - :return: The rolling_update of this V1beta1DeploymentStrategy. - :rtype: V1beta1RollingUpdateDeployment + :return: The rolling_update of this AppsV1beta1DeploymentStrategy. + :rtype: AppsV1beta1RollingUpdateDeployment """ return self._rolling_update @rolling_update.setter def rolling_update(self, rolling_update): """ - Sets the rolling_update of this V1beta1DeploymentStrategy. + Sets the rolling_update of this AppsV1beta1DeploymentStrategy. Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - :param rolling_update: The rolling_update of this V1beta1DeploymentStrategy. - :type: V1beta1RollingUpdateDeployment + :param rolling_update: The rolling_update of this AppsV1beta1DeploymentStrategy. + :type: AppsV1beta1RollingUpdateDeployment """ self._rolling_update = rolling_update @@ -69,10 +69,10 @@ def rolling_update(self, rolling_update): @property def type(self): """ - Gets the type of this V1beta1DeploymentStrategy. + Gets the type of this AppsV1beta1DeploymentStrategy. Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. - :return: The type of this V1beta1DeploymentStrategy. + :return: The type of this AppsV1beta1DeploymentStrategy. :rtype: str """ return self._type @@ -80,10 +80,10 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this V1beta1DeploymentStrategy. + Sets the type of this AppsV1beta1DeploymentStrategy. Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. - :param type: The type of this V1beta1DeploymentStrategy. + :param type: The type of this AppsV1beta1DeploymentStrategy. :type: str """ diff --git a/kubernetes/client/models/v1beta1_rollback_config.py b/kubernetes/client/models/apps_v1beta1_rollback_config.py similarity index 87% rename from kubernetes/client/models/v1beta1_rollback_config.py rename to kubernetes/client/models/apps_v1beta1_rollback_config.py index 359472035c..eae1a13370 100644 --- a/kubernetes/client/models/v1beta1_rollback_config.py +++ b/kubernetes/client/models/apps_v1beta1_rollback_config.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1RollbackConfig(object): +class AppsV1beta1RollbackConfig(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 + AppsV1beta1RollbackConfig - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -43,10 +43,10 @@ def __init__(self, revision=None): @property def revision(self): """ - Gets the revision of this V1beta1RollbackConfig. + Gets the revision of this AppsV1beta1RollbackConfig. The revision to rollback to. If set to 0, rollbck to the last revision. - :return: The revision of this V1beta1RollbackConfig. + :return: The revision of this AppsV1beta1RollbackConfig. :rtype: int """ return self._revision @@ -54,10 +54,10 @@ def revision(self): @revision.setter def revision(self, revision): """ - Sets the revision of this V1beta1RollbackConfig. + Sets the revision of this AppsV1beta1RollbackConfig. The revision to rollback to. If set to 0, rollbck to the last revision. - :param revision: The revision of this V1beta1RollbackConfig. + :param revision: The revision of this AppsV1beta1RollbackConfig. :type: int """ diff --git a/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py b/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py new file mode 100644 index 0000000000..9c45ba426f --- /dev/null +++ b/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AppsV1beta1RollingUpdateDeployment(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): + """ + AppsV1beta1RollingUpdateDeployment - 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 AppsV1beta1RollingUpdateDeployment. + 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. Defaults to 25%. 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 AppsV1beta1RollingUpdateDeployment. + :rtype: IntstrIntOrString + """ + return self._max_surge + + @max_surge.setter + def max_surge(self, max_surge): + """ + Sets the max_surge of this AppsV1beta1RollingUpdateDeployment. + 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. Defaults to 25%. 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 AppsV1beta1RollingUpdateDeployment. + :type: IntstrIntOrString + """ + + self._max_surge = max_surge + + @property + def max_unavailable(self): + """ + Gets the max_unavailable of this AppsV1beta1RollingUpdateDeployment. + 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 down. This can not be 0 if MaxSurge is 0. Defaults to 25%. 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 AppsV1beta1RollingUpdateDeployment. + :rtype: IntstrIntOrString + """ + return self._max_unavailable + + @max_unavailable.setter + def max_unavailable(self, max_unavailable): + """ + Sets the max_unavailable of this AppsV1beta1RollingUpdateDeployment. + 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 down. This can not be 0 if MaxSurge is 0. Defaults to 25%. 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 AppsV1beta1RollingUpdateDeployment. + :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/kubernetes/client/models/v1beta1_scale.py b/kubernetes/client/models/apps_v1beta1_scale.py similarity index 79% rename from kubernetes/client/models/v1beta1_scale.py rename to kubernetes/client/models/apps_v1beta1_scale.py index 57f00ac181..6069197cd4 100644 --- a/kubernetes/client/models/v1beta1_scale.py +++ b/kubernetes/client/models/apps_v1beta1_scale.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1Scale(object): +class AppsV1beta1Scale(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, metadata=None, spec=None, status=None): """ - V1beta1Scale - a model defined in Swagger + AppsV1beta1Scale - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -34,8 +34,8 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', - 'spec': 'V1beta1ScaleSpec', - 'status': 'V1beta1ScaleStatus' + 'spec': 'AppsV1beta1ScaleSpec', + 'status': 'AppsV1beta1ScaleStatus' } self.attribute_map = { @@ -55,10 +55,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1beta1Scale. + Gets the api_version of this AppsV1beta1Scale. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this V1beta1Scale. + :return: The api_version of this AppsV1beta1Scale. :rtype: str """ return self._api_version @@ -66,10 +66,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1beta1Scale. + Sets the api_version of this AppsV1beta1Scale. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this V1beta1Scale. + :param api_version: The api_version of this AppsV1beta1Scale. :type: str """ @@ -78,10 +78,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1beta1Scale. + Gets the kind of this AppsV1beta1Scale. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this V1beta1Scale. + :return: The kind of this AppsV1beta1Scale. :rtype: str """ return self._kind @@ -89,10 +89,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1beta1Scale. + Sets the kind of this AppsV1beta1Scale. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1beta1Scale. + :param kind: The kind of this AppsV1beta1Scale. :type: str """ @@ -101,10 +101,10 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1beta1Scale. + Gets the metadata of this AppsV1beta1Scale. Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. - :return: The metadata of this V1beta1Scale. + :return: The metadata of this AppsV1beta1Scale. :rtype: V1ObjectMeta """ return self._metadata @@ -112,10 +112,10 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1beta1Scale. + Sets the metadata of this AppsV1beta1Scale. Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. - :param metadata: The metadata of this V1beta1Scale. + :param metadata: The metadata of this AppsV1beta1Scale. :type: V1ObjectMeta """ @@ -124,22 +124,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1beta1Scale. + Gets the spec of this AppsV1beta1Scale. 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: The spec of this AppsV1beta1Scale. + :rtype: AppsV1beta1ScaleSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1beta1Scale. + Sets the spec of this AppsV1beta1Scale. 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 + :param spec: The spec of this AppsV1beta1Scale. + :type: AppsV1beta1ScaleSpec """ self._spec = spec @@ -147,22 +147,22 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1beta1Scale. + Gets the status of this AppsV1beta1Scale. 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: The status of this AppsV1beta1Scale. + :rtype: AppsV1beta1ScaleStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V1beta1Scale. + Sets the status of this AppsV1beta1Scale. 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 + :param status: The status of this AppsV1beta1Scale. + :type: AppsV1beta1ScaleStatus """ self._status = status diff --git a/kubernetes/client/models/v1beta1_scale_spec.py b/kubernetes/client/models/apps_v1beta1_scale_spec.py similarity index 87% rename from kubernetes/client/models/v1beta1_scale_spec.py rename to kubernetes/client/models/apps_v1beta1_scale_spec.py index 835219840d..4038598f5e 100644 --- a/kubernetes/client/models/v1beta1_scale_spec.py +++ b/kubernetes/client/models/apps_v1beta1_scale_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1ScaleSpec(object): +class AppsV1beta1ScaleSpec(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 + AppsV1beta1ScaleSpec - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -43,10 +43,10 @@ def __init__(self, replicas=None): @property def replicas(self): """ - Gets the replicas of this V1beta1ScaleSpec. + Gets the replicas of this AppsV1beta1ScaleSpec. desired number of instances for the scaled object. - :return: The replicas of this V1beta1ScaleSpec. + :return: The replicas of this AppsV1beta1ScaleSpec. :rtype: int """ return self._replicas @@ -54,10 +54,10 @@ def replicas(self): @replicas.setter def replicas(self, replicas): """ - Sets the replicas of this V1beta1ScaleSpec. + Sets the replicas of this AppsV1beta1ScaleSpec. desired number of instances for the scaled object. - :param replicas: The replicas of this V1beta1ScaleSpec. + :param replicas: The replicas of this AppsV1beta1ScaleSpec. :type: int """ diff --git a/kubernetes/client/models/v1beta1_scale_status.py b/kubernetes/client/models/apps_v1beta1_scale_status.py similarity index 84% rename from kubernetes/client/models/v1beta1_scale_status.py rename to kubernetes/client/models/apps_v1beta1_scale_status.py index ed7f1c5038..c048a85947 100644 --- a/kubernetes/client/models/v1beta1_scale_status.py +++ b/kubernetes/client/models/apps_v1beta1_scale_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1ScaleStatus(object): +class AppsV1beta1ScaleStatus(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 + AppsV1beta1ScaleStatus - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -49,10 +49,10 @@ def __init__(self, replicas=None, selector=None, target_selector=None): @property def replicas(self): """ - Gets the replicas of this V1beta1ScaleStatus. + Gets the replicas of this AppsV1beta1ScaleStatus. actual number of observed instances of the scaled object. - :return: The replicas of this V1beta1ScaleStatus. + :return: The replicas of this AppsV1beta1ScaleStatus. :rtype: int """ return self._replicas @@ -60,10 +60,10 @@ def replicas(self): @replicas.setter def replicas(self, replicas): """ - Sets the replicas of this V1beta1ScaleStatus. + Sets the replicas of this AppsV1beta1ScaleStatus. actual number of observed instances of the scaled object. - :param replicas: The replicas of this V1beta1ScaleStatus. + :param replicas: The replicas of this AppsV1beta1ScaleStatus. :type: int """ if replicas is None: @@ -74,10 +74,10 @@ def replicas(self, replicas): @property def selector(self): """ - Gets the selector of this V1beta1ScaleStatus. + Gets the selector of this AppsV1beta1ScaleStatus. 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. + :return: The selector of this AppsV1beta1ScaleStatus. :rtype: dict(str, str) """ return self._selector @@ -85,10 +85,10 @@ def selector(self): @selector.setter def selector(self, selector): """ - Sets the selector of this V1beta1ScaleStatus. + Sets the selector of this AppsV1beta1ScaleStatus. 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. + :param selector: The selector of this AppsV1beta1ScaleStatus. :type: dict(str, str) """ @@ -97,10 +97,10 @@ def selector(self, selector): @property def target_selector(self): """ - Gets the target_selector of this V1beta1ScaleStatus. + Gets the target_selector of this AppsV1beta1ScaleStatus. 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. + :return: The target_selector of this AppsV1beta1ScaleStatus. :rtype: str """ return self._target_selector @@ -108,10 +108,10 @@ def target_selector(self): @target_selector.setter def target_selector(self, target_selector): """ - Sets the target_selector of this V1beta1ScaleStatus. + Sets the target_selector of this AppsV1beta1ScaleStatus. 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. + :param target_selector: The target_selector of this AppsV1beta1ScaleStatus. :type: str """ diff --git a/kubernetes/client/models/v1beta1_job.py b/kubernetes/client/models/extensions_v1beta1_deployment.py similarity index 69% rename from kubernetes/client/models/v1beta1_job.py rename to kubernetes/client/models/extensions_v1beta1_deployment.py index dd03d5ce84..143c4147a9 100644 --- a/kubernetes/client/models/v1beta1_job.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1Job(object): +class ExtensionsV1beta1Deployment(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, metadata=None, spec=None, status=None): """ - V1beta1Job - a model defined in Swagger + ExtensionsV1beta1Deployment - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -34,8 +34,8 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', - 'spec': 'V1beta1JobSpec', - 'status': 'V1beta1JobStatus' + 'spec': 'ExtensionsV1beta1DeploymentSpec', + 'status': 'ExtensionsV1beta1DeploymentStatus' } self.attribute_map = { @@ -55,10 +55,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1beta1Job. + Gets the api_version of this ExtensionsV1beta1Deployment. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this V1beta1Job. + :return: The api_version of this ExtensionsV1beta1Deployment. :rtype: str """ return self._api_version @@ -66,10 +66,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1beta1Job. + Sets the api_version of this ExtensionsV1beta1Deployment. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this V1beta1Job. + :param api_version: The api_version of this ExtensionsV1beta1Deployment. :type: str """ @@ -78,10 +78,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1beta1Job. + Gets the kind of this ExtensionsV1beta1Deployment. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this V1beta1Job. + :return: The kind of this ExtensionsV1beta1Deployment. :rtype: str """ return self._kind @@ -89,10 +89,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1beta1Job. + Sets the kind of this ExtensionsV1beta1Deployment. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1beta1Job. + :param kind: The kind of this ExtensionsV1beta1Deployment. :type: str """ @@ -101,10 +101,10 @@ def kind(self, kind): @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 + Gets the metadata of this ExtensionsV1beta1Deployment. + Standard object metadata. - :return: The metadata of this V1beta1Job. + :return: The metadata of this ExtensionsV1beta1Deployment. :rtype: V1ObjectMeta """ return self._metadata @@ -112,10 +112,10 @@ def metadata(self): @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 + Sets the metadata of this ExtensionsV1beta1Deployment. + Standard object metadata. - :param metadata: The metadata of this V1beta1Job. + :param metadata: The metadata of this ExtensionsV1beta1Deployment. :type: V1ObjectMeta """ @@ -124,22 +124,22 @@ def metadata(self, 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 + Gets the spec of this ExtensionsV1beta1Deployment. + Specification of the desired behavior of the Deployment. - :return: The spec of this V1beta1Job. - :rtype: V1beta1JobSpec + :return: The spec of this ExtensionsV1beta1Deployment. + :rtype: ExtensionsV1beta1DeploymentSpec """ 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 + Sets the spec of this ExtensionsV1beta1Deployment. + Specification of the desired behavior of the Deployment. - :param spec: The spec of this V1beta1Job. - :type: V1beta1JobSpec + :param spec: The spec of this ExtensionsV1beta1Deployment. + :type: ExtensionsV1beta1DeploymentSpec """ self._spec = spec @@ -147,22 +147,22 @@ def spec(self, 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 + Gets the status of this ExtensionsV1beta1Deployment. + Most recently observed status of the Deployment. - :return: The status of this V1beta1Job. - :rtype: V1beta1JobStatus + :return: The status of this ExtensionsV1beta1Deployment. + :rtype: ExtensionsV1beta1DeploymentStatus """ 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 + Sets the status of this ExtensionsV1beta1Deployment. + Most recently observed status of the Deployment. - :param status: The status of this V1beta1Job. - :type: V1beta1JobStatus + :param status: The status of this ExtensionsV1beta1Deployment. + :type: ExtensionsV1beta1DeploymentStatus """ self._status = status diff --git a/kubernetes/client/models/v2alpha1_job_condition.py b/kubernetes/client/models/extensions_v1beta1_deployment_condition.py similarity index 58% rename from kubernetes/client/models/v2alpha1_job_condition.py rename to kubernetes/client/models/extensions_v1beta1_deployment_condition.py index 216b33751f..7817b26dfa 100644 --- a/kubernetes/client/models/v2alpha1_job_condition.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V2alpha1JobCondition(object): +class ExtensionsV1beta1DeploymentCondition(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): + def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): """ - V2alpha1JobCondition - a model defined in Swagger + ExtensionsV1beta1DeploymentCondition - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -31,8 +31,8 @@ def __init__(self, last_probe_time=None, last_transition_time=None, message=None and the value is json key in definition. """ self.swagger_types = { - 'last_probe_time': 'UnversionedTime', - 'last_transition_time': 'UnversionedTime', + 'last_transition_time': 'V1Time', + 'last_update_time': 'V1Time', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -40,74 +40,74 @@ def __init__(self, last_probe_time=None, last_transition_time=None, message=None } self.attribute_map = { - 'last_probe_time': 'lastProbeTime', 'last_transition_time': 'lastTransitionTime', + 'last_update_time': 'lastUpdateTime', 'message': 'message', 'reason': 'reason', 'status': 'status', 'type': 'type' } - self._last_probe_time = last_probe_time 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_probe_time(self): + def last_transition_time(self): """ - Gets the last_probe_time of this V2alpha1JobCondition. - Last time the condition was checked. + Gets the last_transition_time of this ExtensionsV1beta1DeploymentCondition. + Last time the condition transitioned from one status to another. - :return: The last_probe_time of this V2alpha1JobCondition. - :rtype: UnversionedTime + :return: The last_transition_time of this ExtensionsV1beta1DeploymentCondition. + :rtype: V1Time """ - return self._last_probe_time + return self._last_transition_time - @last_probe_time.setter - def last_probe_time(self, last_probe_time): + @last_transition_time.setter + def last_transition_time(self, last_transition_time): """ - Sets the last_probe_time of this V2alpha1JobCondition. - Last time the condition was checked. + Sets the last_transition_time of this ExtensionsV1beta1DeploymentCondition. + Last time the condition transitioned from one status to another. - :param last_probe_time: The last_probe_time of this V2alpha1JobCondition. - :type: UnversionedTime + :param last_transition_time: The last_transition_time of this ExtensionsV1beta1DeploymentCondition. + :type: V1Time """ - self._last_probe_time = last_probe_time + self._last_transition_time = last_transition_time @property - def last_transition_time(self): + def last_update_time(self): """ - Gets the last_transition_time of this V2alpha1JobCondition. - Last time the condition transit from one status to another. + Gets the last_update_time of this ExtensionsV1beta1DeploymentCondition. + The last time this condition was updated. - :return: The last_transition_time of this V2alpha1JobCondition. - :rtype: UnversionedTime + :return: The last_update_time of this ExtensionsV1beta1DeploymentCondition. + :rtype: V1Time """ - return self._last_transition_time + return self._last_update_time - @last_transition_time.setter - def last_transition_time(self, last_transition_time): + @last_update_time.setter + def last_update_time(self, last_update_time): """ - Sets the last_transition_time of this V2alpha1JobCondition. - Last time the condition transit from one status to another. + Sets the last_update_time of this ExtensionsV1beta1DeploymentCondition. + The last time this condition was updated. - :param last_transition_time: The last_transition_time of this V2alpha1JobCondition. - :type: UnversionedTime + :param last_update_time: The last_update_time of this ExtensionsV1beta1DeploymentCondition. + :type: V1Time """ - self._last_transition_time = last_transition_time + self._last_update_time = last_update_time @property def message(self): """ - Gets the message of this V2alpha1JobCondition. - Human readable message indicating details about last transition. + Gets the message of this ExtensionsV1beta1DeploymentCondition. + A human readable message indicating details about the transition. - :return: The message of this V2alpha1JobCondition. + :return: The message of this ExtensionsV1beta1DeploymentCondition. :rtype: str """ return self._message @@ -115,10 +115,10 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this V2alpha1JobCondition. - Human readable message indicating details about last transition. + Sets the message of this ExtensionsV1beta1DeploymentCondition. + A human readable message indicating details about the transition. - :param message: The message of this V2alpha1JobCondition. + :param message: The message of this ExtensionsV1beta1DeploymentCondition. :type: str """ @@ -127,10 +127,10 @@ def message(self, message): @property def reason(self): """ - Gets the reason of this V2alpha1JobCondition. - (brief) reason for the condition's last transition. + Gets the reason of this ExtensionsV1beta1DeploymentCondition. + The reason for the condition's last transition. - :return: The reason of this V2alpha1JobCondition. + :return: The reason of this ExtensionsV1beta1DeploymentCondition. :rtype: str """ return self._reason @@ -138,10 +138,10 @@ def reason(self): @reason.setter def reason(self, reason): """ - Sets the reason of this V2alpha1JobCondition. - (brief) reason for the condition's last transition. + Sets the reason of this ExtensionsV1beta1DeploymentCondition. + The reason for the condition's last transition. - :param reason: The reason of this V2alpha1JobCondition. + :param reason: The reason of this ExtensionsV1beta1DeploymentCondition. :type: str """ @@ -150,10 +150,10 @@ def reason(self, reason): @property def status(self): """ - Gets the status of this V2alpha1JobCondition. + Gets the status of this ExtensionsV1beta1DeploymentCondition. Status of the condition, one of True, False, Unknown. - :return: The status of this V2alpha1JobCondition. + :return: The status of this ExtensionsV1beta1DeploymentCondition. :rtype: str """ return self._status @@ -161,10 +161,10 @@ def status(self): @status.setter def status(self, status): """ - Sets the status of this V2alpha1JobCondition. + Sets the status of this ExtensionsV1beta1DeploymentCondition. Status of the condition, one of True, False, Unknown. - :param status: The status of this V2alpha1JobCondition. + :param status: The status of this ExtensionsV1beta1DeploymentCondition. :type: str """ if status is None: @@ -175,10 +175,10 @@ def status(self, status): @property def type(self): """ - Gets the type of this V2alpha1JobCondition. - Type of job condition, Complete or Failed. + Gets the type of this ExtensionsV1beta1DeploymentCondition. + Type of deployment condition. - :return: The type of this V2alpha1JobCondition. + :return: The type of this ExtensionsV1beta1DeploymentCondition. :rtype: str """ return self._type @@ -186,10 +186,10 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this V2alpha1JobCondition. - Type of job condition, Complete or Failed. + Sets the type of this ExtensionsV1beta1DeploymentCondition. + Type of deployment condition. - :param type: The type of this V2alpha1JobCondition. + :param type: The type of this ExtensionsV1beta1DeploymentCondition. :type: str """ if type is None: diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_list.py b/kubernetes/client/models/extensions_v1beta1_deployment_list.py new file mode 100644 index 0000000000..c60adc65fe --- /dev/null +++ b/kubernetes/client/models/extensions_v1beta1_deployment_list.py @@ -0,0 +1,194 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ExtensionsV1beta1DeploymentList(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, items=None, kind=None, metadata=None): + """ + ExtensionsV1beta1DeploymentList - 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', + 'items': 'list[ExtensionsV1beta1Deployment]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this ExtensionsV1beta1DeploymentList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this ExtensionsV1beta1DeploymentList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this ExtensionsV1beta1DeploymentList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this ExtensionsV1beta1DeploymentList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this ExtensionsV1beta1DeploymentList. + Items is the list of Deployments. + + :return: The items of this ExtensionsV1beta1DeploymentList. + :rtype: list[ExtensionsV1beta1Deployment] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this ExtensionsV1beta1DeploymentList. + Items is the list of Deployments. + + :param items: The items of this ExtensionsV1beta1DeploymentList. + :type: list[ExtensionsV1beta1Deployment] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this ExtensionsV1beta1DeploymentList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this ExtensionsV1beta1DeploymentList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this ExtensionsV1beta1DeploymentList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this ExtensionsV1beta1DeploymentList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this ExtensionsV1beta1DeploymentList. + Standard list metadata. + + :return: The metadata of this ExtensionsV1beta1DeploymentList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this ExtensionsV1beta1DeploymentList. + Standard list metadata. + + :param metadata: The metadata of this ExtensionsV1beta1DeploymentList. + :type: V1ListMeta + """ + + 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/kubernetes/client/models/extensions_v1beta1_deployment_rollback.py b/kubernetes/client/models/extensions_v1beta1_deployment_rollback.py new file mode 100644 index 0000000000..354552427a --- /dev/null +++ b/kubernetes/client/models/extensions_v1beta1_deployment_rollback.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ExtensionsV1beta1DeploymentRollback(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, rollback_to=None, updated_annotations=None): + """ + ExtensionsV1beta1DeploymentRollback - 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', + 'rollback_to': 'ExtensionsV1beta1RollbackConfig', + 'updated_annotations': 'dict(str, str)' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'name': 'name', + 'rollback_to': 'rollbackTo', + 'updated_annotations': 'updatedAnnotations' + } + + self._api_version = api_version + self._kind = kind + self._name = name + self._rollback_to = rollback_to + self._updated_annotations = updated_annotations + + @property + def api_version(self): + """ + Gets the api_version of this ExtensionsV1beta1DeploymentRollback. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this ExtensionsV1beta1DeploymentRollback. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this ExtensionsV1beta1DeploymentRollback. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this ExtensionsV1beta1DeploymentRollback. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this ExtensionsV1beta1DeploymentRollback. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this ExtensionsV1beta1DeploymentRollback. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this ExtensionsV1beta1DeploymentRollback. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this ExtensionsV1beta1DeploymentRollback. + :type: str + """ + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this ExtensionsV1beta1DeploymentRollback. + Required: This must match the Name of a deployment. + + :return: The name of this ExtensionsV1beta1DeploymentRollback. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ExtensionsV1beta1DeploymentRollback. + Required: This must match the Name of a deployment. + + :param name: The name of this ExtensionsV1beta1DeploymentRollback. + :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 ExtensionsV1beta1DeploymentRollback. + The config of this deployment rollback. + + :return: The rollback_to of this ExtensionsV1beta1DeploymentRollback. + :rtype: ExtensionsV1beta1RollbackConfig + """ + return self._rollback_to + + @rollback_to.setter + def rollback_to(self, rollback_to): + """ + Sets the rollback_to of this ExtensionsV1beta1DeploymentRollback. + The config of this deployment rollback. + + :param rollback_to: The rollback_to of this ExtensionsV1beta1DeploymentRollback. + :type: ExtensionsV1beta1RollbackConfig + """ + 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 ExtensionsV1beta1DeploymentRollback. + The annotations to be updated to a deployment + + :return: The updated_annotations of this ExtensionsV1beta1DeploymentRollback. + :rtype: dict(str, str) + """ + return self._updated_annotations + + @updated_annotations.setter + def updated_annotations(self, updated_annotations): + """ + Sets the updated_annotations of this ExtensionsV1beta1DeploymentRollback. + The annotations to be updated to a deployment + + :param updated_annotations: The updated_annotations of this ExtensionsV1beta1DeploymentRollback. + :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/kubernetes/client/models/v1beta1_deployment_spec.py b/kubernetes/client/models/extensions_v1beta1_deployment_spec.py similarity index 74% rename from kubernetes/client/models/v1beta1_deployment_spec.py rename to kubernetes/client/models/extensions_v1beta1_deployment_spec.py index 30565f5293..24be074776 100644 --- a/kubernetes/client/models/v1beta1_deployment_spec.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1DeploymentSpec(object): +class ExtensionsV1beta1DeploymentSpec(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 + ExtensionsV1beta1DeploymentSpec - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -36,9 +36,9 @@ def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_second 'progress_deadline_seconds': 'int', 'replicas': 'int', 'revision_history_limit': 'int', - 'rollback_to': 'V1beta1RollbackConfig', - 'selector': 'UnversionedLabelSelector', - 'strategy': 'V1beta1DeploymentStrategy', + 'rollback_to': 'ExtensionsV1beta1RollbackConfig', + 'selector': 'V1LabelSelector', + 'strategy': 'ExtensionsV1beta1DeploymentStrategy', 'template': 'V1PodTemplateSpec' } @@ -67,10 +67,10 @@ def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_second @property def min_ready_seconds(self): """ - Gets the min_ready_seconds of this V1beta1DeploymentSpec. + Gets the min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. 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. + :return: The min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. :rtype: int """ return self._min_ready_seconds @@ -78,10 +78,10 @@ def min_ready_seconds(self): @min_ready_seconds.setter def min_ready_seconds(self, min_ready_seconds): """ - Sets the min_ready_seconds of this V1beta1DeploymentSpec. + Sets the min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. 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. + :param min_ready_seconds: The min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. :type: int """ @@ -90,10 +90,10 @@ def min_ready_seconds(self, min_ready_seconds): @property def paused(self): """ - Gets the paused of this V1beta1DeploymentSpec. + Gets the paused of this ExtensionsV1beta1DeploymentSpec. Indicates that the deployment is paused and will not be processed by the deployment controller. - :return: The paused of this V1beta1DeploymentSpec. + :return: The paused of this ExtensionsV1beta1DeploymentSpec. :rtype: bool """ return self._paused @@ -101,10 +101,10 @@ def paused(self): @paused.setter def paused(self, paused): """ - Sets the paused of this V1beta1DeploymentSpec. + Sets the paused of this ExtensionsV1beta1DeploymentSpec. Indicates that the deployment is paused and will not be processed by the deployment controller. - :param paused: The paused of this V1beta1DeploymentSpec. + :param paused: The paused of this ExtensionsV1beta1DeploymentSpec. :type: bool """ @@ -113,10 +113,10 @@ def paused(self, paused): @property def progress_deadline_seconds(self): """ - Gets the progress_deadline_seconds of this V1beta1DeploymentSpec. + Gets the progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. 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. + :return: The progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. :rtype: int """ return self._progress_deadline_seconds @@ -124,10 +124,10 @@ def progress_deadline_seconds(self): @progress_deadline_seconds.setter def progress_deadline_seconds(self, progress_deadline_seconds): """ - Sets the progress_deadline_seconds of this V1beta1DeploymentSpec. + Sets the progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. 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. + :param progress_deadline_seconds: The progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. :type: int """ @@ -136,10 +136,10 @@ def progress_deadline_seconds(self, progress_deadline_seconds): @property def replicas(self): """ - Gets the replicas of this V1beta1DeploymentSpec. + Gets the replicas of this ExtensionsV1beta1DeploymentSpec. 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. + :return: The replicas of this ExtensionsV1beta1DeploymentSpec. :rtype: int """ return self._replicas @@ -147,10 +147,10 @@ def replicas(self): @replicas.setter def replicas(self, replicas): """ - Sets the replicas of this V1beta1DeploymentSpec. + Sets the replicas of this ExtensionsV1beta1DeploymentSpec. 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. + :param replicas: The replicas of this ExtensionsV1beta1DeploymentSpec. :type: int """ @@ -159,10 +159,10 @@ def replicas(self, replicas): @property def revision_history_limit(self): """ - Gets the revision_history_limit of this V1beta1DeploymentSpec. + Gets the revision_history_limit of this ExtensionsV1beta1DeploymentSpec. 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. + :return: The revision_history_limit of this ExtensionsV1beta1DeploymentSpec. :rtype: int """ return self._revision_history_limit @@ -170,10 +170,10 @@ def revision_history_limit(self): @revision_history_limit.setter def revision_history_limit(self, revision_history_limit): """ - Sets the revision_history_limit of this V1beta1DeploymentSpec. + Sets the revision_history_limit of this ExtensionsV1beta1DeploymentSpec. 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. + :param revision_history_limit: The revision_history_limit of this ExtensionsV1beta1DeploymentSpec. :type: int """ @@ -182,22 +182,22 @@ def revision_history_limit(self, revision_history_limit): @property def rollback_to(self): """ - Gets the rollback_to of this V1beta1DeploymentSpec. + Gets the rollback_to of this ExtensionsV1beta1DeploymentSpec. 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: The rollback_to of this ExtensionsV1beta1DeploymentSpec. + :rtype: ExtensionsV1beta1RollbackConfig """ return self._rollback_to @rollback_to.setter def rollback_to(self, rollback_to): """ - Sets the rollback_to of this V1beta1DeploymentSpec. + Sets the rollback_to of this ExtensionsV1beta1DeploymentSpec. 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 + :param rollback_to: The rollback_to of this ExtensionsV1beta1DeploymentSpec. + :type: ExtensionsV1beta1RollbackConfig """ self._rollback_to = rollback_to @@ -205,22 +205,22 @@ def rollback_to(self, rollback_to): @property def selector(self): """ - Gets the selector of this V1beta1DeploymentSpec. + Gets the selector of this ExtensionsV1beta1DeploymentSpec. 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: The selector of this ExtensionsV1beta1DeploymentSpec. + :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): """ - Sets the selector of this V1beta1DeploymentSpec. + Sets the selector of this ExtensionsV1beta1DeploymentSpec. 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 + :param selector: The selector of this ExtensionsV1beta1DeploymentSpec. + :type: V1LabelSelector """ self._selector = selector @@ -228,22 +228,22 @@ def selector(self, selector): @property def strategy(self): """ - Gets the strategy of this V1beta1DeploymentSpec. + Gets the strategy of this ExtensionsV1beta1DeploymentSpec. The deployment strategy to use to replace existing pods with new ones. - :return: The strategy of this V1beta1DeploymentSpec. - :rtype: V1beta1DeploymentStrategy + :return: The strategy of this ExtensionsV1beta1DeploymentSpec. + :rtype: ExtensionsV1beta1DeploymentStrategy """ return self._strategy @strategy.setter def strategy(self, strategy): """ - Sets the strategy of this V1beta1DeploymentSpec. + Sets the strategy of this ExtensionsV1beta1DeploymentSpec. The deployment strategy to use to replace existing pods with new ones. - :param strategy: The strategy of this V1beta1DeploymentSpec. - :type: V1beta1DeploymentStrategy + :param strategy: The strategy of this ExtensionsV1beta1DeploymentSpec. + :type: ExtensionsV1beta1DeploymentStrategy """ self._strategy = strategy @@ -251,10 +251,10 @@ def strategy(self, strategy): @property def template(self): """ - Gets the template of this V1beta1DeploymentSpec. + Gets the template of this ExtensionsV1beta1DeploymentSpec. Template describes the pods that will be created. - :return: The template of this V1beta1DeploymentSpec. + :return: The template of this ExtensionsV1beta1DeploymentSpec. :rtype: V1PodTemplateSpec """ return self._template @@ -262,10 +262,10 @@ def template(self): @template.setter def template(self, template): """ - Sets the template of this V1beta1DeploymentSpec. + Sets the template of this ExtensionsV1beta1DeploymentSpec. Template describes the pods that will be created. - :param template: The template of this V1beta1DeploymentSpec. + :param template: The template of this ExtensionsV1beta1DeploymentSpec. :type: V1PodTemplateSpec """ if template is None: diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_status.py b/kubernetes/client/models/extensions_v1beta1_deployment_status.py new file mode 100644 index 0000000000..03f4fa6438 --- /dev/null +++ b/kubernetes/client/models/extensions_v1beta1_deployment_status.py @@ -0,0 +1,270 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ExtensionsV1beta1DeploymentStatus(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, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): + """ + ExtensionsV1beta1DeploymentStatus - 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[ExtensionsV1beta1DeploymentCondition]', + 'observed_generation': 'int', + 'ready_replicas': 'int', + 'replicas': 'int', + 'unavailable_replicas': 'int', + 'updated_replicas': 'int' + } + + self.attribute_map = { + 'available_replicas': 'availableReplicas', + 'conditions': 'conditions', + 'observed_generation': 'observedGeneration', + 'ready_replicas': 'readyReplicas', + 'replicas': 'replicas', + 'unavailable_replicas': 'unavailableReplicas', + 'updated_replicas': 'updatedReplicas' + } + + self._available_replicas = available_replicas + self._conditions = conditions + self._observed_generation = observed_generation + self._ready_replicas = ready_replicas + self._replicas = replicas + self._unavailable_replicas = unavailable_replicas + self._updated_replicas = updated_replicas + + @property + def available_replicas(self): + """ + Gets the available_replicas of this ExtensionsV1beta1DeploymentStatus. + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + + :return: The available_replicas of this ExtensionsV1beta1DeploymentStatus. + :rtype: int + """ + return self._available_replicas + + @available_replicas.setter + def available_replicas(self, available_replicas): + """ + Sets the available_replicas of this ExtensionsV1beta1DeploymentStatus. + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + + :param available_replicas: The available_replicas of this ExtensionsV1beta1DeploymentStatus. + :type: int + """ + + self._available_replicas = available_replicas + + @property + def conditions(self): + """ + Gets the conditions of this ExtensionsV1beta1DeploymentStatus. + Represents the latest available observations of a deployment's current state. + + :return: The conditions of this ExtensionsV1beta1DeploymentStatus. + :rtype: list[ExtensionsV1beta1DeploymentCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this ExtensionsV1beta1DeploymentStatus. + Represents the latest available observations of a deployment's current state. + + :param conditions: The conditions of this ExtensionsV1beta1DeploymentStatus. + :type: list[ExtensionsV1beta1DeploymentCondition] + """ + + self._conditions = conditions + + @property + def observed_generation(self): + """ + Gets the observed_generation of this ExtensionsV1beta1DeploymentStatus. + The generation observed by the deployment controller. + + :return: The observed_generation of this ExtensionsV1beta1DeploymentStatus. + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """ + Sets the observed_generation of this ExtensionsV1beta1DeploymentStatus. + The generation observed by the deployment controller. + + :param observed_generation: The observed_generation of this ExtensionsV1beta1DeploymentStatus. + :type: int + """ + + self._observed_generation = observed_generation + + @property + def ready_replicas(self): + """ + Gets the ready_replicas of this ExtensionsV1beta1DeploymentStatus. + Total number of ready pods targeted by this deployment. + + :return: The ready_replicas of this ExtensionsV1beta1DeploymentStatus. + :rtype: int + """ + return self._ready_replicas + + @ready_replicas.setter + def ready_replicas(self, ready_replicas): + """ + Sets the ready_replicas of this ExtensionsV1beta1DeploymentStatus. + Total number of ready pods targeted by this deployment. + + :param ready_replicas: The ready_replicas of this ExtensionsV1beta1DeploymentStatus. + :type: int + """ + + self._ready_replicas = ready_replicas + + @property + def replicas(self): + """ + Gets the replicas of this ExtensionsV1beta1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment (their labels match the selector). + + :return: The replicas of this ExtensionsV1beta1DeploymentStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this ExtensionsV1beta1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment (their labels match the selector). + + :param replicas: The replicas of this ExtensionsV1beta1DeploymentStatus. + :type: int + """ + + self._replicas = replicas + + @property + def unavailable_replicas(self): + """ + Gets the unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. + Total number of unavailable pods targeted by this deployment. + + :return: The unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. + :rtype: int + """ + return self._unavailable_replicas + + @unavailable_replicas.setter + def unavailable_replicas(self, unavailable_replicas): + """ + Sets the unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. + Total number of unavailable pods targeted by this deployment. + + :param unavailable_replicas: The unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. + :type: int + """ + + self._unavailable_replicas = unavailable_replicas + + @property + def updated_replicas(self): + """ + Gets the updated_replicas of this ExtensionsV1beta1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment that have the desired template spec. + + :return: The updated_replicas of this ExtensionsV1beta1DeploymentStatus. + :rtype: int + """ + return self._updated_replicas + + @updated_replicas.setter + def updated_replicas(self, updated_replicas): + """ + Sets the updated_replicas of this ExtensionsV1beta1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment that have the desired template spec. + + :param updated_replicas: The updated_replicas of this ExtensionsV1beta1DeploymentStatus. + :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/kubernetes/client/models/extensions_v1beta1_deployment_strategy.py b/kubernetes/client/models/extensions_v1beta1_deployment_strategy.py new file mode 100644 index 0000000000..6b4ac38b8c --- /dev/null +++ b/kubernetes/client/models/extensions_v1beta1_deployment_strategy.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ExtensionsV1beta1DeploymentStrategy(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): + """ + ExtensionsV1beta1DeploymentStrategy - 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': 'ExtensionsV1beta1RollingUpdateDeployment', + '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 ExtensionsV1beta1DeploymentStrategy. + Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + + :return: The rolling_update of this ExtensionsV1beta1DeploymentStrategy. + :rtype: ExtensionsV1beta1RollingUpdateDeployment + """ + return self._rolling_update + + @rolling_update.setter + def rolling_update(self, rolling_update): + """ + Sets the rolling_update of this ExtensionsV1beta1DeploymentStrategy. + Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + + :param rolling_update: The rolling_update of this ExtensionsV1beta1DeploymentStrategy. + :type: ExtensionsV1beta1RollingUpdateDeployment + """ + + self._rolling_update = rolling_update + + @property + def type(self): + """ + Gets the type of this ExtensionsV1beta1DeploymentStrategy. + Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + + :return: The type of this ExtensionsV1beta1DeploymentStrategy. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this ExtensionsV1beta1DeploymentStrategy. + Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + + :param type: The type of this ExtensionsV1beta1DeploymentStrategy. + :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/kubernetes/client/models/extensions_v1beta1_rollback_config.py b/kubernetes/client/models/extensions_v1beta1_rollback_config.py new file mode 100644 index 0000000000..6431148842 --- /dev/null +++ b/kubernetes/client/models/extensions_v1beta1_rollback_config.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ExtensionsV1beta1RollbackConfig(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, revision=None): + """ + ExtensionsV1beta1RollbackConfig - 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 ExtensionsV1beta1RollbackConfig. + The revision to rollback to. If set to 0, rollbck to the last revision. + + :return: The revision of this ExtensionsV1beta1RollbackConfig. + :rtype: int + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this ExtensionsV1beta1RollbackConfig. + The revision to rollback to. If set to 0, rollbck to the last revision. + + :param revision: The revision of this ExtensionsV1beta1RollbackConfig. + :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/kubernetes/client/models/v1beta1_rolling_update_deployment.py b/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py similarity index 73% rename from kubernetes/client/models/v1beta1_rolling_update_deployment.py rename to kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py index 421e25b3ee..4a8f147d98 100644 --- a/kubernetes/client/models/v1beta1_rolling_update_deployment.py +++ b/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1RollingUpdateDeployment(object): +class ExtensionsV1beta1RollingUpdateDeployment(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 + ExtensionsV1beta1RollingUpdateDeployment - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -46,10 +46,10 @@ def __init__(self, max_surge=None, max_unavailable=None): @property def max_surge(self): """ - Gets the max_surge of this V1beta1RollingUpdateDeployment. + Gets the max_surge of this ExtensionsV1beta1RollingUpdateDeployment. 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. + :return: The max_surge of this ExtensionsV1beta1RollingUpdateDeployment. :rtype: IntstrIntOrString """ return self._max_surge @@ -57,10 +57,10 @@ def max_surge(self): @max_surge.setter def max_surge(self, max_surge): """ - Sets the max_surge of this V1beta1RollingUpdateDeployment. + Sets the max_surge of this ExtensionsV1beta1RollingUpdateDeployment. 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. + :param max_surge: The max_surge of this ExtensionsV1beta1RollingUpdateDeployment. :type: IntstrIntOrString """ @@ -69,10 +69,10 @@ def max_surge(self, 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. + Gets the max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. + 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 down. 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. + :return: The max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. :rtype: IntstrIntOrString """ return self._max_unavailable @@ -80,10 +80,10 @@ def max_unavailable(self): @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. + Sets the max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. + 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 down. 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. + :param max_unavailable: The max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. :type: IntstrIntOrString """ diff --git a/kubernetes/client/models/extensions_v1beta1_scale.py b/kubernetes/client/models/extensions_v1beta1_scale.py new file mode 100644 index 0000000000..396e1a6168 --- /dev/null +++ b/kubernetes/client/models/extensions_v1beta1_scale.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ExtensionsV1beta1Scale(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, metadata=None, spec=None, status=None): + """ + ExtensionsV1beta1Scale - 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', + 'metadata': 'V1ObjectMeta', + 'spec': 'ExtensionsV1beta1ScaleSpec', + 'status': 'ExtensionsV1beta1ScaleStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this ExtensionsV1beta1Scale. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this ExtensionsV1beta1Scale. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this ExtensionsV1beta1Scale. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this ExtensionsV1beta1Scale. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this ExtensionsV1beta1Scale. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this ExtensionsV1beta1Scale. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this ExtensionsV1beta1Scale. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this ExtensionsV1beta1Scale. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this ExtensionsV1beta1Scale. + Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. + + :return: The metadata of this ExtensionsV1beta1Scale. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this ExtensionsV1beta1Scale. + Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. + + :param metadata: The metadata of this ExtensionsV1beta1Scale. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this ExtensionsV1beta1Scale. + 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 ExtensionsV1beta1Scale. + :rtype: ExtensionsV1beta1ScaleSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this ExtensionsV1beta1Scale. + 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 ExtensionsV1beta1Scale. + :type: ExtensionsV1beta1ScaleSpec + """ + + self._spec = spec + + @property + def status(self): + """ + Gets the status of this ExtensionsV1beta1Scale. + 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 ExtensionsV1beta1Scale. + :rtype: ExtensionsV1beta1ScaleStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this ExtensionsV1beta1Scale. + 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 ExtensionsV1beta1Scale. + :type: ExtensionsV1beta1ScaleStatus + """ + + 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/kubernetes/client/models/v1beta1_cpu_target_utilization.py b/kubernetes/client/models/extensions_v1beta1_scale_spec.py similarity index 64% rename from kubernetes/client/models/v1beta1_cpu_target_utilization.py rename to kubernetes/client/models/extensions_v1beta1_scale_spec.py index 46c23427f4..6c98b4294d 100644 --- a/kubernetes/client/models/v1beta1_cpu_target_utilization.py +++ b/kubernetes/client/models/extensions_v1beta1_scale_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1CPUTargetUtilization(object): +class ExtensionsV1beta1ScaleSpec(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): + def __init__(self, replicas=None): """ - V1beta1CPUTargetUtilization - a model defined in Swagger + ExtensionsV1beta1ScaleSpec - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -31,39 +31,37 @@ def __init__(self, target_percentage=None): and the value is json key in definition. """ self.swagger_types = { - 'target_percentage': 'int' + 'replicas': 'int' } self.attribute_map = { - 'target_percentage': 'targetPercentage' + 'replicas': 'replicas' } - self._target_percentage = target_percentage + self._replicas = replicas @property - def target_percentage(self): + def replicas(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. + Gets the replicas of this ExtensionsV1beta1ScaleSpec. + desired number of instances for the scaled object. - :return: The target_percentage of this V1beta1CPUTargetUtilization. + :return: The replicas of this ExtensionsV1beta1ScaleSpec. :rtype: int """ - return self._target_percentage + return self._replicas - @target_percentage.setter - def target_percentage(self, target_percentage): + @replicas.setter + def replicas(self, replicas): """ - 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. + Sets the replicas of this ExtensionsV1beta1ScaleSpec. + desired number of instances for the scaled object. - :param target_percentage: The target_percentage of this V1beta1CPUTargetUtilization. + :param replicas: The replicas of this ExtensionsV1beta1ScaleSpec. :type: int """ - if target_percentage is None: - raise ValueError("Invalid value for `target_percentage`, must not be `None`") - self._target_percentage = target_percentage + self._replicas = replicas def to_dict(self): """ diff --git a/kubernetes/client/models/extensions_v1beta1_scale_status.py b/kubernetes/client/models/extensions_v1beta1_scale_status.py new file mode 100644 index 0000000000..3b23d2a4ee --- /dev/null +++ b/kubernetes/client/models/extensions_v1beta1_scale_status.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ExtensionsV1beta1ScaleStatus(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): + """ + ExtensionsV1beta1ScaleStatus - 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 ExtensionsV1beta1ScaleStatus. + actual number of observed instances of the scaled object. + + :return: The replicas of this ExtensionsV1beta1ScaleStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this ExtensionsV1beta1ScaleStatus. + actual number of observed instances of the scaled object. + + :param replicas: The replicas of this ExtensionsV1beta1ScaleStatus. + :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 ExtensionsV1beta1ScaleStatus. + 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 ExtensionsV1beta1ScaleStatus. + :rtype: dict(str, str) + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this ExtensionsV1beta1ScaleStatus. + 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 ExtensionsV1beta1ScaleStatus. + :type: dict(str, str) + """ + + self._selector = selector + + @property + def target_selector(self): + """ + Gets the target_selector of this ExtensionsV1beta1ScaleStatus. + 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 ExtensionsV1beta1ScaleStatus. + :rtype: str + """ + return self._target_selector + + @target_selector.setter + def target_selector(self, target_selector): + """ + Sets the target_selector of this ExtensionsV1beta1ScaleStatus. + 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 ExtensionsV1beta1ScaleStatus. + :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/kubernetes/client/models/intstr_int_or_string.py b/kubernetes/client/models/intstr_int_or_string.py index 217b0c2c63..a0c7b43174 100644 --- a/kubernetes/client/models/intstr_int_or_string.py +++ b/kubernetes/client/models/intstr_int_or_string.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/resource_quantity.py b/kubernetes/client/models/resource_quantity.py index c05758c039..d75d40ac67 100644 --- a/kubernetes/client/models/resource_quantity.py +++ b/kubernetes/client/models/resource_quantity.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/runtime_raw_extension.py b/kubernetes/client/models/runtime_raw_extension.py index c34df14fa0..caffa790f5 100644 --- a/kubernetes/client/models/runtime_raw_extension.py +++ b/kubernetes/client/models/runtime_raw_extension.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_affinity.py b/kubernetes/client/models/v1_affinity.py new file mode 100644 index 0000000000..bdf3ad280f --- /dev/null +++ b/kubernetes/client/models/v1_affinity.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Affinity(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, node_affinity=None, pod_affinity=None, pod_anti_affinity=None): + """ + V1Affinity - 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 = { + 'node_affinity': 'V1NodeAffinity', + 'pod_affinity': 'V1PodAffinity', + 'pod_anti_affinity': 'V1PodAntiAffinity' + } + + self.attribute_map = { + 'node_affinity': 'nodeAffinity', + 'pod_affinity': 'podAffinity', + 'pod_anti_affinity': 'podAntiAffinity' + } + + self._node_affinity = node_affinity + self._pod_affinity = pod_affinity + self._pod_anti_affinity = pod_anti_affinity + + @property + def node_affinity(self): + """ + Gets the node_affinity of this V1Affinity. + Describes node affinity scheduling rules for the pod. + + :return: The node_affinity of this V1Affinity. + :rtype: V1NodeAffinity + """ + return self._node_affinity + + @node_affinity.setter + def node_affinity(self, node_affinity): + """ + Sets the node_affinity of this V1Affinity. + Describes node affinity scheduling rules for the pod. + + :param node_affinity: The node_affinity of this V1Affinity. + :type: V1NodeAffinity + """ + + self._node_affinity = node_affinity + + @property + def pod_affinity(self): + """ + Gets the pod_affinity of this V1Affinity. + Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + + :return: The pod_affinity of this V1Affinity. + :rtype: V1PodAffinity + """ + return self._pod_affinity + + @pod_affinity.setter + def pod_affinity(self, pod_affinity): + """ + Sets the pod_affinity of this V1Affinity. + Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + + :param pod_affinity: The pod_affinity of this V1Affinity. + :type: V1PodAffinity + """ + + self._pod_affinity = pod_affinity + + @property + def pod_anti_affinity(self): + """ + Gets the pod_anti_affinity of this V1Affinity. + Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + + :return: The pod_anti_affinity of this V1Affinity. + :rtype: V1PodAntiAffinity + """ + return self._pod_anti_affinity + + @pod_anti_affinity.setter + def pod_anti_affinity(self, pod_anti_affinity): + """ + Sets the pod_anti_affinity of this V1Affinity. + Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + + :param pod_anti_affinity: The pod_anti_affinity of this V1Affinity. + :type: V1PodAntiAffinity + """ + + self._pod_anti_affinity = pod_anti_affinity + + 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/kubernetes/client/models/unversioned_api_group.py b/kubernetes/client/models/v1_api_group.py similarity index 78% rename from kubernetes/client/models/unversioned_api_group.py rename to kubernetes/client/models/v1_api_group.py index ba655cb9e4..8e178e0a62 100644 --- a/kubernetes/client/models/unversioned_api_group.py +++ b/kubernetes/client/models/v1_api_group.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class UnversionedAPIGroup(object): +class V1APIGroup(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, preferred_version=None, server_address_by_client_cid_rs=None, versions=None): """ - UnversionedAPIGroup - a model defined in Swagger + V1APIGroup - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -34,9 +34,9 @@ def __init__(self, api_version=None, kind=None, name=None, preferred_version=Non 'api_version': 'str', 'kind': 'str', 'name': 'str', - 'preferred_version': 'UnversionedGroupVersionForDiscovery', - 'server_address_by_client_cid_rs': 'list[UnversionedServerAddressByClientCIDR]', - 'versions': 'list[UnversionedGroupVersionForDiscovery]' + 'preferred_version': 'V1GroupVersionForDiscovery', + 'server_address_by_client_cid_rs': 'list[V1ServerAddressByClientCIDR]', + 'versions': 'list[V1GroupVersionForDiscovery]' } self.attribute_map = { @@ -58,10 +58,10 @@ def __init__(self, api_version=None, kind=None, name=None, preferred_version=Non @property def api_version(self): """ - Gets the api_version of this UnversionedAPIGroup. + Gets the api_version of this V1APIGroup. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this UnversionedAPIGroup. + :return: The api_version of this V1APIGroup. :rtype: str """ return self._api_version @@ -69,10 +69,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this UnversionedAPIGroup. + Sets the api_version of this V1APIGroup. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this UnversionedAPIGroup. + :param api_version: The api_version of this V1APIGroup. :type: str """ @@ -81,10 +81,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this UnversionedAPIGroup. + Gets the kind of this V1APIGroup. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this UnversionedAPIGroup. + :return: The kind of this V1APIGroup. :rtype: str """ return self._kind @@ -92,10 +92,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this UnversionedAPIGroup. + Sets the kind of this V1APIGroup. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this UnversionedAPIGroup. + :param kind: The kind of this V1APIGroup. :type: str """ @@ -104,10 +104,10 @@ def kind(self, kind): @property def name(self): """ - Gets the name of this UnversionedAPIGroup. + Gets the name of this V1APIGroup. name is the name of the group. - :return: The name of this UnversionedAPIGroup. + :return: The name of this V1APIGroup. :rtype: str """ return self._name @@ -115,10 +115,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this UnversionedAPIGroup. + Sets the name of this V1APIGroup. name is the name of the group. - :param name: The name of this UnversionedAPIGroup. + :param name: The name of this V1APIGroup. :type: str """ if name is None: @@ -129,22 +129,22 @@ def name(self, name): @property def preferred_version(self): """ - Gets the preferred_version of this UnversionedAPIGroup. + Gets the preferred_version of this V1APIGroup. 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: The preferred_version of this V1APIGroup. + :rtype: V1GroupVersionForDiscovery """ return self._preferred_version @preferred_version.setter def preferred_version(self, preferred_version): """ - Sets the preferred_version of this UnversionedAPIGroup. + Sets the preferred_version of this V1APIGroup. 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 + :param preferred_version: The preferred_version of this V1APIGroup. + :type: V1GroupVersionForDiscovery """ self._preferred_version = preferred_version @@ -152,22 +152,22 @@ def preferred_version(self, preferred_version): @property def server_address_by_client_cid_rs(self): """ - Gets the server_address_by_client_cid_rs of this UnversionedAPIGroup. + Gets the server_address_by_client_cid_rs of this V1APIGroup. 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: The server_address_by_client_cid_rs of this V1APIGroup. + :rtype: list[V1ServerAddressByClientCIDR] """ 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. + Sets the server_address_by_client_cid_rs of this V1APIGroup. 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] + :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this V1APIGroup. + :type: list[V1ServerAddressByClientCIDR] """ if server_address_by_client_cid_rs is None: raise ValueError("Invalid value for `server_address_by_client_cid_rs`, must not be `None`") @@ -177,22 +177,22 @@ def server_address_by_client_cid_rs(self, server_address_by_client_cid_rs): @property def versions(self): """ - Gets the versions of this UnversionedAPIGroup. + Gets the versions of this V1APIGroup. versions are the versions supported in this group. - :return: The versions of this UnversionedAPIGroup. - :rtype: list[UnversionedGroupVersionForDiscovery] + :return: The versions of this V1APIGroup. + :rtype: list[V1GroupVersionForDiscovery] """ return self._versions @versions.setter def versions(self, versions): """ - Sets the versions of this UnversionedAPIGroup. + Sets the versions of this V1APIGroup. versions are the versions supported in this group. - :param versions: The versions of this UnversionedAPIGroup. - :type: list[UnversionedGroupVersionForDiscovery] + :param versions: The versions of this V1APIGroup. + :type: list[V1GroupVersionForDiscovery] """ if versions is None: raise ValueError("Invalid value for `versions`, must not be `None`") diff --git a/kubernetes/client/models/unversioned_api_group_list.py b/kubernetes/client/models/v1_api_group_list.py similarity index 81% rename from kubernetes/client/models/unversioned_api_group_list.py rename to kubernetes/client/models/v1_api_group_list.py index 64657b0d18..7412ccb707 100644 --- a/kubernetes/client/models/unversioned_api_group_list.py +++ b/kubernetes/client/models/v1_api_group_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class UnversionedAPIGroupList(object): +class V1APIGroupList(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, groups=None, kind=None): """ - UnversionedAPIGroupList - a model defined in Swagger + V1APIGroupList - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -32,7 +32,7 @@ def __init__(self, api_version=None, groups=None, kind=None): """ self.swagger_types = { 'api_version': 'str', - 'groups': 'list[UnversionedAPIGroup]', + 'groups': 'list[V1APIGroup]', 'kind': 'str' } @@ -49,10 +49,10 @@ def __init__(self, api_version=None, groups=None, kind=None): @property def api_version(self): """ - Gets the api_version of this UnversionedAPIGroupList. + Gets the api_version of this V1APIGroupList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this UnversionedAPIGroupList. + :return: The api_version of this V1APIGroupList. :rtype: str """ return self._api_version @@ -60,10 +60,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this UnversionedAPIGroupList. + Sets the api_version of this V1APIGroupList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this UnversionedAPIGroupList. + :param api_version: The api_version of this V1APIGroupList. :type: str """ @@ -72,22 +72,22 @@ def api_version(self, api_version): @property def groups(self): """ - Gets the groups of this UnversionedAPIGroupList. + Gets the groups of this V1APIGroupList. groups is a list of APIGroup. - :return: The groups of this UnversionedAPIGroupList. - :rtype: list[UnversionedAPIGroup] + :return: The groups of this V1APIGroupList. + :rtype: list[V1APIGroup] """ return self._groups @groups.setter def groups(self, groups): """ - Sets the groups of this UnversionedAPIGroupList. + Sets the groups of this V1APIGroupList. groups is a list of APIGroup. - :param groups: The groups of this UnversionedAPIGroupList. - :type: list[UnversionedAPIGroup] + :param groups: The groups of this V1APIGroupList. + :type: list[V1APIGroup] """ if groups is None: raise ValueError("Invalid value for `groups`, must not be `None`") @@ -97,10 +97,10 @@ def groups(self, groups): @property def kind(self): """ - Gets the kind of this UnversionedAPIGroupList. + Gets the kind of this V1APIGroupList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this UnversionedAPIGroupList. + :return: The kind of this V1APIGroupList. :rtype: str """ return self._kind @@ -108,10 +108,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this UnversionedAPIGroupList. + Sets the kind of this V1APIGroupList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this UnversionedAPIGroupList. + :param kind: The kind of this V1APIGroupList. :type: str """ diff --git a/kubernetes/client/models/v1_api_resource.py b/kubernetes/client/models/v1_api_resource.py new file mode 100644 index 0000000000..4a598c5cc5 --- /dev/null +++ b/kubernetes/client/models/v1_api_resource.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1APIResource(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, short_names=None, verbs=None): + """ + V1APIResource - 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', + 'short_names': 'list[str]', + 'verbs': 'list[str]' + } + + self.attribute_map = { + 'kind': 'kind', + 'name': 'name', + 'namespaced': 'namespaced', + 'short_names': 'shortNames', + 'verbs': 'verbs' + } + + self._kind = kind + self._name = name + self._namespaced = namespaced + self._short_names = short_names + self._verbs = verbs + + @property + def kind(self): + """ + Gets the kind of this V1APIResource. + kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + + :return: The kind of this V1APIResource. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1APIResource. + kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + + :param kind: The kind of this V1APIResource. + :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 V1APIResource. + name is the name of the resource. + + :return: The name of this V1APIResource. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1APIResource. + name is the name of the resource. + + :param name: The name of this V1APIResource. + :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 V1APIResource. + namespaced indicates if a resource is namespaced or not. + + :return: The namespaced of this V1APIResource. + :rtype: bool + """ + return self._namespaced + + @namespaced.setter + def namespaced(self, namespaced): + """ + Sets the namespaced of this V1APIResource. + namespaced indicates if a resource is namespaced or not. + + :param namespaced: The namespaced of this V1APIResource. + :type: bool + """ + if namespaced is None: + raise ValueError("Invalid value for `namespaced`, must not be `None`") + + self._namespaced = namespaced + + @property + def short_names(self): + """ + Gets the short_names of this V1APIResource. + shortNames is a list of suggested short names of the resource. + + :return: The short_names of this V1APIResource. + :rtype: list[str] + """ + return self._short_names + + @short_names.setter + def short_names(self, short_names): + """ + Sets the short_names of this V1APIResource. + shortNames is a list of suggested short names of the resource. + + :param short_names: The short_names of this V1APIResource. + :type: list[str] + """ + + self._short_names = short_names + + @property + def verbs(self): + """ + Gets the verbs of this V1APIResource. + verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) + + :return: The verbs of this V1APIResource. + :rtype: list[str] + """ + return self._verbs + + @verbs.setter + def verbs(self, verbs): + """ + Sets the verbs of this V1APIResource. + verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) + + :param verbs: The verbs of this V1APIResource. + :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/kubernetes/client/models/unversioned_api_resource_list.py b/kubernetes/client/models/v1_api_resource_list.py similarity index 79% rename from kubernetes/client/models/unversioned_api_resource_list.py rename to kubernetes/client/models/v1_api_resource_list.py index 0c311eb9fe..19cb7fafc3 100644 --- a/kubernetes/client/models/unversioned_api_resource_list.py +++ b/kubernetes/client/models/v1_api_resource_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class UnversionedAPIResourceList(object): +class V1APIResourceList(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, group_version=None, kind=None, resources=None): """ - UnversionedAPIResourceList - a model defined in Swagger + V1APIResourceList - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -34,7 +34,7 @@ def __init__(self, api_version=None, group_version=None, kind=None, resources=No 'api_version': 'str', 'group_version': 'str', 'kind': 'str', - 'resources': 'list[UnversionedAPIResource]' + 'resources': 'list[V1APIResource]' } self.attribute_map = { @@ -52,10 +52,10 @@ def __init__(self, api_version=None, group_version=None, kind=None, resources=No @property def api_version(self): """ - Gets the api_version of this UnversionedAPIResourceList. + Gets the api_version of this V1APIResourceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this UnversionedAPIResourceList. + :return: The api_version of this V1APIResourceList. :rtype: str """ return self._api_version @@ -63,10 +63,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this UnversionedAPIResourceList. + Sets the api_version of this V1APIResourceList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this UnversionedAPIResourceList. + :param api_version: The api_version of this V1APIResourceList. :type: str """ @@ -75,10 +75,10 @@ def api_version(self, api_version): @property def group_version(self): """ - Gets the group_version of this UnversionedAPIResourceList. + Gets the group_version of this V1APIResourceList. groupVersion is the group and version this APIResourceList is for. - :return: The group_version of this UnversionedAPIResourceList. + :return: The group_version of this V1APIResourceList. :rtype: str """ return self._group_version @@ -86,10 +86,10 @@ def group_version(self): @group_version.setter def group_version(self, group_version): """ - Sets the group_version of this UnversionedAPIResourceList. + Sets the group_version of this V1APIResourceList. groupVersion is the group and version this APIResourceList is for. - :param group_version: The group_version of this UnversionedAPIResourceList. + :param group_version: The group_version of this V1APIResourceList. :type: str """ if group_version is None: @@ -100,10 +100,10 @@ def group_version(self, group_version): @property def kind(self): """ - Gets the kind of this UnversionedAPIResourceList. + Gets the kind of this V1APIResourceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this UnversionedAPIResourceList. + :return: The kind of this V1APIResourceList. :rtype: str """ return self._kind @@ -111,10 +111,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this UnversionedAPIResourceList. + Sets the kind of this V1APIResourceList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this UnversionedAPIResourceList. + :param kind: The kind of this V1APIResourceList. :type: str """ @@ -123,22 +123,22 @@ def kind(self, kind): @property def resources(self): """ - Gets the resources of this UnversionedAPIResourceList. + Gets the resources of this V1APIResourceList. resources contains the name of the resources and if they are namespaced. - :return: The resources of this UnversionedAPIResourceList. - :rtype: list[UnversionedAPIResource] + :return: The resources of this V1APIResourceList. + :rtype: list[V1APIResource] """ return self._resources @resources.setter def resources(self, resources): """ - Sets the resources of this UnversionedAPIResourceList. + Sets the resources of this V1APIResourceList. resources contains the name of the resources and if they are namespaced. - :param resources: The resources of this UnversionedAPIResourceList. - :type: list[UnversionedAPIResource] + :param resources: The resources of this V1APIResourceList. + :type: list[V1APIResource] """ if resources is None: raise ValueError("Invalid value for `resources`, must not be `None`") diff --git a/kubernetes/client/models/unversioned_api_versions.py b/kubernetes/client/models/v1_api_versions.py similarity index 82% rename from kubernetes/client/models/unversioned_api_versions.py rename to kubernetes/client/models/v1_api_versions.py index b84663cb83..851dfb5912 100644 --- a/kubernetes/client/models/unversioned_api_versions.py +++ b/kubernetes/client/models/v1_api_versions.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class UnversionedAPIVersions(object): +class V1APIVersions(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, server_address_by_client_cid_rs=None, versions=None): """ - UnversionedAPIVersions - a model defined in Swagger + V1APIVersions - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -33,7 +33,7 @@ def __init__(self, api_version=None, kind=None, server_address_by_client_cid_rs= self.swagger_types = { 'api_version': 'str', 'kind': 'str', - 'server_address_by_client_cid_rs': 'list[UnversionedServerAddressByClientCIDR]', + 'server_address_by_client_cid_rs': 'list[V1ServerAddressByClientCIDR]', 'versions': 'list[str]' } @@ -52,10 +52,10 @@ def __init__(self, api_version=None, kind=None, server_address_by_client_cid_rs= @property def api_version(self): """ - Gets the api_version of this UnversionedAPIVersions. + Gets the api_version of this V1APIVersions. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this UnversionedAPIVersions. + :return: The api_version of this V1APIVersions. :rtype: str """ return self._api_version @@ -63,10 +63,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this UnversionedAPIVersions. + Sets the api_version of this V1APIVersions. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this UnversionedAPIVersions. + :param api_version: The api_version of this V1APIVersions. :type: str """ @@ -75,10 +75,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this UnversionedAPIVersions. + Gets the kind of this V1APIVersions. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this UnversionedAPIVersions. + :return: The kind of this V1APIVersions. :rtype: str """ return self._kind @@ -86,10 +86,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this UnversionedAPIVersions. + Sets the kind of this V1APIVersions. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this UnversionedAPIVersions. + :param kind: The kind of this V1APIVersions. :type: str """ @@ -98,22 +98,22 @@ def kind(self, kind): @property def server_address_by_client_cid_rs(self): """ - Gets the server_address_by_client_cid_rs of this UnversionedAPIVersions. + Gets the server_address_by_client_cid_rs of this V1APIVersions. 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: The server_address_by_client_cid_rs of this V1APIVersions. + :rtype: list[V1ServerAddressByClientCIDR] """ 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. + Sets the server_address_by_client_cid_rs of this V1APIVersions. 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] + :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this V1APIVersions. + :type: list[V1ServerAddressByClientCIDR] """ if server_address_by_client_cid_rs is None: raise ValueError("Invalid value for `server_address_by_client_cid_rs`, must not be `None`") @@ -123,10 +123,10 @@ def server_address_by_client_cid_rs(self, server_address_by_client_cid_rs): @property def versions(self): """ - Gets the versions of this UnversionedAPIVersions. + Gets the versions of this V1APIVersions. versions are the api versions that are available. - :return: The versions of this UnversionedAPIVersions. + :return: The versions of this V1APIVersions. :rtype: list[str] """ return self._versions @@ -134,10 +134,10 @@ def versions(self): @versions.setter def versions(self, versions): """ - Sets the versions of this UnversionedAPIVersions. + Sets the versions of this V1APIVersions. versions are the api versions that are available. - :param versions: The versions of this UnversionedAPIVersions. + :param versions: The versions of this V1APIVersions. :type: list[str] """ if versions is None: diff --git a/kubernetes/client/models/v1_attached_volume.py b/kubernetes/client/models/v1_attached_volume.py index 7c2ddd6511..944a56e32b 100644 --- a/kubernetes/client/models/v1_attached_volume.py +++ b/kubernetes/client/models/v1_attached_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py b/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py index 97050f94db..2160ec4e32 100644 --- a/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py +++ b/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_azure_disk_volume_source.py b/kubernetes/client/models/v1_azure_disk_volume_source.py index 12826e78b3..8b376764ee 100644 --- a/kubernetes/client/models/v1_azure_disk_volume_source.py +++ b/kubernetes/client/models/v1_azure_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_azure_file_volume_source.py b/kubernetes/client/models/v1_azure_file_volume_source.py index 9ec6129514..c7ca237144 100644 --- a/kubernetes/client/models/v1_azure_file_volume_source.py +++ b/kubernetes/client/models/v1_azure_file_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_binding.py b/kubernetes/client/models/v1_binding.py index eda1400323..6ffaa46bf9 100644 --- a/kubernetes/client/models/v1_binding.py +++ b/kubernetes/client/models/v1_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_capabilities.py b/kubernetes/client/models/v1_capabilities.py index 112b32de96..db8c604092 100644 --- a/kubernetes/client/models/v1_capabilities.py +++ b/kubernetes/client/models/v1_capabilities.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_ceph_fs_volume_source.py b/kubernetes/client/models/v1_ceph_fs_volume_source.py index 70161015b0..b0cd27cbac 100644 --- a/kubernetes/client/models/v1_ceph_fs_volume_source.py +++ b/kubernetes/client/models/v1_ceph_fs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_cinder_volume_source.py b/kubernetes/client/models/v1_cinder_volume_source.py index d6d1118e45..63e4597b52 100644 --- a/kubernetes/client/models/v1_cinder_volume_source.py +++ b/kubernetes/client/models/v1_cinder_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_component_condition.py b/kubernetes/client/models/v1_component_condition.py index 4e045f668b..c9cdbac11c 100644 --- a/kubernetes/client/models/v1_component_condition.py +++ b/kubernetes/client/models/v1_component_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_component_status.py b/kubernetes/client/models/v1_component_status.py index a62383dd82..99b8ff9241 100644 --- a/kubernetes/client/models/v1_component_status.py +++ b/kubernetes/client/models/v1_component_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_component_status_list.py b/kubernetes/client/models/v1_component_status_list.py index de2ba289d3..e5af7083c0 100644 --- a/kubernetes/client/models/v1_component_status_list.py +++ b/kubernetes/client/models/v1_component_status_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1ComponentStatus]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_config_map.py b/kubernetes/client/models/v1_config_map.py index 1e0fd4d3d0..8055a4cc53 100644 --- a/kubernetes/client/models/v1_config_map.py +++ b/kubernetes/client/models/v1_config_map.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_config_map_env_source.py b/kubernetes/client/models/v1_config_map_env_source.py new file mode 100644 index 0000000000..5e96e58f1d --- /dev/null +++ b/kubernetes/client/models/v1_config_map_env_source.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ConfigMapEnvSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, optional=None): + """ + V1ConfigMapEnvSource - 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', + 'optional': 'bool' + } + + self.attribute_map = { + 'name': 'name', + 'optional': 'optional' + } + + self._name = name + self._optional = optional + + @property + def name(self): + """ + Gets the name of this V1ConfigMapEnvSource. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :return: The name of this V1ConfigMapEnvSource. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ConfigMapEnvSource. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :param name: The name of this V1ConfigMapEnvSource. + :type: str + """ + + self._name = name + + @property + def optional(self): + """ + Gets the optional of this V1ConfigMapEnvSource. + Specify whether the ConfigMap must be defined + + :return: The optional of this V1ConfigMapEnvSource. + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """ + Sets the optional of this V1ConfigMapEnvSource. + Specify whether the ConfigMap must be defined + + :param optional: The optional of this V1ConfigMapEnvSource. + :type: bool + """ + + self._optional = optional + + 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/kubernetes/client/models/v1_config_map_key_selector.py b/kubernetes/client/models/v1_config_map_key_selector.py index 070a2edeaa..081e2efe5f 100644 --- a/kubernetes/client/models/v1_config_map_key_selector.py +++ b/kubernetes/client/models/v1_config_map_key_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ 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, name=None): + def __init__(self, key=None, name=None, optional=None): """ V1ConfigMapKeySelector - a model defined in Swagger @@ -32,16 +32,19 @@ def __init__(self, key=None, name=None): """ self.swagger_types = { 'key': 'str', - 'name': 'str' + 'name': 'str', + 'optional': 'bool' } self.attribute_map = { 'key': 'key', - 'name': 'name' + 'name': 'name', + 'optional': 'optional' } self._key = key self._name = name + self._optional = optional @property def key(self): @@ -91,6 +94,29 @@ def name(self, name): self._name = name + @property + def optional(self): + """ + Gets the optional of this V1ConfigMapKeySelector. + Specify whether the ConfigMap or it's key must be defined + + :return: The optional of this V1ConfigMapKeySelector. + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """ + Sets the optional of this V1ConfigMapKeySelector. + Specify whether the ConfigMap or it's key must be defined + + :param optional: The optional of this V1ConfigMapKeySelector. + :type: bool + """ + + self._optional = optional + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubernetes/client/models/v1_config_map_list.py b/kubernetes/client/models/v1_config_map_list.py index 9469affa38..9d73c2f0ba 100644 --- a/kubernetes/client/models/v1_config_map_list.py +++ b/kubernetes/client/models/v1_config_map_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1ConfigMap]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The metadata of this V1ConfigMapList. - :rtype: UnversionedListMeta + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V1ConfigMapList. - :type: UnversionedListMeta + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_config_map_projection.py b/kubernetes/client/models/v1_config_map_projection.py new file mode 100644 index 0000000000..d7b2345052 --- /dev/null +++ b/kubernetes/client/models/v1_config_map_projection.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ConfigMapProjection(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, name=None, optional=None): + """ + V1ConfigMapProjection - 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[V1KeyToPath]', + 'name': 'str', + 'optional': 'bool' + } + + self.attribute_map = { + 'items': 'items', + 'name': 'name', + 'optional': 'optional' + } + + self._items = items + self._name = name + self._optional = optional + + @property + def items(self): + """ + Gets the items of this V1ConfigMapProjection. + If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + + :return: The items of this V1ConfigMapProjection. + :rtype: list[V1KeyToPath] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1ConfigMapProjection. + If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + + :param items: The items of this V1ConfigMapProjection. + :type: list[V1KeyToPath] + """ + + self._items = items + + @property + def name(self): + """ + Gets the name of this V1ConfigMapProjection. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :return: The name of this V1ConfigMapProjection. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ConfigMapProjection. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :param name: The name of this V1ConfigMapProjection. + :type: str + """ + + self._name = name + + @property + def optional(self): + """ + Gets the optional of this V1ConfigMapProjection. + Specify whether the ConfigMap or it's keys must be defined + + :return: The optional of this V1ConfigMapProjection. + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """ + Sets the optional of this V1ConfigMapProjection. + Specify whether the ConfigMap or it's keys must be defined + + :param optional: The optional of this V1ConfigMapProjection. + :type: bool + """ + + self._optional = optional + + 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/kubernetes/client/models/v1_config_map_volume_source.py b/kubernetes/client/models/v1_config_map_volume_source.py index 4a04f805e2..c6fc6cfcdc 100644 --- a/kubernetes/client/models/v1_config_map_volume_source.py +++ b/kubernetes/client/models/v1_config_map_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1ConfigMapVolumeSource(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, default_mode=None, items=None, name=None): + def __init__(self, default_mode=None, items=None, name=None, optional=None): """ V1ConfigMapVolumeSource - a model defined in Swagger @@ -33,18 +33,21 @@ def __init__(self, default_mode=None, items=None, name=None): self.swagger_types = { 'default_mode': 'int', 'items': 'list[V1KeyToPath]', - 'name': 'str' + 'name': 'str', + 'optional': 'bool' } self.attribute_map = { 'default_mode': 'defaultMode', 'items': 'items', - 'name': 'name' + 'name': 'name', + 'optional': 'optional' } self._default_mode = default_mode self._items = items self._name = name + self._optional = optional @property def default_mode(self): @@ -73,7 +76,7 @@ def default_mode(self, default_mode): def items(self): """ Gets the items of this V1ConfigMapVolumeSource. - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. + If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. :return: The items of this V1ConfigMapVolumeSource. :rtype: list[V1KeyToPath] @@ -84,7 +87,7 @@ def items(self): def items(self, items): """ Sets the items of this V1ConfigMapVolumeSource. - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. + If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. :param items: The items of this V1ConfigMapVolumeSource. :type: list[V1KeyToPath] @@ -115,6 +118,29 @@ def name(self, name): self._name = name + @property + def optional(self): + """ + Gets the optional of this V1ConfigMapVolumeSource. + Specify whether the ConfigMap or it's keys must be defined + + :return: The optional of this V1ConfigMapVolumeSource. + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """ + Sets the optional of this V1ConfigMapVolumeSource. + Specify whether the ConfigMap or it's keys must be defined + + :param optional: The optional of this V1ConfigMapVolumeSource. + :type: bool + """ + + self._optional = optional + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubernetes/client/models/v1_container.py b/kubernetes/client/models/v1_container.py index e0985dd553..5298fb769f 100644 --- a/kubernetes/client/models/v1_container.py +++ b/kubernetes/client/models/v1_container.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ 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): + def __init__(self, args=None, command=None, env=None, env_from=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, termination_message_policy=None, tty=None, volume_mounts=None, working_dir=None): """ V1Container - a model defined in Swagger @@ -34,6 +34,7 @@ def __init__(self, args=None, command=None, env=None, image=None, image_pull_pol 'args': 'list[str]', 'command': 'list[str]', 'env': 'list[V1EnvVar]', + 'env_from': 'list[V1EnvFromSource]', 'image': 'str', 'image_pull_policy': 'str', 'lifecycle': 'V1Lifecycle', @@ -46,6 +47,7 @@ def __init__(self, args=None, command=None, env=None, image=None, image_pull_pol 'stdin': 'bool', 'stdin_once': 'bool', 'termination_message_path': 'str', + 'termination_message_policy': 'str', 'tty': 'bool', 'volume_mounts': 'list[V1VolumeMount]', 'working_dir': 'str' @@ -55,6 +57,7 @@ def __init__(self, args=None, command=None, env=None, image=None, image_pull_pol 'args': 'args', 'command': 'command', 'env': 'env', + 'env_from': 'envFrom', 'image': 'image', 'image_pull_policy': 'imagePullPolicy', 'lifecycle': 'lifecycle', @@ -67,6 +70,7 @@ def __init__(self, args=None, command=None, env=None, image=None, image_pull_pol 'stdin': 'stdin', 'stdin_once': 'stdinOnce', 'termination_message_path': 'terminationMessagePath', + 'termination_message_policy': 'terminationMessagePolicy', 'tty': 'tty', 'volume_mounts': 'volumeMounts', 'working_dir': 'workingDir' @@ -75,6 +79,7 @@ def __init__(self, args=None, command=None, env=None, image=None, image_pull_pol self._args = args self._command = command self._env = env + self._env_from = env_from self._image = image self._image_pull_policy = image_pull_policy self._lifecycle = lifecycle @@ -87,6 +92,7 @@ def __init__(self, args=None, command=None, env=None, image=None, image_pull_pol self._stdin = stdin self._stdin_once = stdin_once self._termination_message_path = termination_message_path + self._termination_message_policy = termination_message_policy self._tty = tty self._volume_mounts = volume_mounts self._working_dir = working_dir @@ -160,6 +166,29 @@ def env(self, env): self._env = env + @property + def env_from(self): + """ + Gets the env_from of this V1Container. + List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + + :return: The env_from of this V1Container. + :rtype: list[V1EnvFromSource] + """ + return self._env_from + + @env_from.setter + def env_from(self, env_from): + """ + Sets the env_from of this V1Container. + List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + + :param env_from: The env_from of this V1Container. + :type: list[V1EnvFromSource] + """ + + self._env_from = env_from + @property def image(self): """ @@ -419,7 +448,7 @@ def stdin_once(self, stdin_once): 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. + 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. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. :return: The termination_message_path of this V1Container. :rtype: str @@ -430,7 +459,7 @@ def termination_message_path(self): 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. + 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. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. :param termination_message_path: The termination_message_path of this V1Container. :type: str @@ -438,6 +467,29 @@ def termination_message_path(self, termination_message_path): self._termination_message_path = termination_message_path + @property + def termination_message_policy(self): + """ + Gets the termination_message_policy of this V1Container. + Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + + :return: The termination_message_policy of this V1Container. + :rtype: str + """ + return self._termination_message_policy + + @termination_message_policy.setter + def termination_message_policy(self, termination_message_policy): + """ + Sets the termination_message_policy of this V1Container. + Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + + :param termination_message_policy: The termination_message_policy of this V1Container. + :type: str + """ + + self._termination_message_policy = termination_message_policy + @property def tty(self): """ diff --git a/kubernetes/client/models/v1_container_image.py b/kubernetes/client/models/v1_container_image.py index 2e8a7e489c..56974c0c66 100644 --- a/kubernetes/client/models/v1_container_image.py +++ b/kubernetes/client/models/v1_container_image.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_container_port.py b/kubernetes/client/models/v1_container_port.py index de75216e2c..3a8acfd4ab 100644 --- a/kubernetes/client/models/v1_container_port.py +++ b/kubernetes/client/models/v1_container_port.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_container_state.py b/kubernetes/client/models/v1_container_state.py index 2e30908081..a4a64b52e5 100644 --- a/kubernetes/client/models/v1_container_state.py +++ b/kubernetes/client/models/v1_container_state.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_container_state_running.py b/kubernetes/client/models/v1_container_state_running.py index 88caac26de..ad7f7f6528 100644 --- a/kubernetes/client/models/v1_container_state_running.py +++ b/kubernetes/client/models/v1_container_state_running.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,7 +31,7 @@ def __init__(self, started_at=None): and the value is json key in definition. """ self.swagger_types = { - 'started_at': 'UnversionedTime' + 'started_at': 'V1Time' } self.attribute_map = { @@ -47,7 +47,7 @@ def started_at(self): Time at which the container was last (re-)started :return: The started_at of this V1ContainerStateRunning. - :rtype: UnversionedTime + :rtype: V1Time """ return self._started_at @@ -58,7 +58,7 @@ def started_at(self, started_at): Time at which the container was last (re-)started :param started_at: The started_at of this V1ContainerStateRunning. - :type: UnversionedTime + :type: V1Time """ self._started_at = started_at diff --git a/kubernetes/client/models/v1_container_state_terminated.py b/kubernetes/client/models/v1_container_state_terminated.py index 23e902864a..d4db505af0 100644 --- a/kubernetes/client/models/v1_container_state_terminated.py +++ b/kubernetes/client/models/v1_container_state_terminated.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,11 +33,11 @@ def __init__(self, container_id=None, exit_code=None, finished_at=None, message= self.swagger_types = { 'container_id': 'str', 'exit_code': 'int', - 'finished_at': 'UnversionedTime', + 'finished_at': 'V1Time', 'message': 'str', 'reason': 'str', 'signal': 'int', - 'started_at': 'UnversionedTime' + 'started_at': 'V1Time' } self.attribute_map = { @@ -113,7 +113,7 @@ def finished_at(self): Time at which the container last terminated :return: The finished_at of this V1ContainerStateTerminated. - :rtype: UnversionedTime + :rtype: V1Time """ return self._finished_at @@ -124,7 +124,7 @@ def finished_at(self, finished_at): Time at which the container last terminated :param finished_at: The finished_at of this V1ContainerStateTerminated. - :type: UnversionedTime + :type: V1Time """ self._finished_at = finished_at @@ -205,7 +205,7 @@ def started_at(self): Time at which previous execution of the container started :return: The started_at of this V1ContainerStateTerminated. - :rtype: UnversionedTime + :rtype: V1Time """ return self._started_at @@ -216,7 +216,7 @@ def started_at(self, started_at): Time at which previous execution of the container started :param started_at: The started_at of this V1ContainerStateTerminated. - :type: UnversionedTime + :type: V1Time """ self._started_at = started_at diff --git a/kubernetes/client/models/v1_container_state_waiting.py b/kubernetes/client/models/v1_container_state_waiting.py index 8a7b39b1de..1d4b4d5831 100644 --- a/kubernetes/client/models/v1_container_state_waiting.py +++ b/kubernetes/client/models/v1_container_state_waiting.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_container_status.py b/kubernetes/client/models/v1_container_status.py index e8c52aac5d..017317125b 100644 --- a/kubernetes/client/models/v1_container_status.py +++ b/kubernetes/client/models/v1_container_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_cross_version_object_reference.py b/kubernetes/client/models/v1_cross_version_object_reference.py index b14d925c36..a8db59182d 100644 --- a/kubernetes/client/models/v1_cross_version_object_reference.py +++ b/kubernetes/client/models/v1_cross_version_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_daemon_endpoint.py b/kubernetes/client/models/v1_daemon_endpoint.py index 32eec9e40b..4596f8ee64 100644 --- a/kubernetes/client/models/v1_daemon_endpoint.py +++ b/kubernetes/client/models/v1_daemon_endpoint.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_delete_options.py b/kubernetes/client/models/v1_delete_options.py index 3ae0cd50fd..bdf7257c15 100644 --- a/kubernetes/client/models/v1_delete_options.py +++ b/kubernetes/client/models/v1_delete_options.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1DeleteOptions(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, grace_period_seconds=None, kind=None, orphan_dependents=None, preconditions=None): + def __init__(self, api_version=None, grace_period_seconds=None, kind=None, orphan_dependents=None, preconditions=None, propagation_policy=None): """ V1DeleteOptions - a model defined in Swagger @@ -35,7 +35,8 @@ def __init__(self, api_version=None, grace_period_seconds=None, kind=None, orpha 'grace_period_seconds': 'int', 'kind': 'str', 'orphan_dependents': 'bool', - 'preconditions': 'V1Preconditions' + 'preconditions': 'V1Preconditions', + 'propagation_policy': 'str' } self.attribute_map = { @@ -43,7 +44,8 @@ def __init__(self, api_version=None, grace_period_seconds=None, kind=None, orpha 'grace_period_seconds': 'gracePeriodSeconds', 'kind': 'kind', 'orphan_dependents': 'orphanDependents', - 'preconditions': 'preconditions' + 'preconditions': 'preconditions', + 'propagation_policy': 'propagationPolicy' } self._api_version = api_version @@ -51,6 +53,7 @@ def __init__(self, api_version=None, grace_period_seconds=None, kind=None, orpha self._kind = kind self._orphan_dependents = orphan_dependents self._preconditions = preconditions + self._propagation_policy = propagation_policy @property def api_version(self): @@ -125,7 +128,7 @@ def kind(self, kind): 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. + Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :return: The orphan_dependents of this V1DeleteOptions. :rtype: bool @@ -136,7 +139,7 @@ def orphan_dependents(self): 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. + Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param orphan_dependents: The orphan_dependents of this V1DeleteOptions. :type: bool @@ -167,6 +170,29 @@ def preconditions(self, preconditions): self._preconditions = preconditions + @property + def propagation_policy(self): + """ + Gets the propagation_policy of this V1DeleteOptions. + Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + + :return: The propagation_policy of this V1DeleteOptions. + :rtype: str + """ + return self._propagation_policy + + @propagation_policy.setter + def propagation_policy(self, propagation_policy): + """ + Sets the propagation_policy of this V1DeleteOptions. + Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + + :param propagation_policy: The propagation_policy of this V1DeleteOptions. + :type: str + """ + + self._propagation_policy = propagation_policy + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubernetes/client/models/v1_downward_api_projection.py b/kubernetes/client/models/v1_downward_api_projection.py new file mode 100644 index 0000000000..0e365700f5 --- /dev/null +++ b/kubernetes/client/models/v1_downward_api_projection.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1DownwardAPIProjection(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None): + """ + V1DownwardAPIProjection - 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[V1DownwardAPIVolumeFile]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = items + + @property + def items(self): + """ + Gets the items of this V1DownwardAPIProjection. + Items is a list of DownwardAPIVolume file + + :return: The items of this V1DownwardAPIProjection. + :rtype: list[V1DownwardAPIVolumeFile] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1DownwardAPIProjection. + Items is a list of DownwardAPIVolume file + + :param items: The items of this V1DownwardAPIProjection. + :type: list[V1DownwardAPIVolumeFile] + """ + + self._items = items + + 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/kubernetes/client/models/v1_downward_api_volume_file.py b/kubernetes/client/models/v1_downward_api_volume_file.py index 066426bc53..cd91534932 100644 --- a/kubernetes/client/models/v1_downward_api_volume_file.py +++ b/kubernetes/client/models/v1_downward_api_volume_file.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_downward_api_volume_source.py b/kubernetes/client/models/v1_downward_api_volume_source.py index e1198a1db2..408f5f5bb2 100644 --- a/kubernetes/client/models/v1_downward_api_volume_source.py +++ b/kubernetes/client/models/v1_downward_api_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_empty_dir_volume_source.py b/kubernetes/client/models/v1_empty_dir_volume_source.py index f66367cc5c..add6e53128 100644 --- a/kubernetes/client/models/v1_empty_dir_volume_source.py +++ b/kubernetes/client/models/v1_empty_dir_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_endpoint_address.py b/kubernetes/client/models/v1_endpoint_address.py index 51eca27b4e..a13a778574 100644 --- a/kubernetes/client/models/v1_endpoint_address.py +++ b/kubernetes/client/models/v1_endpoint_address.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_endpoint_port.py b/kubernetes/client/models/v1_endpoint_port.py index 7803d7ccd6..6e157298ba 100644 --- a/kubernetes/client/models/v1_endpoint_port.py +++ b/kubernetes/client/models/v1_endpoint_port.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_endpoint_subset.py b/kubernetes/client/models/v1_endpoint_subset.py index 8c314a9ce8..bba8060775 100644 --- a/kubernetes/client/models/v1_endpoint_subset.py +++ b/kubernetes/client/models/v1_endpoint_subset.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_endpoints.py b/kubernetes/client/models/v1_endpoints.py index bf6e6ca139..98bb80d605 100644 --- a/kubernetes/client/models/v1_endpoints.py +++ b/kubernetes/client/models/v1_endpoints.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_endpoints_list.py b/kubernetes/client/models/v1_endpoints_list.py index c8d56a95a2..886d054c40 100644 --- a/kubernetes/client/models/v1_endpoints_list.py +++ b/kubernetes/client/models/v1_endpoints_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Endpoints]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_env_from_source.py b/kubernetes/client/models/v1_env_from_source.py new file mode 100644 index 0000000000..046289e884 --- /dev/null +++ b/kubernetes/client/models/v1_env_from_source.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1EnvFromSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, config_map_ref=None, prefix=None, secret_ref=None): + """ + V1EnvFromSource - 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_ref': 'V1ConfigMapEnvSource', + 'prefix': 'str', + 'secret_ref': 'V1SecretEnvSource' + } + + self.attribute_map = { + 'config_map_ref': 'configMapRef', + 'prefix': 'prefix', + 'secret_ref': 'secretRef' + } + + self._config_map_ref = config_map_ref + self._prefix = prefix + self._secret_ref = secret_ref + + @property + def config_map_ref(self): + """ + Gets the config_map_ref of this V1EnvFromSource. + The ConfigMap to select from + + :return: The config_map_ref of this V1EnvFromSource. + :rtype: V1ConfigMapEnvSource + """ + return self._config_map_ref + + @config_map_ref.setter + def config_map_ref(self, config_map_ref): + """ + Sets the config_map_ref of this V1EnvFromSource. + The ConfigMap to select from + + :param config_map_ref: The config_map_ref of this V1EnvFromSource. + :type: V1ConfigMapEnvSource + """ + + self._config_map_ref = config_map_ref + + @property + def prefix(self): + """ + Gets the prefix of this V1EnvFromSource. + An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + + :return: The prefix of this V1EnvFromSource. + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """ + Sets the prefix of this V1EnvFromSource. + An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + + :param prefix: The prefix of this V1EnvFromSource. + :type: str + """ + + self._prefix = prefix + + @property + def secret_ref(self): + """ + Gets the secret_ref of this V1EnvFromSource. + The Secret to select from + + :return: The secret_ref of this V1EnvFromSource. + :rtype: V1SecretEnvSource + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + Sets the secret_ref of this V1EnvFromSource. + The Secret to select from + + :param secret_ref: The secret_ref of this V1EnvFromSource. + :type: V1SecretEnvSource + """ + + self._secret_ref = secret_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/kubernetes/client/models/v1_env_var.py b/kubernetes/client/models/v1_env_var.py index 60a7726d65..ee7c17534e 100644 --- a/kubernetes/client/models/v1_env_var.py +++ b/kubernetes/client/models/v1_env_var.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_env_var_source.py b/kubernetes/client/models/v1_env_var_source.py index 74a26a9d3b..3476a30fc3 100644 --- a/kubernetes/client/models/v1_env_var_source.py +++ b/kubernetes/client/models/v1_env_var_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_event.py b/kubernetes/client/models/v1_event.py index 598e9b27a0..646111cf5e 100644 --- a/kubernetes/client/models/v1_event.py +++ b/kubernetes/client/models/v1_event.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,10 +33,10 @@ def __init__(self, api_version=None, count=None, first_timestamp=None, involved_ self.swagger_types = { 'api_version': 'str', 'count': 'int', - 'first_timestamp': 'UnversionedTime', + 'first_timestamp': 'V1Time', 'involved_object': 'V1ObjectReference', 'kind': 'str', - 'last_timestamp': 'UnversionedTime', + 'last_timestamp': 'V1Time', 'message': 'str', 'metadata': 'V1ObjectMeta', 'reason': 'str', @@ -123,7 +123,7 @@ def first_timestamp(self): 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 + :rtype: V1Time """ return self._first_timestamp @@ -134,7 +134,7 @@ def first_timestamp(self, first_timestamp): 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 + :type: V1Time """ self._first_timestamp = first_timestamp @@ -194,7 +194,7 @@ def last_timestamp(self): The time at which the most recent occurrence of this event was recorded. :return: The last_timestamp of this V1Event. - :rtype: UnversionedTime + :rtype: V1Time """ return self._last_timestamp @@ -205,7 +205,7 @@ def last_timestamp(self, last_timestamp): The time at which the most recent occurrence of this event was recorded. :param last_timestamp: The last_timestamp of this V1Event. - :type: UnversionedTime + :type: V1Time """ self._last_timestamp = last_timestamp diff --git a/kubernetes/client/models/v1_event_list.py b/kubernetes/client/models/v1_event_list.py index 1771cf7f46..9bc183699b 100644 --- a/kubernetes/client/models/v1_event_list.py +++ b/kubernetes/client/models/v1_event_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Event]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_event_source.py b/kubernetes/client/models/v1_event_source.py index f6776ee6f6..53147a12eb 100644 --- a/kubernetes/client/models/v1_event_source.py +++ b/kubernetes/client/models/v1_event_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_exec_action.py b/kubernetes/client/models/v1_exec_action.py index 2c2f8d1969..867df1e38c 100644 --- a/kubernetes/client/models/v1_exec_action.py +++ b/kubernetes/client/models/v1_exec_action.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_fc_volume_source.py b/kubernetes/client/models/v1_fc_volume_source.py index 63e1b365d3..21c76a6f80 100644 --- a/kubernetes/client/models/v1_fc_volume_source.py +++ b/kubernetes/client/models/v1_fc_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_flex_volume_source.py b/kubernetes/client/models/v1_flex_volume_source.py index c0d5e24b49..fe374ddbcc 100644 --- a/kubernetes/client/models/v1_flex_volume_source.py +++ b/kubernetes/client/models/v1_flex_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_flocker_volume_source.py b/kubernetes/client/models/v1_flocker_volume_source.py index 1fce5a70fa..962e61b808 100644 --- a/kubernetes/client/models/v1_flocker_volume_source.py +++ b/kubernetes/client/models/v1_flocker_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py b/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py index 68ef3f269f..6b6362f3bb 100644 --- a/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py +++ b/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_git_repo_volume_source.py b/kubernetes/client/models/v1_git_repo_volume_source.py index faf6f94dcf..81d4b2194f 100644 --- a/kubernetes/client/models/v1_git_repo_volume_source.py +++ b/kubernetes/client/models/v1_git_repo_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_glusterfs_volume_source.py b/kubernetes/client/models/v1_glusterfs_volume_source.py index 5cdffa23a5..54a3dccda2 100644 --- a/kubernetes/client/models/v1_glusterfs_volume_source.py +++ b/kubernetes/client/models/v1_glusterfs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/unversioned_group_version_for_discovery.py b/kubernetes/client/models/v1_group_version_for_discovery.py similarity index 82% rename from kubernetes/client/models/unversioned_group_version_for_discovery.py rename to kubernetes/client/models/v1_group_version_for_discovery.py index ee76f98e6c..e4dcedfdbc 100644 --- a/kubernetes/client/models/unversioned_group_version_for_discovery.py +++ b/kubernetes/client/models/v1_group_version_for_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class UnversionedGroupVersionForDiscovery(object): +class V1GroupVersionForDiscovery(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 + V1GroupVersionForDiscovery - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -46,10 +46,10 @@ def __init__(self, group_version=None, version=None): @property def group_version(self): """ - Gets the group_version of this UnversionedGroupVersionForDiscovery. + Gets the group_version of this V1GroupVersionForDiscovery. groupVersion specifies the API group and version in the form \"group/version\" - :return: The group_version of this UnversionedGroupVersionForDiscovery. + :return: The group_version of this V1GroupVersionForDiscovery. :rtype: str """ return self._group_version @@ -57,10 +57,10 @@ def group_version(self): @group_version.setter def group_version(self, group_version): """ - Sets the group_version of this UnversionedGroupVersionForDiscovery. + Sets the group_version of this V1GroupVersionForDiscovery. groupVersion specifies the API group and version in the form \"group/version\" - :param group_version: The group_version of this UnversionedGroupVersionForDiscovery. + :param group_version: The group_version of this V1GroupVersionForDiscovery. :type: str """ if group_version is None: @@ -71,10 +71,10 @@ def group_version(self, group_version): @property def version(self): """ - Gets the version of this UnversionedGroupVersionForDiscovery. + Gets the version of this V1GroupVersionForDiscovery. 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. + :return: The version of this V1GroupVersionForDiscovery. :rtype: str """ return self._version @@ -82,10 +82,10 @@ def version(self): @version.setter def version(self, version): """ - Sets the version of this UnversionedGroupVersionForDiscovery. + Sets the version of this V1GroupVersionForDiscovery. 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. + :param version: The version of this V1GroupVersionForDiscovery. :type: str """ if version is None: diff --git a/kubernetes/client/models/v1_handler.py b/kubernetes/client/models/v1_handler.py index f23f3f4161..a64a7a5c7d 100644 --- a/kubernetes/client/models/v1_handler.py +++ b/kubernetes/client/models/v1_handler.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler.py index 9a2103aa43..a10a2bb436 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py index 57b677f1a3..dae9f2b27d 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1HorizontalPodAutoscaler]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. :return: The metadata of this V1HorizontalPodAutoscalerList. - :rtype: UnversionedListMeta + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. :param metadata: The metadata of this V1HorizontalPodAutoscalerList. - :type: UnversionedListMeta + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py index 47aa8b9bd0..189a961069 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py index 7201b8e955..953c7ea4f5 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, current_cpu_utilization_percentage=None, current_replicas=Non 'current_cpu_utilization_percentage': 'int', 'current_replicas': 'int', 'desired_replicas': 'int', - 'last_scale_time': 'UnversionedTime', + 'last_scale_time': 'V1Time', 'observed_generation': 'int' } @@ -132,7 +132,7 @@ def last_scale_time(self): 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 + :rtype: V1Time """ return self._last_scale_time @@ -143,7 +143,7 @@ def last_scale_time(self, last_scale_time): 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 + :type: V1Time """ self._last_scale_time = last_scale_time diff --git a/kubernetes/client/models/v1_host_path_volume_source.py b/kubernetes/client/models/v1_host_path_volume_source.py index b4835d075f..9233440961 100644 --- a/kubernetes/client/models/v1_host_path_volume_source.py +++ b/kubernetes/client/models/v1_host_path_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_http_get_action.py b/kubernetes/client/models/v1_http_get_action.py index dc927f4890..713ef12cb9 100644 --- a/kubernetes/client/models/v1_http_get_action.py +++ b/kubernetes/client/models/v1_http_get_action.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_http_header.py b/kubernetes/client/models/v1_http_header.py index 0ad79326a1..329a57eadd 100644 --- a/kubernetes/client/models/v1_http_header.py +++ b/kubernetes/client/models/v1_http_header.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_iscsi_volume_source.py b/kubernetes/client/models/v1_iscsi_volume_source.py index 4e9bb2f912..0792529900 100644 --- a/kubernetes/client/models/v1_iscsi_volume_source.py +++ b/kubernetes/client/models/v1_iscsi_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1ISCSIVolumeSource(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, fs_type=None, iqn=None, iscsi_interface=None, lun=None, read_only=None, target_portal=None): + def __init__(self, fs_type=None, iqn=None, iscsi_interface=None, lun=None, portals=None, read_only=None, target_portal=None): """ V1ISCSIVolumeSource - a model defined in Swagger @@ -35,6 +35,7 @@ def __init__(self, fs_type=None, iqn=None, iscsi_interface=None, lun=None, read_ 'iqn': 'str', 'iscsi_interface': 'str', 'lun': 'int', + 'portals': 'list[str]', 'read_only': 'bool', 'target_portal': 'str' } @@ -44,6 +45,7 @@ def __init__(self, fs_type=None, iqn=None, iscsi_interface=None, lun=None, read_ 'iqn': 'iqn', 'iscsi_interface': 'iscsiInterface', 'lun': 'lun', + 'portals': 'portals', 'read_only': 'readOnly', 'target_portal': 'targetPortal' } @@ -52,6 +54,7 @@ def __init__(self, fs_type=None, iqn=None, iscsi_interface=None, lun=None, read_ self._iqn = iqn self._iscsi_interface = iscsi_interface self._lun = lun + self._portals = portals self._read_only = read_only self._target_portal = target_portal @@ -151,6 +154,29 @@ def lun(self, lun): self._lun = lun + @property + def portals(self): + """ + Gets the portals of this V1ISCSIVolumeSource. + iSCSI target portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + :return: The portals of this V1ISCSIVolumeSource. + :rtype: list[str] + """ + return self._portals + + @portals.setter + def portals(self, portals): + """ + Sets the portals of this V1ISCSIVolumeSource. + iSCSI target portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + :param portals: The portals of this V1ISCSIVolumeSource. + :type: list[str] + """ + + self._portals = portals + @property def read_only(self): """ diff --git a/kubernetes/client/models/v1_job.py b/kubernetes/client/models/v1_job.py index 18516eb58a..c213d3d9c9 100644 --- a/kubernetes/client/models/v1_job.py +++ b/kubernetes/client/models/v1_job.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_job_condition.py b/kubernetes/client/models/v1_job_condition.py index 1c692df18c..8e71eaaa5b 100644 --- a/kubernetes/client/models/v1_job_condition.py +++ b/kubernetes/client/models/v1_job_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,8 +31,8 @@ def __init__(self, last_probe_time=None, last_transition_time=None, message=None and the value is json key in definition. """ self.swagger_types = { - 'last_probe_time': 'UnversionedTime', - 'last_transition_time': 'UnversionedTime', + 'last_probe_time': 'V1Time', + 'last_transition_time': 'V1Time', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -62,7 +62,7 @@ def last_probe_time(self): Last time the condition was checked. :return: The last_probe_time of this V1JobCondition. - :rtype: UnversionedTime + :rtype: V1Time """ return self._last_probe_time @@ -73,7 +73,7 @@ def last_probe_time(self, last_probe_time): Last time the condition was checked. :param last_probe_time: The last_probe_time of this V1JobCondition. - :type: UnversionedTime + :type: V1Time """ self._last_probe_time = last_probe_time @@ -85,7 +85,7 @@ def last_transition_time(self): Last time the condition transit from one status to another. :return: The last_transition_time of this V1JobCondition. - :rtype: UnversionedTime + :rtype: V1Time """ return self._last_transition_time @@ -96,7 +96,7 @@ def last_transition_time(self, last_transition_time): Last time the condition transit from one status to another. :param last_transition_time: The last_transition_time of this V1JobCondition. - :type: UnversionedTime + :type: V1Time """ self._last_transition_time = last_transition_time diff --git a/kubernetes/client/models/v1_job_list.py b/kubernetes/client/models/v1_job_list.py index 99f63b00fc..db72886665 100644 --- a/kubernetes/client/models/v1_job_list.py +++ b/kubernetes/client/models/v1_job_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Job]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The metadata of this V1JobList. - :rtype: UnversionedListMeta + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_job_spec.py b/kubernetes/client/models/v1_job_spec.py index 8e7badb2be..0556673789 100644 --- a/kubernetes/client/models/v1_job_spec.py +++ b/kubernetes/client/models/v1_job_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -35,7 +35,7 @@ def __init__(self, active_deadline_seconds=None, completions=None, manual_select 'completions': 'int', 'manual_selector': 'bool', 'parallelism': 'int', - 'selector': 'UnversionedLabelSelector', + 'selector': 'V1LabelSelector', 'template': 'V1PodTemplateSpec' } @@ -154,7 +154,7 @@ def selector(self): 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 + :rtype: V1LabelSelector """ return self._selector @@ -165,7 +165,7 @@ def selector(self, selector): 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 + :type: V1LabelSelector """ self._selector = selector diff --git a/kubernetes/client/models/v1_job_status.py b/kubernetes/client/models/v1_job_status.py index 58b4fd7536..add38ab47a 100644 --- a/kubernetes/client/models/v1_job_status.py +++ b/kubernetes/client/models/v1_job_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,10 +32,10 @@ def __init__(self, active=None, completion_time=None, conditions=None, failed=No """ self.swagger_types = { 'active': 'int', - 'completion_time': 'UnversionedTime', + 'completion_time': 'V1Time', 'conditions': 'list[V1JobCondition]', 'failed': 'int', - 'start_time': 'UnversionedTime', + 'start_time': 'V1Time', 'succeeded': 'int' } @@ -85,7 +85,7 @@ def completion_time(self): 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 + :rtype: V1Time """ return self._completion_time @@ -96,7 +96,7 @@ def completion_time(self, completion_time): 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 + :type: V1Time """ self._completion_time = completion_time @@ -154,7 +154,7 @@ def start_time(self): 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 + :rtype: V1Time """ return self._start_time @@ -165,7 +165,7 @@ def start_time(self, start_time): 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 + :type: V1Time """ self._start_time = start_time diff --git a/kubernetes/client/models/v1_key_to_path.py b/kubernetes/client/models/v1_key_to_path.py index 23ac6fbaa6..0231878961 100644 --- a/kubernetes/client/models/v1_key_to_path.py +++ b/kubernetes/client/models/v1_key_to_path.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/unversioned_label_selector.py b/kubernetes/client/models/v1_label_selector.py similarity index 81% rename from kubernetes/client/models/unversioned_label_selector.py rename to kubernetes/client/models/v1_label_selector.py index aa42da0e11..a58e40c25e 100644 --- a/kubernetes/client/models/unversioned_label_selector.py +++ b/kubernetes/client/models/v1_label_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class UnversionedLabelSelector(object): +class V1LabelSelector(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 + V1LabelSelector - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -31,7 +31,7 @@ def __init__(self, match_expressions=None, match_labels=None): and the value is json key in definition. """ self.swagger_types = { - 'match_expressions': 'list[UnversionedLabelSelectorRequirement]', + 'match_expressions': 'list[V1LabelSelectorRequirement]', 'match_labels': 'dict(str, str)' } @@ -46,22 +46,22 @@ def __init__(self, match_expressions=None, match_labels=None): @property def match_expressions(self): """ - Gets the match_expressions of this UnversionedLabelSelector. + Gets the match_expressions of this V1LabelSelector. matchExpressions is a list of label selector requirements. The requirements are ANDed. - :return: The match_expressions of this UnversionedLabelSelector. - :rtype: list[UnversionedLabelSelectorRequirement] + :return: The match_expressions of this V1LabelSelector. + :rtype: list[V1LabelSelectorRequirement] """ return self._match_expressions @match_expressions.setter def match_expressions(self, match_expressions): """ - Sets the match_expressions of this UnversionedLabelSelector. + Sets the match_expressions of this V1LabelSelector. matchExpressions is a list of label selector requirements. The requirements are ANDed. - :param match_expressions: The match_expressions of this UnversionedLabelSelector. - :type: list[UnversionedLabelSelectorRequirement] + :param match_expressions: The match_expressions of this V1LabelSelector. + :type: list[V1LabelSelectorRequirement] """ self._match_expressions = match_expressions @@ -69,10 +69,10 @@ def match_expressions(self, match_expressions): @property def match_labels(self): """ - Gets the match_labels of this UnversionedLabelSelector. + Gets the match_labels of this V1LabelSelector. 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. + :return: The match_labels of this V1LabelSelector. :rtype: dict(str, str) """ return self._match_labels @@ -80,10 +80,10 @@ def match_labels(self): @match_labels.setter def match_labels(self, match_labels): """ - Sets the match_labels of this UnversionedLabelSelector. + Sets the match_labels of this V1LabelSelector. 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. + :param match_labels: The match_labels of this V1LabelSelector. :type: dict(str, str) """ diff --git a/kubernetes/client/models/unversioned_label_selector_requirement.py b/kubernetes/client/models/v1_label_selector_requirement.py similarity index 80% rename from kubernetes/client/models/unversioned_label_selector_requirement.py rename to kubernetes/client/models/v1_label_selector_requirement.py index 6da0239a17..3bd14d618e 100644 --- a/kubernetes/client/models/unversioned_label_selector_requirement.py +++ b/kubernetes/client/models/v1_label_selector_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class UnversionedLabelSelectorRequirement(object): +class V1LabelSelectorRequirement(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 + V1LabelSelectorRequirement - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -49,10 +49,10 @@ def __init__(self, key=None, operator=None, values=None): @property def key(self): """ - Gets the key of this UnversionedLabelSelectorRequirement. + Gets the key of this V1LabelSelectorRequirement. key is the label key that the selector applies to. - :return: The key of this UnversionedLabelSelectorRequirement. + :return: The key of this V1LabelSelectorRequirement. :rtype: str """ return self._key @@ -60,10 +60,10 @@ def key(self): @key.setter def key(self, key): """ - Sets the key of this UnversionedLabelSelectorRequirement. + Sets the key of this V1LabelSelectorRequirement. key is the label key that the selector applies to. - :param key: The key of this UnversionedLabelSelectorRequirement. + :param key: The key of this V1LabelSelectorRequirement. :type: str """ if key is None: @@ -74,10 +74,10 @@ def key(self, key): @property def operator(self): """ - Gets the operator of this UnversionedLabelSelectorRequirement. + Gets the operator of this V1LabelSelectorRequirement. 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. + :return: The operator of this V1LabelSelectorRequirement. :rtype: str """ return self._operator @@ -85,10 +85,10 @@ def operator(self): @operator.setter def operator(self, operator): """ - Sets the operator of this UnversionedLabelSelectorRequirement. + Sets the operator of this V1LabelSelectorRequirement. 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. + :param operator: The operator of this V1LabelSelectorRequirement. :type: str """ if operator is None: @@ -99,10 +99,10 @@ def operator(self, operator): @property def values(self): """ - Gets the values of this UnversionedLabelSelectorRequirement. + Gets the values of this V1LabelSelectorRequirement. 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. + :return: The values of this V1LabelSelectorRequirement. :rtype: list[str] """ return self._values @@ -110,10 +110,10 @@ def values(self): @values.setter def values(self, values): """ - Sets the values of this UnversionedLabelSelectorRequirement. + Sets the values of this V1LabelSelectorRequirement. 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. + :param values: The values of this V1LabelSelectorRequirement. :type: list[str] """ diff --git a/kubernetes/client/models/v1_lifecycle.py b/kubernetes/client/models/v1_lifecycle.py index 7d4e85a0f7..992f80e438 100644 --- a/kubernetes/client/models/v1_lifecycle.py +++ b/kubernetes/client/models/v1_lifecycle.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_limit_range.py b/kubernetes/client/models/v1_limit_range.py index ae2e87e4a6..b60fa4db0a 100644 --- a/kubernetes/client/models/v1_limit_range.py +++ b/kubernetes/client/models/v1_limit_range.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_limit_range_item.py b/kubernetes/client/models/v1_limit_range_item.py index ef6928f4ce..662e937c76 100644 --- a/kubernetes/client/models/v1_limit_range_item.py +++ b/kubernetes/client/models/v1_limit_range_item.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_limit_range_list.py b/kubernetes/client/models/v1_limit_range_list.py index 1620b9cf1d..f62840390e 100644 --- a/kubernetes/client/models/v1_limit_range_list.py +++ b/kubernetes/client/models/v1_limit_range_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1LimitRange]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_limit_range_spec.py b/kubernetes/client/models/v1_limit_range_spec.py index 09313ba568..ee690795b1 100644 --- a/kubernetes/client/models/v1_limit_range_spec.py +++ b/kubernetes/client/models/v1_limit_range_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/unversioned_list_meta.py b/kubernetes/client/models/v1_list_meta.py similarity index 85% rename from kubernetes/client/models/unversioned_list_meta.py rename to kubernetes/client/models/v1_list_meta.py index 1598a0893c..6d4da6ff7f 100644 --- a/kubernetes/client/models/unversioned_list_meta.py +++ b/kubernetes/client/models/v1_list_meta.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class UnversionedListMeta(object): +class V1ListMeta(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 + V1ListMeta - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -46,10 +46,10 @@ def __init__(self, resource_version=None, self_link=None): @property def resource_version(self): """ - Gets the resource_version of this UnversionedListMeta. + Gets the resource_version of this V1ListMeta. 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. + :return: The resource_version of this V1ListMeta. :rtype: str """ return self._resource_version @@ -57,10 +57,10 @@ def resource_version(self): @resource_version.setter def resource_version(self, resource_version): """ - Sets the resource_version of this UnversionedListMeta. + Sets the resource_version of this V1ListMeta. 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. + :param resource_version: The resource_version of this V1ListMeta. :type: str """ @@ -69,10 +69,10 @@ def resource_version(self, resource_version): @property def self_link(self): """ - Gets the self_link of this UnversionedListMeta. + Gets the self_link of this V1ListMeta. SelfLink is a URL representing this object. Populated by the system. Read-only. - :return: The self_link of this UnversionedListMeta. + :return: The self_link of this V1ListMeta. :rtype: str """ return self._self_link @@ -80,10 +80,10 @@ def self_link(self): @self_link.setter def self_link(self, self_link): """ - Sets the self_link of this UnversionedListMeta. + Sets the self_link of this V1ListMeta. SelfLink is a URL representing this object. Populated by the system. Read-only. - :param self_link: The self_link of this UnversionedListMeta. + :param self_link: The self_link of this V1ListMeta. :type: str """ diff --git a/kubernetes/client/models/v1_load_balancer_ingress.py b/kubernetes/client/models/v1_load_balancer_ingress.py index 1e22567fa5..8584c7c574 100644 --- a/kubernetes/client/models/v1_load_balancer_ingress.py +++ b/kubernetes/client/models/v1_load_balancer_ingress.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_load_balancer_status.py b/kubernetes/client/models/v1_load_balancer_status.py index c4c974d1ac..8ec3653ea3 100644 --- a/kubernetes/client/models/v1_load_balancer_status.py +++ b/kubernetes/client/models/v1_load_balancer_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_local_object_reference.py b/kubernetes/client/models/v1_local_object_reference.py index 22a8b8db2f..29adfabdca 100644 --- a/kubernetes/client/models/v1_local_object_reference.py +++ b/kubernetes/client/models/v1_local_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_local_subject_access_review.py b/kubernetes/client/models/v1_local_subject_access_review.py new file mode 100644 index 0000000000..cae9e78e87 --- /dev/null +++ b/kubernetes/client/models/v1_local_subject_access_review.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1LocalSubjectAccessReview(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, metadata=None, spec=None, status=None): + """ + V1LocalSubjectAccessReview - 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', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1SubjectAccessReviewSpec', + 'status': 'V1SubjectAccessReviewStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1LocalSubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1LocalSubjectAccessReview. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1LocalSubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1LocalSubjectAccessReview. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1LocalSubjectAccessReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1LocalSubjectAccessReview. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1LocalSubjectAccessReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1LocalSubjectAccessReview. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1LocalSubjectAccessReview. + + :return: The metadata of this V1LocalSubjectAccessReview. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1LocalSubjectAccessReview. + + :param metadata: The metadata of this V1LocalSubjectAccessReview. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1LocalSubjectAccessReview. + 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 V1LocalSubjectAccessReview. + :rtype: V1SubjectAccessReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1LocalSubjectAccessReview. + 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 V1LocalSubjectAccessReview. + :type: V1SubjectAccessReviewSpec + """ + 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 V1LocalSubjectAccessReview. + Status is filled in by the server and indicates whether the request is allowed or not + + :return: The status of this V1LocalSubjectAccessReview. + :rtype: V1SubjectAccessReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1LocalSubjectAccessReview. + Status is filled in by the server and indicates whether the request is allowed or not + + :param status: The status of this V1LocalSubjectAccessReview. + :type: V1SubjectAccessReviewStatus + """ + + 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/kubernetes/client/models/v1_namespace.py b/kubernetes/client/models/v1_namespace.py index 0cc08d2652..2434e0fee8 100644 --- a/kubernetes/client/models/v1_namespace.py +++ b/kubernetes/client/models/v1_namespace.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_namespace_list.py b/kubernetes/client/models/v1_namespace_list.py index e33d300167..40b132c7a1 100644 --- a/kubernetes/client/models/v1_namespace_list.py +++ b/kubernetes/client/models/v1_namespace_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Namespace]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_namespace_spec.py b/kubernetes/client/models/v1_namespace_spec.py index 547d82e884..6846825c63 100644 --- a/kubernetes/client/models/v1_namespace_spec.py +++ b/kubernetes/client/models/v1_namespace_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_namespace_status.py b/kubernetes/client/models/v1_namespace_status.py index 4bdef24e7a..efec1d5a40 100644 --- a/kubernetes/client/models/v1_namespace_status.py +++ b/kubernetes/client/models/v1_namespace_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_nfs_volume_source.py b/kubernetes/client/models/v1_nfs_volume_source.py index 263e76f106..bcef25f6b7 100644 --- a/kubernetes/client/models/v1_nfs_volume_source.py +++ b/kubernetes/client/models/v1_nfs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_node.py b/kubernetes/client/models/v1_node.py index b792ea9b68..d5b575186b 100644 --- a/kubernetes/client/models/v1_node.py +++ b/kubernetes/client/models/v1_node.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_node_address.py b/kubernetes/client/models/v1_node_address.py index 31e1605f80..2d24e872b9 100644 --- a/kubernetes/client/models/v1_node_address.py +++ b/kubernetes/client/models/v1_node_address.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_node_affinity.py b/kubernetes/client/models/v1_node_affinity.py new file mode 100644 index 0000000000..ab3c67e384 --- /dev/null +++ b/kubernetes/client/models/v1_node_affinity.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NodeAffinity(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): + """ + V1NodeAffinity - 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 = { + 'preferred_during_scheduling_ignored_during_execution': 'list[V1PreferredSchedulingTerm]', + 'required_during_scheduling_ignored_during_execution': 'V1NodeSelector' + } + + self.attribute_map = { + 'preferred_during_scheduling_ignored_during_execution': 'preferredDuringSchedulingIgnoredDuringExecution', + 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' + } + + self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + @property + def preferred_during_scheduling_ignored_during_execution(self): + """ + Gets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + + :return: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. + :rtype: list[V1PreferredSchedulingTerm] + """ + return self._preferred_during_scheduling_ignored_during_execution + + @preferred_during_scheduling_ignored_during_execution.setter + def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): + """ + Sets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + + :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. + :type: list[V1PreferredSchedulingTerm] + """ + + self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + + @property + def required_during_scheduling_ignored_during_execution(self): + """ + Gets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. + If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + + :return: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. + :rtype: V1NodeSelector + """ + return self._required_during_scheduling_ignored_during_execution + + @required_during_scheduling_ignored_during_execution.setter + def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): + """ + Sets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. + If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + + :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. + :type: V1NodeSelector + """ + + self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + 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/kubernetes/client/models/v1_node_condition.py b/kubernetes/client/models/v1_node_condition.py index 428135f595..44795f2fe8 100644 --- a/kubernetes/client/models/v1_node_condition.py +++ b/kubernetes/client/models/v1_node_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,8 +31,8 @@ def __init__(self, last_heartbeat_time=None, last_transition_time=None, message= and the value is json key in definition. """ self.swagger_types = { - 'last_heartbeat_time': 'UnversionedTime', - 'last_transition_time': 'UnversionedTime', + 'last_heartbeat_time': 'V1Time', + 'last_transition_time': 'V1Time', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -62,7 +62,7 @@ def last_heartbeat_time(self): Last time we got an update on a given condition. :return: The last_heartbeat_time of this V1NodeCondition. - :rtype: UnversionedTime + :rtype: V1Time """ return self._last_heartbeat_time @@ -73,7 +73,7 @@ def last_heartbeat_time(self, last_heartbeat_time): Last time we got an update on a given condition. :param last_heartbeat_time: The last_heartbeat_time of this V1NodeCondition. - :type: UnversionedTime + :type: V1Time """ self._last_heartbeat_time = last_heartbeat_time @@ -85,7 +85,7 @@ def last_transition_time(self): Last time the condition transit from one status to another. :return: The last_transition_time of this V1NodeCondition. - :rtype: UnversionedTime + :rtype: V1Time """ return self._last_transition_time @@ -96,7 +96,7 @@ def last_transition_time(self, last_transition_time): Last time the condition transit from one status to another. :param last_transition_time: The last_transition_time of this V1NodeCondition. - :type: UnversionedTime + :type: V1Time """ self._last_transition_time = last_transition_time diff --git a/kubernetes/client/models/v1_node_daemon_endpoints.py b/kubernetes/client/models/v1_node_daemon_endpoints.py index 6bb373b381..b3bea0caf5 100644 --- a/kubernetes/client/models/v1_node_daemon_endpoints.py +++ b/kubernetes/client/models/v1_node_daemon_endpoints.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_node_list.py b/kubernetes/client/models/v1_node_list.py index 2e6ae3f616..47b3328f77 100644 --- a/kubernetes/client/models/v1_node_list.py +++ b/kubernetes/client/models/v1_node_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Node]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_node_selector.py b/kubernetes/client/models/v1_node_selector.py new file mode 100644 index 0000000000..9fa4754bdf --- /dev/null +++ b/kubernetes/client/models/v1_node_selector.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NodeSelector(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, node_selector_terms=None): + """ + V1NodeSelector - 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 = { + 'node_selector_terms': 'list[V1NodeSelectorTerm]' + } + + self.attribute_map = { + 'node_selector_terms': 'nodeSelectorTerms' + } + + self._node_selector_terms = node_selector_terms + + @property + def node_selector_terms(self): + """ + Gets the node_selector_terms of this V1NodeSelector. + Required. A list of node selector terms. The terms are ORed. + + :return: The node_selector_terms of this V1NodeSelector. + :rtype: list[V1NodeSelectorTerm] + """ + return self._node_selector_terms + + @node_selector_terms.setter + def node_selector_terms(self, node_selector_terms): + """ + Sets the node_selector_terms of this V1NodeSelector. + Required. A list of node selector terms. The terms are ORed. + + :param node_selector_terms: The node_selector_terms of this V1NodeSelector. + :type: list[V1NodeSelectorTerm] + """ + if node_selector_terms is None: + raise ValueError("Invalid value for `node_selector_terms`, must not be `None`") + + self._node_selector_terms = node_selector_terms + + 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/kubernetes/client/models/v1_node_selector_requirement.py b/kubernetes/client/models/v1_node_selector_requirement.py new file mode 100644 index 0000000000..7d084b1042 --- /dev/null +++ b/kubernetes/client/models/v1_node_selector_requirement.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NodeSelectorRequirement(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): + """ + V1NodeSelectorRequirement - 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 V1NodeSelectorRequirement. + The label key that the selector applies to. + + :return: The key of this V1NodeSelectorRequirement. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this V1NodeSelectorRequirement. + The label key that the selector applies to. + + :param key: The key of this V1NodeSelectorRequirement. + :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 V1NodeSelectorRequirement. + Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + + :return: The operator of this V1NodeSelectorRequirement. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """ + Sets the operator of this V1NodeSelectorRequirement. + Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + + :param operator: The operator of this V1NodeSelectorRequirement. + :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 V1NodeSelectorRequirement. + 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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. + + :return: The values of this V1NodeSelectorRequirement. + :rtype: list[str] + """ + return self._values + + @values.setter + def values(self, values): + """ + Sets the values of this V1NodeSelectorRequirement. + 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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. + + :param values: The values of this V1NodeSelectorRequirement. + :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/kubernetes/client/models/v1_node_selector_term.py b/kubernetes/client/models/v1_node_selector_term.py new file mode 100644 index 0000000000..e2898b6514 --- /dev/null +++ b/kubernetes/client/models/v1_node_selector_term.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NodeSelectorTerm(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): + """ + V1NodeSelectorTerm - 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[V1NodeSelectorRequirement]' + } + + self.attribute_map = { + 'match_expressions': 'matchExpressions' + } + + self._match_expressions = match_expressions + + @property + def match_expressions(self): + """ + Gets the match_expressions of this V1NodeSelectorTerm. + Required. A list of node selector requirements. The requirements are ANDed. + + :return: The match_expressions of this V1NodeSelectorTerm. + :rtype: list[V1NodeSelectorRequirement] + """ + return self._match_expressions + + @match_expressions.setter + def match_expressions(self, match_expressions): + """ + Sets the match_expressions of this V1NodeSelectorTerm. + Required. A list of node selector requirements. The requirements are ANDed. + + :param match_expressions: The match_expressions of this V1NodeSelectorTerm. + :type: list[V1NodeSelectorRequirement] + """ + if match_expressions is None: + raise ValueError("Invalid value for `match_expressions`, must not be `None`") + + self._match_expressions = match_expressions + + 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/kubernetes/client/models/v1_node_spec.py b/kubernetes/client/models/v1_node_spec.py index e69d035aad..5a5646eb12 100644 --- a/kubernetes/client/models/v1_node_spec.py +++ b/kubernetes/client/models/v1_node_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ 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): + def __init__(self, external_id=None, pod_cidr=None, provider_id=None, taints=None, unschedulable=None): """ V1NodeSpec - a model defined in Swagger @@ -34,6 +34,7 @@ def __init__(self, external_id=None, pod_cidr=None, provider_id=None, unschedula 'external_id': 'str', 'pod_cidr': 'str', 'provider_id': 'str', + 'taints': 'list[V1Taint]', 'unschedulable': 'bool' } @@ -41,12 +42,14 @@ def __init__(self, external_id=None, pod_cidr=None, provider_id=None, unschedula 'external_id': 'externalID', 'pod_cidr': 'podCIDR', 'provider_id': 'providerID', + 'taints': 'taints', 'unschedulable': 'unschedulable' } self._external_id = external_id self._pod_cidr = pod_cidr self._provider_id = provider_id + self._taints = taints self._unschedulable = unschedulable @property @@ -118,11 +121,34 @@ def provider_id(self, provider_id): self._provider_id = provider_id + @property + def taints(self): + """ + Gets the taints of this V1NodeSpec. + If specified, the node's taints. + + :return: The taints of this V1NodeSpec. + :rtype: list[V1Taint] + """ + return self._taints + + @taints.setter + def taints(self, taints): + """ + Sets the taints of this V1NodeSpec. + If specified, the node's taints. + + :param taints: The taints of this V1NodeSpec. + :type: list[V1Taint] + """ + + self._taints = taints + @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\" + 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 @@ -133,7 +159,7 @@ def unschedulable(self): 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\" + 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 diff --git a/kubernetes/client/models/v1_node_status.py b/kubernetes/client/models/v1_node_status.py index 8058bdabc0..ea79f3078e 100644 --- a/kubernetes/client/models/v1_node_status.py +++ b/kubernetes/client/models/v1_node_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_node_system_info.py b/kubernetes/client/models/v1_node_system_info.py index 13df39c580..8b4bbf11f8 100644 --- a/kubernetes/client/models/v1_node_system_info.py +++ b/kubernetes/client/models/v1_node_system_info.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_non_resource_attributes.py b/kubernetes/client/models/v1_non_resource_attributes.py new file mode 100644 index 0000000000..7b7c22d1b3 --- /dev/null +++ b/kubernetes/client/models/v1_non_resource_attributes.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1NonResourceAttributes(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): + """ + V1NonResourceAttributes - 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 V1NonResourceAttributes. + Path is the URL path of the request + + :return: The path of this V1NonResourceAttributes. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this V1NonResourceAttributes. + Path is the URL path of the request + + :param path: The path of this V1NonResourceAttributes. + :type: str + """ + + self._path = path + + @property + def verb(self): + """ + Gets the verb of this V1NonResourceAttributes. + Verb is the standard HTTP verb + + :return: The verb of this V1NonResourceAttributes. + :rtype: str + """ + return self._verb + + @verb.setter + def verb(self, verb): + """ + Sets the verb of this V1NonResourceAttributes. + Verb is the standard HTTP verb + + :param verb: The verb of this V1NonResourceAttributes. + :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/kubernetes/client/models/v1_object_field_selector.py b/kubernetes/client/models/v1_object_field_selector.py index df2a12245e..08d8a79961 100644 --- a/kubernetes/client/models/v1_object_field_selector.py +++ b/kubernetes/client/models/v1_object_field_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_object_meta.py b/kubernetes/client/models/v1_object_meta.py index dc80bfca61..46eebc1233 100644 --- a/kubernetes/client/models/v1_object_meta.py +++ b/kubernetes/client/models/v1_object_meta.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,9 +33,9 @@ def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, self.swagger_types = { 'annotations': 'dict(str, str)', 'cluster_name': 'str', - 'creation_timestamp': 'UnversionedTime', + 'creation_timestamp': 'V1Time', 'deletion_grace_period_seconds': 'int', - 'deletion_timestamp': 'UnversionedTime', + 'deletion_timestamp': 'V1Time', 'finalizers': 'list[str]', 'generate_name': 'str', 'generation': 'int', @@ -135,7 +135,7 @@ def creation_timestamp(self): 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 + :rtype: V1Time """ return self._creation_timestamp @@ -146,7 +146,7 @@ def creation_timestamp(self, creation_timestamp): 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 + :type: V1Time """ self._creation_timestamp = creation_timestamp @@ -181,7 +181,7 @@ def deletion_timestamp(self): 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 is expected to 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. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. 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 + :rtype: V1Time """ return self._deletion_timestamp @@ -192,7 +192,7 @@ def deletion_timestamp(self, deletion_timestamp): 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 is expected to 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. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. 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 + :type: V1Time """ self._deletion_timestamp = deletion_timestamp diff --git a/kubernetes/client/models/v1_object_reference.py b/kubernetes/client/models/v1_object_reference.py index 93b64d0048..503ffb89bb 100644 --- a/kubernetes/client/models/v1_object_reference.py +++ b/kubernetes/client/models/v1_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_owner_reference.py b/kubernetes/client/models/v1_owner_reference.py index 8fb88cdfd4..5f09c9b17f 100644 --- a/kubernetes/client/models/v1_owner_reference.py +++ b/kubernetes/client/models/v1_owner_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ 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): + def __init__(self, api_version=None, block_owner_deletion=None, controller=None, kind=None, name=None, uid=None): """ V1OwnerReference - a model defined in Swagger @@ -32,6 +32,7 @@ def __init__(self, api_version=None, controller=None, kind=None, name=None, uid= """ self.swagger_types = { 'api_version': 'str', + 'block_owner_deletion': 'bool', 'controller': 'bool', 'kind': 'str', 'name': 'str', @@ -40,6 +41,7 @@ def __init__(self, api_version=None, controller=None, kind=None, name=None, uid= self.attribute_map = { 'api_version': 'apiVersion', + 'block_owner_deletion': 'blockOwnerDeletion', 'controller': 'controller', 'kind': 'kind', 'name': 'name', @@ -47,6 +49,7 @@ def __init__(self, api_version=None, controller=None, kind=None, name=None, uid= } self._api_version = api_version + self._block_owner_deletion = block_owner_deletion self._controller = controller self._kind = kind self._name = name @@ -77,6 +80,29 @@ def api_version(self, api_version): self._api_version = api_version + @property + def block_owner_deletion(self): + """ + Gets the block_owner_deletion of this V1OwnerReference. + If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + + :return: The block_owner_deletion of this V1OwnerReference. + :rtype: bool + """ + return self._block_owner_deletion + + @block_owner_deletion.setter + def block_owner_deletion(self, block_owner_deletion): + """ + Sets the block_owner_deletion of this V1OwnerReference. + If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + + :param block_owner_deletion: The block_owner_deletion of this V1OwnerReference. + :type: bool + """ + + self._block_owner_deletion = block_owner_deletion + @property def controller(self): """ diff --git a/kubernetes/client/models/v1_persistent_volume.py b/kubernetes/client/models/v1_persistent_volume.py index 5f6d5e80b0..06ec0dd82b 100644 --- a/kubernetes/client/models/v1_persistent_volume.py +++ b/kubernetes/client/models/v1_persistent_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_persistent_volume_claim.py b/kubernetes/client/models/v1_persistent_volume_claim.py index bf638bf079..12ba2d4ddf 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim.py +++ b/kubernetes/client/models/v1_persistent_volume_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_persistent_volume_claim_list.py b/kubernetes/client/models/v1_persistent_volume_claim_list.py index 0424df1021..77375e2557 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_list.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1PersistentVolumeClaim]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_persistent_volume_claim_spec.py b/kubernetes/client/models/v1_persistent_volume_claim_spec.py index 49877dc353..50024b7994 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_spec.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ 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): + def __init__(self, access_modes=None, resources=None, selector=None, storage_class_name=None, volume_name=None): """ V1PersistentVolumeClaimSpec - a model defined in Swagger @@ -33,7 +33,8 @@ def __init__(self, access_modes=None, resources=None, selector=None, volume_name self.swagger_types = { 'access_modes': 'list[str]', 'resources': 'V1ResourceRequirements', - 'selector': 'UnversionedLabelSelector', + 'selector': 'V1LabelSelector', + 'storage_class_name': 'str', 'volume_name': 'str' } @@ -41,12 +42,14 @@ def __init__(self, access_modes=None, resources=None, selector=None, volume_name 'access_modes': 'accessModes', 'resources': 'resources', 'selector': 'selector', + 'storage_class_name': 'storageClassName', 'volume_name': 'volumeName' } self._access_modes = access_modes self._resources = resources self._selector = selector + self._storage_class_name = storage_class_name self._volume_name = volume_name @property @@ -102,7 +105,7 @@ def selector(self): A label query over volumes to consider for binding. :return: The selector of this V1PersistentVolumeClaimSpec. - :rtype: UnversionedLabelSelector + :rtype: V1LabelSelector """ return self._selector @@ -113,11 +116,34 @@ def selector(self, selector): A label query over volumes to consider for binding. :param selector: The selector of this V1PersistentVolumeClaimSpec. - :type: UnversionedLabelSelector + :type: V1LabelSelector """ self._selector = selector + @property + def storage_class_name(self): + """ + Gets the storage_class_name of this V1PersistentVolumeClaimSpec. + Name of the StorageClass required by the claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1 + + :return: The storage_class_name of this V1PersistentVolumeClaimSpec. + :rtype: str + """ + return self._storage_class_name + + @storage_class_name.setter + def storage_class_name(self, storage_class_name): + """ + Sets the storage_class_name of this V1PersistentVolumeClaimSpec. + Name of the StorageClass required by the claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1 + + :param storage_class_name: The storage_class_name of this V1PersistentVolumeClaimSpec. + :type: str + """ + + self._storage_class_name = storage_class_name + @property def volume_name(self): """ diff --git a/kubernetes/client/models/v1_persistent_volume_claim_status.py b/kubernetes/client/models/v1_persistent_volume_claim_status.py index fbd9cb1ce2..ad283ea2d3 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_status.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py b/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py index c7550b1ab3..21e13c493a 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_persistent_volume_list.py b/kubernetes/client/models/v1_persistent_volume_list.py index 09086f615d..95c96ee7aa 100644 --- a/kubernetes/client/models/v1_persistent_volume_list.py +++ b/kubernetes/client/models/v1_persistent_volume_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1PersistentVolume]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_persistent_volume_spec.py b/kubernetes/client/models/v1_persistent_volume_spec.py index 48f2dc297d..598553e1c4 100644 --- a/kubernetes/client/models/v1_persistent_volume_spec.py +++ b/kubernetes/client/models/v1_persistent_volume_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ 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, aws_elastic_block_store=None, azure_disk=None, azure_file=None, capacity=None, cephfs=None, cinder=None, claim_ref=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, glusterfs=None, host_path=None, iscsi=None, nfs=None, persistent_volume_reclaim_policy=None, photon_persistent_disk=None, quobyte=None, rbd=None, vsphere_volume=None): + def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=None, azure_file=None, capacity=None, cephfs=None, cinder=None, claim_ref=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, glusterfs=None, host_path=None, iscsi=None, nfs=None, persistent_volume_reclaim_policy=None, photon_persistent_disk=None, portworx_volume=None, quobyte=None, rbd=None, scale_io=None, storage_class_name=None, vsphere_volume=None): """ V1PersistentVolumeSpec - a model defined in Swagger @@ -49,8 +49,11 @@ def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=N 'nfs': 'V1NFSVolumeSource', 'persistent_volume_reclaim_policy': 'str', 'photon_persistent_disk': 'V1PhotonPersistentDiskVolumeSource', + 'portworx_volume': 'V1PortworxVolumeSource', 'quobyte': 'V1QuobyteVolumeSource', 'rbd': 'V1RBDVolumeSource', + 'scale_io': 'V1ScaleIOVolumeSource', + 'storage_class_name': 'str', 'vsphere_volume': 'V1VsphereVirtualDiskVolumeSource' } @@ -73,8 +76,11 @@ def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=N 'nfs': 'nfs', 'persistent_volume_reclaim_policy': 'persistentVolumeReclaimPolicy', 'photon_persistent_disk': 'photonPersistentDisk', + 'portworx_volume': 'portworxVolume', 'quobyte': 'quobyte', 'rbd': 'rbd', + 'scale_io': 'scaleIO', + 'storage_class_name': 'storageClassName', 'vsphere_volume': 'vsphereVolume' } @@ -96,8 +102,11 @@ def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=N self._nfs = nfs self._persistent_volume_reclaim_policy = persistent_volume_reclaim_policy self._photon_persistent_disk = photon_persistent_disk + self._portworx_volume = portworx_volume self._quobyte = quobyte self._rbd = rbd + self._scale_io = scale_io + self._storage_class_name = storage_class_name self._vsphere_volume = vsphere_volume @property @@ -514,6 +523,29 @@ def photon_persistent_disk(self, photon_persistent_disk): self._photon_persistent_disk = photon_persistent_disk + @property + def portworx_volume(self): + """ + Gets the portworx_volume of this V1PersistentVolumeSpec. + PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + + :return: The portworx_volume of this V1PersistentVolumeSpec. + :rtype: V1PortworxVolumeSource + """ + return self._portworx_volume + + @portworx_volume.setter + def portworx_volume(self, portworx_volume): + """ + Sets the portworx_volume of this V1PersistentVolumeSpec. + PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + + :param portworx_volume: The portworx_volume of this V1PersistentVolumeSpec. + :type: V1PortworxVolumeSource + """ + + self._portworx_volume = portworx_volume + @property def quobyte(self): """ @@ -560,6 +592,52 @@ def rbd(self, rbd): self._rbd = rbd + @property + def scale_io(self): + """ + Gets the scale_io of this V1PersistentVolumeSpec. + ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + + :return: The scale_io of this V1PersistentVolumeSpec. + :rtype: V1ScaleIOVolumeSource + """ + return self._scale_io + + @scale_io.setter + def scale_io(self, scale_io): + """ + Sets the scale_io of this V1PersistentVolumeSpec. + ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + + :param scale_io: The scale_io of this V1PersistentVolumeSpec. + :type: V1ScaleIOVolumeSource + """ + + self._scale_io = scale_io + + @property + def storage_class_name(self): + """ + Gets the storage_class_name of this V1PersistentVolumeSpec. + Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + + :return: The storage_class_name of this V1PersistentVolumeSpec. + :rtype: str + """ + return self._storage_class_name + + @storage_class_name.setter + def storage_class_name(self, storage_class_name): + """ + Sets the storage_class_name of this V1PersistentVolumeSpec. + Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + + :param storage_class_name: The storage_class_name of this V1PersistentVolumeSpec. + :type: str + """ + + self._storage_class_name = storage_class_name + @property def vsphere_volume(self): """ diff --git a/kubernetes/client/models/v1_persistent_volume_status.py b/kubernetes/client/models/v1_persistent_volume_status.py index 04d937a5d7..9703e91df3 100644 --- a/kubernetes/client/models/v1_persistent_volume_status.py +++ b/kubernetes/client/models/v1_persistent_volume_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py b/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py index 2f564ff97e..24dd9f2426 100644 --- a/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py +++ b/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_pod.py b/kubernetes/client/models/v1_pod.py index 1f7a6c5e64..78e235a824 100644 --- a/kubernetes/client/models/v1_pod.py +++ b/kubernetes/client/models/v1_pod.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_pod_affinity.py b/kubernetes/client/models/v1_pod_affinity.py new file mode 100644 index 0000000000..9d03a72eb7 --- /dev/null +++ b/kubernetes/client/models/v1_pod_affinity.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodAffinity(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): + """ + V1PodAffinity - 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 = { + 'preferred_during_scheduling_ignored_during_execution': 'list[V1WeightedPodAffinityTerm]', + 'required_during_scheduling_ignored_during_execution': 'list[V1PodAffinityTerm]' + } + + self.attribute_map = { + 'preferred_during_scheduling_ignored_during_execution': 'preferredDuringSchedulingIgnoredDuringExecution', + 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' + } + + self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + @property + def preferred_during_scheduling_ignored_during_execution(self): + """ + Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + + :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. + :rtype: list[V1WeightedPodAffinityTerm] + """ + return self._preferred_during_scheduling_ignored_during_execution + + @preferred_during_scheduling_ignored_during_execution.setter + def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): + """ + Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + + :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. + :type: list[V1WeightedPodAffinityTerm] + """ + + self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + + @property + def required_during_scheduling_ignored_during_execution(self): + """ + Gets the required_during_scheduling_ignored_during_execution of this V1PodAffinity. + NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + :return: The required_during_scheduling_ignored_during_execution of this V1PodAffinity. + :rtype: list[V1PodAffinityTerm] + """ + return self._required_during_scheduling_ignored_during_execution + + @required_during_scheduling_ignored_during_execution.setter + def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): + """ + Sets the required_during_scheduling_ignored_during_execution of this V1PodAffinity. + NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAffinity. + :type: list[V1PodAffinityTerm] + """ + + self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + 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/kubernetes/client/models/v1_pod_affinity_term.py b/kubernetes/client/models/v1_pod_affinity_term.py new file mode 100644 index 0000000000..0b37f0f06e --- /dev/null +++ b/kubernetes/client/models/v1_pod_affinity_term.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodAffinityTerm(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, label_selector=None, namespaces=None, topology_key=None): + """ + V1PodAffinityTerm - 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 = { + 'label_selector': 'V1LabelSelector', + 'namespaces': 'list[str]', + 'topology_key': 'str' + } + + self.attribute_map = { + 'label_selector': 'labelSelector', + 'namespaces': 'namespaces', + 'topology_key': 'topologyKey' + } + + self._label_selector = label_selector + self._namespaces = namespaces + self._topology_key = topology_key + + @property + def label_selector(self): + """ + Gets the label_selector of this V1PodAffinityTerm. + A label query over a set of resources, in this case pods. + + :return: The label_selector of this V1PodAffinityTerm. + :rtype: V1LabelSelector + """ + return self._label_selector + + @label_selector.setter + def label_selector(self, label_selector): + """ + Sets the label_selector of this V1PodAffinityTerm. + A label query over a set of resources, in this case pods. + + :param label_selector: The label_selector of this V1PodAffinityTerm. + :type: V1LabelSelector + """ + + self._label_selector = label_selector + + @property + def namespaces(self): + """ + Gets the namespaces of this V1PodAffinityTerm. + namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" + + :return: The namespaces of this V1PodAffinityTerm. + :rtype: list[str] + """ + return self._namespaces + + @namespaces.setter + def namespaces(self, namespaces): + """ + Sets the namespaces of this V1PodAffinityTerm. + namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" + + :param namespaces: The namespaces of this V1PodAffinityTerm. + :type: list[str] + """ + + self._namespaces = namespaces + + @property + def topology_key(self): + """ + Gets the topology_key of this V1PodAffinityTerm. + This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed. + + :return: The topology_key of this V1PodAffinityTerm. + :rtype: str + """ + return self._topology_key + + @topology_key.setter + def topology_key(self, topology_key): + """ + Sets the topology_key of this V1PodAffinityTerm. + This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed. + + :param topology_key: The topology_key of this V1PodAffinityTerm. + :type: str + """ + + self._topology_key = topology_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/kubernetes/client/models/v1_pod_anti_affinity.py b/kubernetes/client/models/v1_pod_anti_affinity.py new file mode 100644 index 0000000000..8cde82fc19 --- /dev/null +++ b/kubernetes/client/models/v1_pod_anti_affinity.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PodAntiAffinity(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): + """ + V1PodAntiAffinity - 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 = { + 'preferred_during_scheduling_ignored_during_execution': 'list[V1WeightedPodAffinityTerm]', + 'required_during_scheduling_ignored_during_execution': 'list[V1PodAffinityTerm]' + } + + self.attribute_map = { + 'preferred_during_scheduling_ignored_during_execution': 'preferredDuringSchedulingIgnoredDuringExecution', + 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' + } + + self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + @property + def preferred_during_scheduling_ignored_during_execution(self): + """ + Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + + :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + :rtype: list[V1WeightedPodAffinityTerm] + """ + return self._preferred_during_scheduling_ignored_during_execution + + @preferred_during_scheduling_ignored_during_execution.setter + def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): + """ + Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + + :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + :type: list[V1WeightedPodAffinityTerm] + """ + + self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + + @property + def required_during_scheduling_ignored_during_execution(self): + """ + Gets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + :return: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + :rtype: list[V1PodAffinityTerm] + """ + return self._required_during_scheduling_ignored_during_execution + + @required_during_scheduling_ignored_during_execution.setter + def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): + """ + Sets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + :type: list[V1PodAffinityTerm] + """ + + self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + 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/kubernetes/client/models/v1_pod_condition.py b/kubernetes/client/models/v1_pod_condition.py index 7d182b0505..92849545e7 100644 --- a/kubernetes/client/models/v1_pod_condition.py +++ b/kubernetes/client/models/v1_pod_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,8 +31,8 @@ def __init__(self, last_probe_time=None, last_transition_time=None, message=None and the value is json key in definition. """ self.swagger_types = { - 'last_probe_time': 'UnversionedTime', - 'last_transition_time': 'UnversionedTime', + 'last_probe_time': 'V1Time', + 'last_transition_time': 'V1Time', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -62,7 +62,7 @@ def last_probe_time(self): Last time we probed the condition. :return: The last_probe_time of this V1PodCondition. - :rtype: UnversionedTime + :rtype: V1Time """ return self._last_probe_time @@ -73,7 +73,7 @@ def last_probe_time(self, last_probe_time): Last time we probed the condition. :param last_probe_time: The last_probe_time of this V1PodCondition. - :type: UnversionedTime + :type: V1Time """ self._last_probe_time = last_probe_time @@ -85,7 +85,7 @@ def last_transition_time(self): Last time the condition transitioned from one status to another. :return: The last_transition_time of this V1PodCondition. - :rtype: UnversionedTime + :rtype: V1Time """ return self._last_transition_time @@ -96,7 +96,7 @@ def last_transition_time(self, last_transition_time): Last time the condition transitioned from one status to another. :param last_transition_time: The last_transition_time of this V1PodCondition. - :type: UnversionedTime + :type: V1Time """ self._last_transition_time = last_transition_time diff --git a/kubernetes/client/models/v1_pod_list.py b/kubernetes/client/models/v1_pod_list.py index 6e3bc5942f..d09a6f2316 100644 --- a/kubernetes/client/models/v1_pod_list.py +++ b/kubernetes/client/models/v1_pod_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Pod]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_pod_security_context.py b/kubernetes/client/models/v1_pod_security_context.py index 66c25afaa2..171b017568 100644 --- a/kubernetes/client/models/v1_pod_security_context.py +++ b/kubernetes/client/models/v1_pod_security_context.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_pod_spec.py b/kubernetes/client/models/v1_pod_spec.py index b1b5b659c9..250cdda6d7 100644 --- a/kubernetes/client/models/v1_pod_spec.py +++ b/kubernetes/client/models/v1_pod_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ 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): + def __init__(self, active_deadline_seconds=None, affinity=None, automount_service_account_token=None, containers=None, dns_policy=None, host_ipc=None, host_network=None, host_pid=None, hostname=None, image_pull_secrets=None, init_containers=None, node_name=None, node_selector=None, restart_policy=None, scheduler_name=None, security_context=None, service_account=None, service_account_name=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): """ V1PodSpec - a model defined in Swagger @@ -32,6 +32,8 @@ def __init__(self, active_deadline_seconds=None, containers=None, dns_policy=Non """ self.swagger_types = { 'active_deadline_seconds': 'int', + 'affinity': 'V1Affinity', + 'automount_service_account_token': 'bool', 'containers': 'list[V1Container]', 'dns_policy': 'str', 'host_ipc': 'bool', @@ -39,19 +41,24 @@ def __init__(self, active_deadline_seconds=None, containers=None, dns_policy=Non 'host_pid': 'bool', 'hostname': 'str', 'image_pull_secrets': 'list[V1LocalObjectReference]', + 'init_containers': 'list[V1Container]', 'node_name': 'str', 'node_selector': 'dict(str, str)', 'restart_policy': 'str', + 'scheduler_name': 'str', 'security_context': 'V1PodSecurityContext', 'service_account': 'str', 'service_account_name': 'str', 'subdomain': 'str', 'termination_grace_period_seconds': 'int', + 'tolerations': 'list[V1Toleration]', 'volumes': 'list[V1Volume]' } self.attribute_map = { 'active_deadline_seconds': 'activeDeadlineSeconds', + 'affinity': 'affinity', + 'automount_service_account_token': 'automountServiceAccountToken', 'containers': 'containers', 'dns_policy': 'dnsPolicy', 'host_ipc': 'hostIPC', @@ -59,18 +66,23 @@ def __init__(self, active_deadline_seconds=None, containers=None, dns_policy=Non 'host_pid': 'hostPID', 'hostname': 'hostname', 'image_pull_secrets': 'imagePullSecrets', + 'init_containers': 'initContainers', 'node_name': 'nodeName', 'node_selector': 'nodeSelector', 'restart_policy': 'restartPolicy', + 'scheduler_name': 'schedulerName', 'security_context': 'securityContext', 'service_account': 'serviceAccount', 'service_account_name': 'serviceAccountName', 'subdomain': 'subdomain', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', + 'tolerations': 'tolerations', 'volumes': 'volumes' } self._active_deadline_seconds = active_deadline_seconds + self._affinity = affinity + self._automount_service_account_token = automount_service_account_token self._containers = containers self._dns_policy = dns_policy self._host_ipc = host_ipc @@ -78,14 +90,17 @@ def __init__(self, active_deadline_seconds=None, containers=None, dns_policy=Non self._host_pid = host_pid self._hostname = hostname self._image_pull_secrets = image_pull_secrets + self._init_containers = init_containers self._node_name = node_name self._node_selector = node_selector self._restart_policy = restart_policy + self._scheduler_name = scheduler_name 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._tolerations = tolerations self._volumes = volumes @property @@ -111,6 +126,52 @@ def active_deadline_seconds(self, active_deadline_seconds): self._active_deadline_seconds = active_deadline_seconds + @property + def affinity(self): + """ + Gets the affinity of this V1PodSpec. + If specified, the pod's scheduling constraints + + :return: The affinity of this V1PodSpec. + :rtype: V1Affinity + """ + return self._affinity + + @affinity.setter + def affinity(self, affinity): + """ + Sets the affinity of this V1PodSpec. + If specified, the pod's scheduling constraints + + :param affinity: The affinity of this V1PodSpec. + :type: V1Affinity + """ + + self._affinity = affinity + + @property + def automount_service_account_token(self): + """ + Gets the automount_service_account_token of this V1PodSpec. + AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + + :return: The automount_service_account_token of this V1PodSpec. + :rtype: bool + """ + return self._automount_service_account_token + + @automount_service_account_token.setter + def automount_service_account_token(self, automount_service_account_token): + """ + Sets the automount_service_account_token of this V1PodSpec. + AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + + :param automount_service_account_token: The automount_service_account_token of this V1PodSpec. + :type: bool + """ + + self._automount_service_account_token = automount_service_account_token + @property def containers(self): """ @@ -140,7 +201,7 @@ def containers(self, containers): 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\". + Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. :return: The dns_policy of this V1PodSpec. :rtype: str @@ -151,7 +212,7 @@ def dns_policy(self): 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\". + Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. :param dns_policy: The dns_policy of this V1PodSpec. :type: str @@ -274,6 +335,29 @@ def image_pull_secrets(self, image_pull_secrets): self._image_pull_secrets = image_pull_secrets + @property + def init_containers(self): + """ + Gets the init_containers of this V1PodSpec. + List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers + + :return: The init_containers of this V1PodSpec. + :rtype: list[V1Container] + """ + return self._init_containers + + @init_containers.setter + def init_containers(self, init_containers): + """ + Sets the init_containers of this V1PodSpec. + List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers + + :param init_containers: The init_containers of this V1PodSpec. + :type: list[V1Container] + """ + + self._init_containers = init_containers + @property def node_name(self): """ @@ -343,6 +427,29 @@ def restart_policy(self, restart_policy): self._restart_policy = restart_policy + @property + def scheduler_name(self): + """ + Gets the scheduler_name of this V1PodSpec. + If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + + :return: The scheduler_name of this V1PodSpec. + :rtype: str + """ + return self._scheduler_name + + @scheduler_name.setter + def scheduler_name(self, scheduler_name): + """ + Sets the scheduler_name of this V1PodSpec. + If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + + :param scheduler_name: The scheduler_name of this V1PodSpec. + :type: str + """ + + self._scheduler_name = scheduler_name + @property def security_context(self): """ @@ -458,6 +565,29 @@ def termination_grace_period_seconds(self, termination_grace_period_seconds): self._termination_grace_period_seconds = termination_grace_period_seconds + @property + def tolerations(self): + """ + Gets the tolerations of this V1PodSpec. + If specified, the pod's tolerations. + + :return: The tolerations of this V1PodSpec. + :rtype: list[V1Toleration] + """ + return self._tolerations + + @tolerations.setter + def tolerations(self, tolerations): + """ + Sets the tolerations of this V1PodSpec. + If specified, the pod's tolerations. + + :param tolerations: The tolerations of this V1PodSpec. + :type: list[V1Toleration] + """ + + self._tolerations = tolerations + @property def volumes(self): """ diff --git a/kubernetes/client/models/v1_pod_status.py b/kubernetes/client/models/v1_pod_status.py index 4361495b72..e57765c2b2 100644 --- a/kubernetes/client/models/v1_pod_status.py +++ b/kubernetes/client/models/v1_pod_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ 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): + def __init__(self, conditions=None, container_statuses=None, host_ip=None, init_container_statuses=None, message=None, phase=None, pod_ip=None, qos_class=None, reason=None, start_time=None): """ V1PodStatus - a model defined in Swagger @@ -34,20 +34,24 @@ def __init__(self, conditions=None, container_statuses=None, host_ip=None, messa 'conditions': 'list[V1PodCondition]', 'container_statuses': 'list[V1ContainerStatus]', 'host_ip': 'str', + 'init_container_statuses': 'list[V1ContainerStatus]', 'message': 'str', 'phase': 'str', 'pod_ip': 'str', + 'qos_class': 'str', 'reason': 'str', - 'start_time': 'UnversionedTime' + 'start_time': 'V1Time' } self.attribute_map = { 'conditions': 'conditions', 'container_statuses': 'containerStatuses', 'host_ip': 'hostIP', + 'init_container_statuses': 'initContainerStatuses', 'message': 'message', 'phase': 'phase', 'pod_ip': 'podIP', + 'qos_class': 'qosClass', 'reason': 'reason', 'start_time': 'startTime' } @@ -55,9 +59,11 @@ def __init__(self, conditions=None, container_statuses=None, host_ip=None, messa self._conditions = conditions self._container_statuses = container_statuses self._host_ip = host_ip + self._init_container_statuses = init_container_statuses self._message = message self._phase = phase self._pod_ip = pod_ip + self._qos_class = qos_class self._reason = reason self._start_time = start_time @@ -130,6 +136,29 @@ def host_ip(self, host_ip): self._host_ip = host_ip + @property + def init_container_statuses(self): + """ + Gets the init_container_statuses of this V1PodStatus. + The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses + + :return: The init_container_statuses of this V1PodStatus. + :rtype: list[V1ContainerStatus] + """ + return self._init_container_statuses + + @init_container_statuses.setter + def init_container_statuses(self, init_container_statuses): + """ + Sets the init_container_statuses of this V1PodStatus. + The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses + + :param init_container_statuses: The init_container_statuses of this V1PodStatus. + :type: list[V1ContainerStatus] + """ + + self._init_container_statuses = init_container_statuses + @property def message(self): """ @@ -199,6 +228,29 @@ def pod_ip(self, pod_ip): self._pod_ip = pod_ip + @property + def qos_class(self): + """ + Gets the qos_class of this V1PodStatus. + The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md + + :return: The qos_class of this V1PodStatus. + :rtype: str + """ + return self._qos_class + + @qos_class.setter + def qos_class(self, qos_class): + """ + Sets the qos_class of this V1PodStatus. + The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md + + :param qos_class: The qos_class of this V1PodStatus. + :type: str + """ + + self._qos_class = qos_class + @property def reason(self): """ @@ -229,7 +281,7 @@ def start_time(self): 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 + :rtype: V1Time """ return self._start_time @@ -240,7 +292,7 @@ def start_time(self, start_time): 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 + :type: V1Time """ self._start_time = start_time diff --git a/kubernetes/client/models/v1_pod_template.py b/kubernetes/client/models/v1_pod_template.py index d95c51b88b..13d30c1487 100644 --- a/kubernetes/client/models/v1_pod_template.py +++ b/kubernetes/client/models/v1_pod_template.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_pod_template_list.py b/kubernetes/client/models/v1_pod_template_list.py index 9a0a2284a3..034e7ff71f 100644 --- a/kubernetes/client/models/v1_pod_template_list.py +++ b/kubernetes/client/models/v1_pod_template_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1PodTemplate]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_pod_template_spec.py b/kubernetes/client/models/v1_pod_template_spec.py index b2c49faa6f..5ba2745475 100644 --- a/kubernetes/client/models/v1_pod_template_spec.py +++ b/kubernetes/client/models/v1_pod_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_portworx_volume_source.py b/kubernetes/client/models/v1_portworx_volume_source.py new file mode 100644 index 0000000000..54d7b1afed --- /dev/null +++ b/kubernetes/client/models/v1_portworx_volume_source.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PortworxVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, fs_type=None, read_only=None, volume_id=None): + """ + V1PortworxVolumeSource - 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_type': 'str', + 'read_only': 'bool', + 'volume_id': 'str' + } + + self.attribute_map = { + 'fs_type': 'fsType', + 'read_only': 'readOnly', + 'volume_id': 'volumeID' + } + + self._fs_type = fs_type + self._read_only = read_only + self._volume_id = volume_id + + @property + def fs_type(self): + """ + Gets the fs_type of this V1PortworxVolumeSource. + FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. + + :return: The fs_type of this V1PortworxVolumeSource. + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """ + Sets the fs_type of this V1PortworxVolumeSource. + FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. + + :param fs_type: The fs_type of this V1PortworxVolumeSource. + :type: str + """ + + self._fs_type = fs_type + + @property + def read_only(self): + """ + Gets the read_only of this V1PortworxVolumeSource. + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + :return: The read_only of this V1PortworxVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1PortworxVolumeSource. + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + :param read_only: The read_only of this V1PortworxVolumeSource. + :type: bool + """ + + self._read_only = read_only + + @property + def volume_id(self): + """ + Gets the volume_id of this V1PortworxVolumeSource. + VolumeID uniquely identifies a Portworx volume + + :return: The volume_id of this V1PortworxVolumeSource. + :rtype: str + """ + return self._volume_id + + @volume_id.setter + def volume_id(self, volume_id): + """ + Sets the volume_id of this V1PortworxVolumeSource. + VolumeID uniquely identifies a Portworx volume + + :param volume_id: The volume_id of this V1PortworxVolumeSource. + :type: str + """ + if volume_id is None: + raise ValueError("Invalid value for `volume_id`, must not be `None`") + + self._volume_id = volume_id + + 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/kubernetes/client/models/v1_preconditions.py b/kubernetes/client/models/v1_preconditions.py index 1a6ebf9f03..11f69889ef 100644 --- a/kubernetes/client/models/v1_preconditions.py +++ b/kubernetes/client/models/v1_preconditions.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_preferred_scheduling_term.py b/kubernetes/client/models/v1_preferred_scheduling_term.py new file mode 100644 index 0000000000..94a87f3ba8 --- /dev/null +++ b/kubernetes/client/models/v1_preferred_scheduling_term.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1PreferredSchedulingTerm(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, preference=None, weight=None): + """ + V1PreferredSchedulingTerm - 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 = { + 'preference': 'V1NodeSelectorTerm', + 'weight': 'int' + } + + self.attribute_map = { + 'preference': 'preference', + 'weight': 'weight' + } + + self._preference = preference + self._weight = weight + + @property + def preference(self): + """ + Gets the preference of this V1PreferredSchedulingTerm. + A node selector term, associated with the corresponding weight. + + :return: The preference of this V1PreferredSchedulingTerm. + :rtype: V1NodeSelectorTerm + """ + return self._preference + + @preference.setter + def preference(self, preference): + """ + Sets the preference of this V1PreferredSchedulingTerm. + A node selector term, associated with the corresponding weight. + + :param preference: The preference of this V1PreferredSchedulingTerm. + :type: V1NodeSelectorTerm + """ + if preference is None: + raise ValueError("Invalid value for `preference`, must not be `None`") + + self._preference = preference + + @property + def weight(self): + """ + Gets the weight of this V1PreferredSchedulingTerm. + Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + :return: The weight of this V1PreferredSchedulingTerm. + :rtype: int + """ + return self._weight + + @weight.setter + def weight(self, weight): + """ + Sets the weight of this V1PreferredSchedulingTerm. + Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + :param weight: The weight of this V1PreferredSchedulingTerm. + :type: int + """ + if weight is None: + raise ValueError("Invalid value for `weight`, must not be `None`") + + self._weight = weight + + 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/kubernetes/client/models/v1_probe.py b/kubernetes/client/models/v1_probe.py index 6520feb544..74a4748eba 100644 --- a/kubernetes/client/models/v1_probe.py +++ b/kubernetes/client/models/v1_probe.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_projected_volume_source.py b/kubernetes/client/models/v1_projected_volume_source.py new file mode 100644 index 0000000000..1e97a68ac1 --- /dev/null +++ b/kubernetes/client/models/v1_projected_volume_source.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ProjectedVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, default_mode=None, sources=None): + """ + V1ProjectedVolumeSource - 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_mode': 'int', + 'sources': 'list[V1VolumeProjection]' + } + + self.attribute_map = { + 'default_mode': 'defaultMode', + 'sources': 'sources' + } + + self._default_mode = default_mode + self._sources = sources + + @property + def default_mode(self): + """ + Gets the default_mode of this V1ProjectedVolumeSource. + Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + + :return: The default_mode of this V1ProjectedVolumeSource. + :rtype: int + """ + return self._default_mode + + @default_mode.setter + def default_mode(self, default_mode): + """ + Sets the default_mode of this V1ProjectedVolumeSource. + Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + + :param default_mode: The default_mode of this V1ProjectedVolumeSource. + :type: int + """ + + self._default_mode = default_mode + + @property + def sources(self): + """ + Gets the sources of this V1ProjectedVolumeSource. + list of volume projections + + :return: The sources of this V1ProjectedVolumeSource. + :rtype: list[V1VolumeProjection] + """ + return self._sources + + @sources.setter + def sources(self, sources): + """ + Sets the sources of this V1ProjectedVolumeSource. + list of volume projections + + :param sources: The sources of this V1ProjectedVolumeSource. + :type: list[V1VolumeProjection] + """ + if sources is None: + raise ValueError("Invalid value for `sources`, must not be `None`") + + self._sources = sources + + 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/kubernetes/client/models/v1_quobyte_volume_source.py b/kubernetes/client/models/v1_quobyte_volume_source.py index ee4c72f54c..c6a908ad79 100644 --- a/kubernetes/client/models/v1_quobyte_volume_source.py +++ b/kubernetes/client/models/v1_quobyte_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_rbd_volume_source.py b/kubernetes/client/models/v1_rbd_volume_source.py index 622963c77c..07e6a022e3 100644 --- a/kubernetes/client/models/v1_rbd_volume_source.py +++ b/kubernetes/client/models/v1_rbd_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_replication_controller.py b/kubernetes/client/models/v1_replication_controller.py index f3a8d4e5ca..4e51e45770 100644 --- a/kubernetes/client/models/v1_replication_controller.py +++ b/kubernetes/client/models/v1_replication_controller.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_replication_controller_condition.py b/kubernetes/client/models/v1_replication_controller_condition.py index 2a9a2c9e18..7b7074721a 100644 --- a/kubernetes/client/models/v1_replication_controller_condition.py +++ b/kubernetes/client/models/v1_replication_controller_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,7 +31,7 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= and the value is json key in definition. """ self.swagger_types = { - 'last_transition_time': 'UnversionedTime', + 'last_transition_time': 'V1Time', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -59,7 +59,7 @@ def last_transition_time(self): The last time the condition transitioned from one status to another. :return: The last_transition_time of this V1ReplicationControllerCondition. - :rtype: UnversionedTime + :rtype: V1Time """ return self._last_transition_time @@ -70,7 +70,7 @@ def last_transition_time(self, last_transition_time): The last time the condition transitioned from one status to another. :param last_transition_time: The last_transition_time of this V1ReplicationControllerCondition. - :type: UnversionedTime + :type: V1Time """ self._last_transition_time = last_transition_time diff --git a/kubernetes/client/models/v1_replication_controller_list.py b/kubernetes/client/models/v1_replication_controller_list.py index 9600573e3c..a80cfe6daf 100644 --- a/kubernetes/client/models/v1_replication_controller_list.py +++ b/kubernetes/client/models/v1_replication_controller_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1ReplicationController]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_replication_controller_spec.py b/kubernetes/client/models/v1_replication_controller_spec.py index 007550f21a..e2279dba69 100644 --- a/kubernetes/client/models/v1_replication_controller_spec.py +++ b/kubernetes/client/models/v1_replication_controller_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_replication_controller_status.py b/kubernetes/client/models/v1_replication_controller_status.py index dccd63d5d6..3276e8c75c 100644 --- a/kubernetes/client/models/v1_replication_controller_status.py +++ b/kubernetes/client/models/v1_replication_controller_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_resource_attributes.py b/kubernetes/client/models/v1_resource_attributes.py new file mode 100644 index 0000000000..716746018a --- /dev/null +++ b/kubernetes/client/models/v1_resource_attributes.py @@ -0,0 +1,270 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ResourceAttributes(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): + """ + V1ResourceAttributes - 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 V1ResourceAttributes. + Group is the API Group of the Resource. \"*\" means all. + + :return: The group of this V1ResourceAttributes. + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """ + Sets the group of this V1ResourceAttributes. + Group is the API Group of the Resource. \"*\" means all. + + :param group: The group of this V1ResourceAttributes. + :type: str + """ + + self._group = group + + @property + def name(self): + """ + Gets the name of this V1ResourceAttributes. + 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 V1ResourceAttributes. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ResourceAttributes. + 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 V1ResourceAttributes. + :type: str + """ + + self._name = name + + @property + def namespace(self): + """ + Gets the namespace of this V1ResourceAttributes. + 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 V1ResourceAttributes. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1ResourceAttributes. + 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 V1ResourceAttributes. + :type: str + """ + + self._namespace = namespace + + @property + def resource(self): + """ + Gets the resource of this V1ResourceAttributes. + Resource is one of the existing resource types. \"*\" means all. + + :return: The resource of this V1ResourceAttributes. + :rtype: str + """ + return self._resource + + @resource.setter + def resource(self, resource): + """ + Sets the resource of this V1ResourceAttributes. + Resource is one of the existing resource types. \"*\" means all. + + :param resource: The resource of this V1ResourceAttributes. + :type: str + """ + + self._resource = resource + + @property + def subresource(self): + """ + Gets the subresource of this V1ResourceAttributes. + Subresource is one of the existing resource types. \"\" means none. + + :return: The subresource of this V1ResourceAttributes. + :rtype: str + """ + return self._subresource + + @subresource.setter + def subresource(self, subresource): + """ + Sets the subresource of this V1ResourceAttributes. + Subresource is one of the existing resource types. \"\" means none. + + :param subresource: The subresource of this V1ResourceAttributes. + :type: str + """ + + self._subresource = subresource + + @property + def verb(self): + """ + Gets the verb of this V1ResourceAttributes. + Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + + :return: The verb of this V1ResourceAttributes. + :rtype: str + """ + return self._verb + + @verb.setter + def verb(self, verb): + """ + Sets the verb of this V1ResourceAttributes. + Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + + :param verb: The verb of this V1ResourceAttributes. + :type: str + """ + + self._verb = verb + + @property + def version(self): + """ + Gets the version of this V1ResourceAttributes. + Version is the API Version of the Resource. \"*\" means all. + + :return: The version of this V1ResourceAttributes. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this V1ResourceAttributes. + Version is the API Version of the Resource. \"*\" means all. + + :param version: The version of this V1ResourceAttributes. + :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/kubernetes/client/models/v1_resource_field_selector.py b/kubernetes/client/models/v1_resource_field_selector.py index 7695b27fb7..130cd470a2 100644 --- a/kubernetes/client/models/v1_resource_field_selector.py +++ b/kubernetes/client/models/v1_resource_field_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_resource_quota.py b/kubernetes/client/models/v1_resource_quota.py index 1166874562..586a2e2e23 100644 --- a/kubernetes/client/models/v1_resource_quota.py +++ b/kubernetes/client/models/v1_resource_quota.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_resource_quota_list.py b/kubernetes/client/models/v1_resource_quota_list.py index 7629cfbbcb..02b0b4f05e 100644 --- a/kubernetes/client/models/v1_resource_quota_list.py +++ b/kubernetes/client/models/v1_resource_quota_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1ResourceQuota]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_resource_quota_spec.py b/kubernetes/client/models/v1_resource_quota_spec.py index 60ccc733ab..e63d1a39c7 100644 --- a/kubernetes/client/models/v1_resource_quota_spec.py +++ b/kubernetes/client/models/v1_resource_quota_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_resource_quota_status.py b/kubernetes/client/models/v1_resource_quota_status.py index 047c4b35b6..d3f1a0c872 100644 --- a/kubernetes/client/models/v1_resource_quota_status.py +++ b/kubernetes/client/models/v1_resource_quota_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_resource_requirements.py b/kubernetes/client/models/v1_resource_requirements.py index 52f262b020..3f69502a6b 100644 --- a/kubernetes/client/models/v1_resource_requirements.py +++ b/kubernetes/client/models/v1_resource_requirements.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_scale.py b/kubernetes/client/models/v1_scale.py index bff01014f7..9aff1b402c 100644 --- a/kubernetes/client/models/v1_scale.py +++ b/kubernetes/client/models/v1_scale.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_scale_io_volume_source.py b/kubernetes/client/models/v1_scale_io_volume_source.py new file mode 100644 index 0000000000..a25ed7e315 --- /dev/null +++ b/kubernetes/client/models/v1_scale_io_volume_source.py @@ -0,0 +1,354 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ScaleIOVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only=None, secret_ref=None, ssl_enabled=None, storage_mode=None, storage_pool=None, system=None, volume_name=None): + """ + V1ScaleIOVolumeSource - 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_type': 'str', + 'gateway': 'str', + 'protection_domain': 'str', + 'read_only': 'bool', + 'secret_ref': 'V1LocalObjectReference', + 'ssl_enabled': 'bool', + 'storage_mode': 'str', + 'storage_pool': 'str', + 'system': 'str', + 'volume_name': 'str' + } + + self.attribute_map = { + 'fs_type': 'fsType', + 'gateway': 'gateway', + 'protection_domain': 'protectionDomain', + 'read_only': 'readOnly', + 'secret_ref': 'secretRef', + 'ssl_enabled': 'sslEnabled', + 'storage_mode': 'storageMode', + 'storage_pool': 'storagePool', + 'system': 'system', + 'volume_name': 'volumeName' + } + + self._fs_type = fs_type + self._gateway = gateway + self._protection_domain = protection_domain + self._read_only = read_only + self._secret_ref = secret_ref + self._ssl_enabled = ssl_enabled + self._storage_mode = storage_mode + self._storage_pool = storage_pool + self._system = system + self._volume_name = volume_name + + @property + def fs_type(self): + """ + Gets the fs_type of this V1ScaleIOVolumeSource. + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + + :return: The fs_type of this V1ScaleIOVolumeSource. + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """ + Sets the fs_type of this V1ScaleIOVolumeSource. + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + + :param fs_type: The fs_type of this V1ScaleIOVolumeSource. + :type: str + """ + + self._fs_type = fs_type + + @property + def gateway(self): + """ + Gets the gateway of this V1ScaleIOVolumeSource. + The host address of the ScaleIO API Gateway. + + :return: The gateway of this V1ScaleIOVolumeSource. + :rtype: str + """ + return self._gateway + + @gateway.setter + def gateway(self, gateway): + """ + Sets the gateway of this V1ScaleIOVolumeSource. + The host address of the ScaleIO API Gateway. + + :param gateway: The gateway of this V1ScaleIOVolumeSource. + :type: str + """ + if gateway is None: + raise ValueError("Invalid value for `gateway`, must not be `None`") + + self._gateway = gateway + + @property + def protection_domain(self): + """ + Gets the protection_domain of this V1ScaleIOVolumeSource. + The name of the Protection Domain for the configured storage (defaults to \"default\"). + + :return: The protection_domain of this V1ScaleIOVolumeSource. + :rtype: str + """ + return self._protection_domain + + @protection_domain.setter + def protection_domain(self, protection_domain): + """ + Sets the protection_domain of this V1ScaleIOVolumeSource. + The name of the Protection Domain for the configured storage (defaults to \"default\"). + + :param protection_domain: The protection_domain of this V1ScaleIOVolumeSource. + :type: str + """ + + self._protection_domain = protection_domain + + @property + def read_only(self): + """ + Gets the read_only of this V1ScaleIOVolumeSource. + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + :return: The read_only of this V1ScaleIOVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this V1ScaleIOVolumeSource. + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + :param read_only: The read_only of this V1ScaleIOVolumeSource. + :type: bool + """ + + self._read_only = read_only + + @property + def secret_ref(self): + """ + Gets the secret_ref of this V1ScaleIOVolumeSource. + SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + + :return: The secret_ref of this V1ScaleIOVolumeSource. + :rtype: V1LocalObjectReference + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + Sets the secret_ref of this V1ScaleIOVolumeSource. + SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + + :param secret_ref: The secret_ref of this V1ScaleIOVolumeSource. + :type: V1LocalObjectReference + """ + if secret_ref is None: + raise ValueError("Invalid value for `secret_ref`, must not be `None`") + + self._secret_ref = secret_ref + + @property + def ssl_enabled(self): + """ + Gets the ssl_enabled of this V1ScaleIOVolumeSource. + Flag to enable/disable SSL communication with Gateway, default false + + :return: The ssl_enabled of this V1ScaleIOVolumeSource. + :rtype: bool + """ + return self._ssl_enabled + + @ssl_enabled.setter + def ssl_enabled(self, ssl_enabled): + """ + Sets the ssl_enabled of this V1ScaleIOVolumeSource. + Flag to enable/disable SSL communication with Gateway, default false + + :param ssl_enabled: The ssl_enabled of this V1ScaleIOVolumeSource. + :type: bool + """ + + self._ssl_enabled = ssl_enabled + + @property + def storage_mode(self): + """ + Gets the storage_mode of this V1ScaleIOVolumeSource. + Indicates whether the storage for a volume should be thick or thin (defaults to \"thin\"). + + :return: The storage_mode of this V1ScaleIOVolumeSource. + :rtype: str + """ + return self._storage_mode + + @storage_mode.setter + def storage_mode(self, storage_mode): + """ + Sets the storage_mode of this V1ScaleIOVolumeSource. + Indicates whether the storage for a volume should be thick or thin (defaults to \"thin\"). + + :param storage_mode: The storage_mode of this V1ScaleIOVolumeSource. + :type: str + """ + + self._storage_mode = storage_mode + + @property + def storage_pool(self): + """ + Gets the storage_pool of this V1ScaleIOVolumeSource. + The Storage Pool associated with the protection domain (defaults to \"default\"). + + :return: The storage_pool of this V1ScaleIOVolumeSource. + :rtype: str + """ + return self._storage_pool + + @storage_pool.setter + def storage_pool(self, storage_pool): + """ + Sets the storage_pool of this V1ScaleIOVolumeSource. + The Storage Pool associated with the protection domain (defaults to \"default\"). + + :param storage_pool: The storage_pool of this V1ScaleIOVolumeSource. + :type: str + """ + + self._storage_pool = storage_pool + + @property + def system(self): + """ + Gets the system of this V1ScaleIOVolumeSource. + The name of the storage system as configured in ScaleIO. + + :return: The system of this V1ScaleIOVolumeSource. + :rtype: str + """ + return self._system + + @system.setter + def system(self, system): + """ + Sets the system of this V1ScaleIOVolumeSource. + The name of the storage system as configured in ScaleIO. + + :param system: The system of this V1ScaleIOVolumeSource. + :type: str + """ + if system is None: + raise ValueError("Invalid value for `system`, must not be `None`") + + self._system = system + + @property + def volume_name(self): + """ + Gets the volume_name of this V1ScaleIOVolumeSource. + The name of a volume already created in the ScaleIO system that is associated with this volume source. + + :return: The volume_name of this V1ScaleIOVolumeSource. + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """ + Sets the volume_name of this V1ScaleIOVolumeSource. + The name of a volume already created in the ScaleIO system that is associated with this volume source. + + :param volume_name: The volume_name of this V1ScaleIOVolumeSource. + :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/kubernetes/client/models/v1_scale_spec.py b/kubernetes/client/models/v1_scale_spec.py index 4cbe438899..18f67ac55d 100644 --- a/kubernetes/client/models/v1_scale_spec.py +++ b/kubernetes/client/models/v1_scale_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_scale_status.py b/kubernetes/client/models/v1_scale_status.py index f3c5fbe86a..2da0a23be8 100644 --- a/kubernetes/client/models/v1_scale_status.py +++ b/kubernetes/client/models/v1_scale_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_se_linux_options.py b/kubernetes/client/models/v1_se_linux_options.py index 8737010b48..1cfc89cf47 100644 --- a/kubernetes/client/models/v1_se_linux_options.py +++ b/kubernetes/client/models/v1_se_linux_options.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_secret.py b/kubernetes/client/models/v1_secret.py index 848137e6c9..edd624620c 100644 --- a/kubernetes/client/models/v1_secret.py +++ b/kubernetes/client/models/v1_secret.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_secret_env_source.py b/kubernetes/client/models/v1_secret_env_source.py new file mode 100644 index 0000000000..8dab088446 --- /dev/null +++ b/kubernetes/client/models/v1_secret_env_source.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SecretEnvSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, optional=None): + """ + V1SecretEnvSource - 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', + 'optional': 'bool' + } + + self.attribute_map = { + 'name': 'name', + 'optional': 'optional' + } + + self._name = name + self._optional = optional + + @property + def name(self): + """ + Gets the name of this V1SecretEnvSource. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :return: The name of this V1SecretEnvSource. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1SecretEnvSource. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :param name: The name of this V1SecretEnvSource. + :type: str + """ + + self._name = name + + @property + def optional(self): + """ + Gets the optional of this V1SecretEnvSource. + Specify whether the Secret must be defined + + :return: The optional of this V1SecretEnvSource. + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """ + Sets the optional of this V1SecretEnvSource. + Specify whether the Secret must be defined + + :param optional: The optional of this V1SecretEnvSource. + :type: bool + """ + + self._optional = optional + + 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/kubernetes/client/models/v1_secret_key_selector.py b/kubernetes/client/models/v1_secret_key_selector.py index b1785e5d3b..dafdc016d7 100644 --- a/kubernetes/client/models/v1_secret_key_selector.py +++ b/kubernetes/client/models/v1_secret_key_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ 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, name=None): + def __init__(self, key=None, name=None, optional=None): """ V1SecretKeySelector - a model defined in Swagger @@ -32,16 +32,19 @@ def __init__(self, key=None, name=None): """ self.swagger_types = { 'key': 'str', - 'name': 'str' + 'name': 'str', + 'optional': 'bool' } self.attribute_map = { 'key': 'key', - 'name': 'name' + 'name': 'name', + 'optional': 'optional' } self._key = key self._name = name + self._optional = optional @property def key(self): @@ -91,6 +94,29 @@ def name(self, name): self._name = name + @property + def optional(self): + """ + Gets the optional of this V1SecretKeySelector. + Specify whether the Secret or it's key must be defined + + :return: The optional of this V1SecretKeySelector. + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """ + Sets the optional of this V1SecretKeySelector. + Specify whether the Secret or it's key must be defined + + :param optional: The optional of this V1SecretKeySelector. + :type: bool + """ + + self._optional = optional + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubernetes/client/models/v1_secret_list.py b/kubernetes/client/models/v1_secret_list.py index 0fccb19d7f..fbe39ddf17 100644 --- a/kubernetes/client/models/v1_secret_list.py +++ b/kubernetes/client/models/v1_secret_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Secret]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_secret_projection.py b/kubernetes/client/models/v1_secret_projection.py new file mode 100644 index 0000000000..ecd088e746 --- /dev/null +++ b/kubernetes/client/models/v1_secret_projection.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SecretProjection(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, items=None, name=None, optional=None): + """ + V1SecretProjection - 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[V1KeyToPath]', + 'name': 'str', + 'optional': 'bool' + } + + self.attribute_map = { + 'items': 'items', + 'name': 'name', + 'optional': 'optional' + } + + self._items = items + self._name = name + self._optional = optional + + @property + def items(self): + """ + Gets the items of this V1SecretProjection. + If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + + :return: The items of this V1SecretProjection. + :rtype: list[V1KeyToPath] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1SecretProjection. + If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + + :param items: The items of this V1SecretProjection. + :type: list[V1KeyToPath] + """ + + self._items = items + + @property + def name(self): + """ + Gets the name of this V1SecretProjection. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :return: The name of this V1SecretProjection. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1SecretProjection. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + + :param name: The name of this V1SecretProjection. + :type: str + """ + + self._name = name + + @property + def optional(self): + """ + Gets the optional of this V1SecretProjection. + Specify whether the Secret or its key must be defined + + :return: The optional of this V1SecretProjection. + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """ + Sets the optional of this V1SecretProjection. + Specify whether the Secret or its key must be defined + + :param optional: The optional of this V1SecretProjection. + :type: bool + """ + + self._optional = optional + + 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/kubernetes/client/models/v1_secret_volume_source.py b/kubernetes/client/models/v1_secret_volume_source.py index ed5a5241b6..98f96b4e19 100644 --- a/kubernetes/client/models/v1_secret_volume_source.py +++ b/kubernetes/client/models/v1_secret_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1SecretVolumeSource(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, default_mode=None, items=None, secret_name=None): + def __init__(self, default_mode=None, items=None, optional=None, secret_name=None): """ V1SecretVolumeSource - a model defined in Swagger @@ -33,17 +33,20 @@ def __init__(self, default_mode=None, items=None, secret_name=None): self.swagger_types = { 'default_mode': 'int', 'items': 'list[V1KeyToPath]', + 'optional': 'bool', 'secret_name': 'str' } self.attribute_map = { 'default_mode': 'defaultMode', 'items': 'items', + 'optional': 'optional', 'secret_name': 'secretName' } self._default_mode = default_mode self._items = items + self._optional = optional self._secret_name = secret_name @property @@ -73,7 +76,7 @@ def default_mode(self, default_mode): def items(self): """ Gets the items of this V1SecretVolumeSource. - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. + If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. :return: The items of this V1SecretVolumeSource. :rtype: list[V1KeyToPath] @@ -84,7 +87,7 @@ def items(self): def items(self, items): """ Sets the items of this V1SecretVolumeSource. - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. + If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. :param items: The items of this V1SecretVolumeSource. :type: list[V1KeyToPath] @@ -92,6 +95,29 @@ def items(self, items): self._items = items + @property + def optional(self): + """ + Gets the optional of this V1SecretVolumeSource. + Specify whether the Secret or it's keys must be defined + + :return: The optional of this V1SecretVolumeSource. + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """ + Sets the optional of this V1SecretVolumeSource. + Specify whether the Secret or it's keys must be defined + + :param optional: The optional of this V1SecretVolumeSource. + :type: bool + """ + + self._optional = optional + @property def secret_name(self): """ diff --git a/kubernetes/client/models/v1_security_context.py b/kubernetes/client/models/v1_security_context.py index c43da9f66b..6066bfa4b3 100644 --- a/kubernetes/client/models/v1_security_context.py +++ b/kubernetes/client/models/v1_security_context.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_self_subject_access_review.py b/kubernetes/client/models/v1_self_subject_access_review.py new file mode 100644 index 0000000000..2181e4ef52 --- /dev/null +++ b/kubernetes/client/models/v1_self_subject_access_review.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SelfSubjectAccessReview(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, metadata=None, spec=None, status=None): + """ + V1SelfSubjectAccessReview - 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', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1SelfSubjectAccessReviewSpec', + 'status': 'V1SubjectAccessReviewStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1SelfSubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1SelfSubjectAccessReview. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1SelfSubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1SelfSubjectAccessReview. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1SelfSubjectAccessReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1SelfSubjectAccessReview. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1SelfSubjectAccessReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1SelfSubjectAccessReview. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1SelfSubjectAccessReview. + + :return: The metadata of this V1SelfSubjectAccessReview. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1SelfSubjectAccessReview. + + :param metadata: The metadata of this V1SelfSubjectAccessReview. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1SelfSubjectAccessReview. + Spec holds information about the request being evaluated. user and groups must be empty + + :return: The spec of this V1SelfSubjectAccessReview. + :rtype: V1SelfSubjectAccessReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1SelfSubjectAccessReview. + Spec holds information about the request being evaluated. user and groups must be empty + + :param spec: The spec of this V1SelfSubjectAccessReview. + :type: V1SelfSubjectAccessReviewSpec + """ + 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 V1SelfSubjectAccessReview. + Status is filled in by the server and indicates whether the request is allowed or not + + :return: The status of this V1SelfSubjectAccessReview. + :rtype: V1SubjectAccessReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1SelfSubjectAccessReview. + Status is filled in by the server and indicates whether the request is allowed or not + + :param status: The status of this V1SelfSubjectAccessReview. + :type: V1SubjectAccessReviewStatus + """ + + 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/kubernetes/client/models/v1_self_subject_access_review_spec.py b/kubernetes/client/models/v1_self_subject_access_review_spec.py new file mode 100644 index 0000000000..0345da4347 --- /dev/null +++ b/kubernetes/client/models/v1_self_subject_access_review_spec.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SelfSubjectAccessReviewSpec(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): + """ + V1SelfSubjectAccessReviewSpec - 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': 'V1NonResourceAttributes', + 'resource_attributes': 'V1ResourceAttributes' + } + + 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 V1SelfSubjectAccessReviewSpec. + NonResourceAttributes describes information for a non-resource access request + + :return: The non_resource_attributes of this V1SelfSubjectAccessReviewSpec. + :rtype: V1NonResourceAttributes + """ + return self._non_resource_attributes + + @non_resource_attributes.setter + def non_resource_attributes(self, non_resource_attributes): + """ + Sets the non_resource_attributes of this V1SelfSubjectAccessReviewSpec. + NonResourceAttributes describes information for a non-resource access request + + :param non_resource_attributes: The non_resource_attributes of this V1SelfSubjectAccessReviewSpec. + :type: V1NonResourceAttributes + """ + + self._non_resource_attributes = non_resource_attributes + + @property + def resource_attributes(self): + """ + Gets the resource_attributes of this V1SelfSubjectAccessReviewSpec. + ResourceAuthorizationAttributes describes information for a resource access request + + :return: The resource_attributes of this V1SelfSubjectAccessReviewSpec. + :rtype: V1ResourceAttributes + """ + return self._resource_attributes + + @resource_attributes.setter + def resource_attributes(self, resource_attributes): + """ + Sets the resource_attributes of this V1SelfSubjectAccessReviewSpec. + ResourceAuthorizationAttributes describes information for a resource access request + + :param resource_attributes: The resource_attributes of this V1SelfSubjectAccessReviewSpec. + :type: V1ResourceAttributes + """ + + 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/kubernetes/client/models/unversioned_server_address_by_client_cidr.py b/kubernetes/client/models/v1_server_address_by_client_cidr.py similarity index 82% rename from kubernetes/client/models/unversioned_server_address_by_client_cidr.py rename to kubernetes/client/models/v1_server_address_by_client_cidr.py index 15b2e369e5..1665f25aa7 100644 --- a/kubernetes/client/models/unversioned_server_address_by_client_cidr.py +++ b/kubernetes/client/models/v1_server_address_by_client_cidr.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class UnversionedServerAddressByClientCIDR(object): +class V1ServerAddressByClientCIDR(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 + V1ServerAddressByClientCIDR - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -46,10 +46,10 @@ def __init__(self, client_cidr=None, server_address=None): @property def client_cidr(self): """ - Gets the client_cidr of this UnversionedServerAddressByClientCIDR. + Gets the client_cidr of this V1ServerAddressByClientCIDR. 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. + :return: The client_cidr of this V1ServerAddressByClientCIDR. :rtype: str """ return self._client_cidr @@ -57,10 +57,10 @@ def client_cidr(self): @client_cidr.setter def client_cidr(self, client_cidr): """ - Sets the client_cidr of this UnversionedServerAddressByClientCIDR. + Sets the client_cidr of this V1ServerAddressByClientCIDR. 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. + :param client_cidr: The client_cidr of this V1ServerAddressByClientCIDR. :type: str """ if client_cidr is None: @@ -71,10 +71,10 @@ def client_cidr(self, client_cidr): @property def server_address(self): """ - Gets the server_address of this UnversionedServerAddressByClientCIDR. + Gets the server_address of this V1ServerAddressByClientCIDR. 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. + :return: The server_address of this V1ServerAddressByClientCIDR. :rtype: str """ return self._server_address @@ -82,10 +82,10 @@ def server_address(self): @server_address.setter def server_address(self, server_address): """ - Sets the server_address of this UnversionedServerAddressByClientCIDR. + Sets the server_address of this V1ServerAddressByClientCIDR. 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. + :param server_address: The server_address of this V1ServerAddressByClientCIDR. :type: str """ if server_address is None: diff --git a/kubernetes/client/models/v1_service.py b/kubernetes/client/models/v1_service.py index 7ff5510239..c9f82ca8a6 100644 --- a/kubernetes/client/models/v1_service.py +++ b/kubernetes/client/models/v1_service.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_service_account.py b/kubernetes/client/models/v1_service_account.py index b3d46adf6d..af5460573d 100644 --- a/kubernetes/client/models/v1_service_account.py +++ b/kubernetes/client/models/v1_service_account.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1ServiceAccount(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, image_pull_secrets=None, kind=None, metadata=None, secrets=None): + def __init__(self, api_version=None, automount_service_account_token=None, image_pull_secrets=None, kind=None, metadata=None, secrets=None): """ V1ServiceAccount - a model defined in Swagger @@ -32,6 +32,7 @@ def __init__(self, api_version=None, image_pull_secrets=None, kind=None, metadat """ self.swagger_types = { 'api_version': 'str', + 'automount_service_account_token': 'bool', 'image_pull_secrets': 'list[V1LocalObjectReference]', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -40,6 +41,7 @@ def __init__(self, api_version=None, image_pull_secrets=None, kind=None, metadat self.attribute_map = { 'api_version': 'apiVersion', + 'automount_service_account_token': 'automountServiceAccountToken', 'image_pull_secrets': 'imagePullSecrets', 'kind': 'kind', 'metadata': 'metadata', @@ -47,6 +49,7 @@ def __init__(self, api_version=None, image_pull_secrets=None, kind=None, metadat } self._api_version = api_version + self._automount_service_account_token = automount_service_account_token self._image_pull_secrets = image_pull_secrets self._kind = kind self._metadata = metadata @@ -75,6 +78,29 @@ def api_version(self, api_version): self._api_version = api_version + @property + def automount_service_account_token(self): + """ + Gets the automount_service_account_token of this V1ServiceAccount. + AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + + :return: The automount_service_account_token of this V1ServiceAccount. + :rtype: bool + """ + return self._automount_service_account_token + + @automount_service_account_token.setter + def automount_service_account_token(self, automount_service_account_token): + """ + Sets the automount_service_account_token of this V1ServiceAccount. + AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + + :param automount_service_account_token: The automount_service_account_token of this V1ServiceAccount. + :type: bool + """ + + self._automount_service_account_token = automount_service_account_token + @property def image_pull_secrets(self): """ diff --git a/kubernetes/client/models/v1_service_account_list.py b/kubernetes/client/models/v1_service_account_list.py index baf1949639..11d486c666 100644 --- a/kubernetes/client/models/v1_service_account_list.py +++ b/kubernetes/client/models/v1_service_account_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1ServiceAccount]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_service_list.py b/kubernetes/client/models/v1_service_list.py index b72ebc5709..7417baff89 100644 --- a/kubernetes/client/models/v1_service_list.py +++ b/kubernetes/client/models/v1_service_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1Service]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1_service_port.py b/kubernetes/client/models/v1_service_port.py index 7d2336208e..08e635cea1 100644 --- a/kubernetes/client/models/v1_service_port.py +++ b/kubernetes/client/models/v1_service_port.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_service_spec.py b/kubernetes/client/models/v1_service_spec.py index 58b8c9a08e..2b81133a66 100644 --- a/kubernetes/client/models/v1_service_spec.py +++ b/kubernetes/client/models/v1_service_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -225,8 +225,6 @@ def ports(self, ports): :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 diff --git a/kubernetes/client/models/v1_service_status.py b/kubernetes/client/models/v1_service_status.py index 9b2e6271dd..718075079f 100644 --- a/kubernetes/client/models/v1_service_status.py +++ b/kubernetes/client/models/v1_service_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/unversioned_status.py b/kubernetes/client/models/v1_status.py similarity index 77% rename from kubernetes/client/models/unversioned_status.py rename to kubernetes/client/models/v1_status.py index 39839e2393..88fd4e8c05 100644 --- a/kubernetes/client/models/unversioned_status.py +++ b/kubernetes/client/models/v1_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class UnversionedStatus(object): +class V1Status(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, code=None, details=None, kind=None, message=None, metadata=None, reason=None, status=None): """ - UnversionedStatus - a model defined in Swagger + V1Status - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -33,10 +33,10 @@ def __init__(self, api_version=None, code=None, details=None, kind=None, message self.swagger_types = { 'api_version': 'str', 'code': 'int', - 'details': 'UnversionedStatusDetails', + 'details': 'V1StatusDetails', 'kind': 'str', 'message': 'str', - 'metadata': 'UnversionedListMeta', + 'metadata': 'V1ListMeta', 'reason': 'str', 'status': 'str' } @@ -64,10 +64,10 @@ def __init__(self, api_version=None, code=None, details=None, kind=None, message @property def api_version(self): """ - Gets the api_version of this UnversionedStatus. + Gets the api_version of this V1Status. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this UnversionedStatus. + :return: The api_version of this V1Status. :rtype: str """ return self._api_version @@ -75,10 +75,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this UnversionedStatus. + Sets the api_version of this V1Status. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this UnversionedStatus. + :param api_version: The api_version of this V1Status. :type: str """ @@ -87,10 +87,10 @@ def api_version(self, api_version): @property def code(self): """ - Gets the code of this UnversionedStatus. + Gets the code of this V1Status. Suggested HTTP return code for this status, 0 if not set. - :return: The code of this UnversionedStatus. + :return: The code of this V1Status. :rtype: int """ return self._code @@ -98,10 +98,10 @@ def code(self): @code.setter def code(self, code): """ - Sets the code of this UnversionedStatus. + Sets the code of this V1Status. Suggested HTTP return code for this status, 0 if not set. - :param code: The code of this UnversionedStatus. + :param code: The code of this V1Status. :type: int """ @@ -110,22 +110,22 @@ def code(self, code): @property def details(self): """ - Gets the details of this UnversionedStatus. + Gets the details of this V1Status. 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: The details of this V1Status. + :rtype: V1StatusDetails """ return self._details @details.setter def details(self, details): """ - Sets the details of this UnversionedStatus. + Sets the details of this V1Status. 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 + :param details: The details of this V1Status. + :type: V1StatusDetails """ self._details = details @@ -133,10 +133,10 @@ def details(self, details): @property def kind(self): """ - Gets the kind of this UnversionedStatus. + Gets the kind of this V1Status. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this UnversionedStatus. + :return: The kind of this V1Status. :rtype: str """ return self._kind @@ -144,10 +144,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this UnversionedStatus. + Sets the kind of this V1Status. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this UnversionedStatus. + :param kind: The kind of this V1Status. :type: str """ @@ -156,10 +156,10 @@ def kind(self, kind): @property def message(self): """ - Gets the message of this UnversionedStatus. + Gets the message of this V1Status. A human-readable description of the status of this operation. - :return: The message of this UnversionedStatus. + :return: The message of this V1Status. :rtype: str """ return self._message @@ -167,10 +167,10 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this UnversionedStatus. + Sets the message of this V1Status. A human-readable description of the status of this operation. - :param message: The message of this UnversionedStatus. + :param message: The message of this V1Status. :type: str """ @@ -179,22 +179,22 @@ def message(self, message): @property def metadata(self): """ - Gets the metadata of this UnversionedStatus. + Gets the metadata of this V1Status. 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: The metadata of this V1Status. + :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this UnversionedStatus. + Sets the metadata of this V1Status. 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 + :param metadata: The metadata of this V1Status. + :type: V1ListMeta """ self._metadata = metadata @@ -202,10 +202,10 @@ def metadata(self, metadata): @property def reason(self): """ - Gets the reason of this UnversionedStatus. + Gets the reason of this V1Status. 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. + :return: The reason of this V1Status. :rtype: str """ return self._reason @@ -213,10 +213,10 @@ def reason(self): @reason.setter def reason(self, reason): """ - Sets the reason of this UnversionedStatus. + Sets the reason of this V1Status. 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. + :param reason: The reason of this V1Status. :type: str """ @@ -225,10 +225,10 @@ def reason(self, reason): @property def status(self): """ - Gets the status of this UnversionedStatus. + Gets the status of this V1Status. 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. + :return: The status of this V1Status. :rtype: str """ return self._status @@ -236,10 +236,10 @@ def status(self): @status.setter def status(self, status): """ - Sets the status of this UnversionedStatus. + Sets the status of this V1Status. 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. + :param status: The status of this V1Status. :type: str """ diff --git a/kubernetes/client/models/unversioned_status_cause.py b/kubernetes/client/models/v1_status_cause.py similarity index 84% rename from kubernetes/client/models/unversioned_status_cause.py rename to kubernetes/client/models/v1_status_cause.py index 724c86447f..501fde513b 100644 --- a/kubernetes/client/models/unversioned_status_cause.py +++ b/kubernetes/client/models/v1_status_cause.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class UnversionedStatusCause(object): +class V1StatusCause(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 + V1StatusCause - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -49,10 +49,10 @@ def __init__(self, field=None, message=None, reason=None): @property def field(self): """ - Gets the field of this UnversionedStatusCause. + Gets the field of this V1StatusCause. 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. + :return: The field of this V1StatusCause. :rtype: str """ return self._field @@ -60,10 +60,10 @@ def field(self): @field.setter def field(self, field): """ - Sets the field of this UnversionedStatusCause. + Sets the field of this V1StatusCause. 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. + :param field: The field of this V1StatusCause. :type: str """ @@ -72,10 +72,10 @@ def field(self, field): @property def message(self): """ - Gets the message of this UnversionedStatusCause. + Gets the message of this V1StatusCause. 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. + :return: The message of this V1StatusCause. :rtype: str """ return self._message @@ -83,10 +83,10 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this UnversionedStatusCause. + Sets the message of this V1StatusCause. 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. + :param message: The message of this V1StatusCause. :type: str """ @@ -95,10 +95,10 @@ def message(self, message): @property def reason(self): """ - Gets the reason of this UnversionedStatusCause. + Gets the reason of this V1StatusCause. 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. + :return: The reason of this V1StatusCause. :rtype: str """ return self._reason @@ -106,10 +106,10 @@ def reason(self): @reason.setter def reason(self, reason): """ - Sets the reason of this UnversionedStatusCause. + Sets the reason of this V1StatusCause. 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. + :param reason: The reason of this V1StatusCause. :type: str """ diff --git a/kubernetes/client/models/unversioned_status_details.py b/kubernetes/client/models/v1_status_details.py similarity index 78% rename from kubernetes/client/models/unversioned_status_details.py rename to kubernetes/client/models/v1_status_details.py index c1fe1c7b38..8b5431caa0 100644 --- a/kubernetes/client/models/unversioned_status_details.py +++ b/kubernetes/client/models/v1_status_details.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class UnversionedStatusDetails(object): +class V1StatusDetails(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 + V1StatusDetails - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -31,7 +31,7 @@ def __init__(self, causes=None, group=None, kind=None, name=None, retry_after_se and the value is json key in definition. """ self.swagger_types = { - 'causes': 'list[UnversionedStatusCause]', + 'causes': 'list[V1StatusCause]', 'group': 'str', 'kind': 'str', 'name': 'str', @@ -55,22 +55,22 @@ def __init__(self, causes=None, group=None, kind=None, name=None, retry_after_se @property def causes(self): """ - Gets the causes of this UnversionedStatusDetails. + Gets the causes of this V1StatusDetails. 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: The causes of this V1StatusDetails. + :rtype: list[V1StatusCause] """ return self._causes @causes.setter def causes(self, causes): """ - Sets the causes of this UnversionedStatusDetails. + Sets the causes of this V1StatusDetails. 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] + :param causes: The causes of this V1StatusDetails. + :type: list[V1StatusCause] """ self._causes = causes @@ -78,10 +78,10 @@ def causes(self, causes): @property def group(self): """ - Gets the group of this UnversionedStatusDetails. + Gets the group of this V1StatusDetails. The group attribute of the resource associated with the status StatusReason. - :return: The group of this UnversionedStatusDetails. + :return: The group of this V1StatusDetails. :rtype: str """ return self._group @@ -89,10 +89,10 @@ def group(self): @group.setter def group(self, group): """ - Sets the group of this UnversionedStatusDetails. + Sets the group of this V1StatusDetails. The group attribute of the resource associated with the status StatusReason. - :param group: The group of this UnversionedStatusDetails. + :param group: The group of this V1StatusDetails. :type: str """ @@ -101,10 +101,10 @@ def group(self, group): @property def kind(self): """ - Gets the kind of this UnversionedStatusDetails. + Gets the kind of this V1StatusDetails. 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. + :return: The kind of this V1StatusDetails. :rtype: str """ return self._kind @@ -112,10 +112,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this UnversionedStatusDetails. + Sets the kind of this V1StatusDetails. 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. + :param kind: The kind of this V1StatusDetails. :type: str """ @@ -124,10 +124,10 @@ def kind(self, kind): @property def name(self): """ - Gets the name of this UnversionedStatusDetails. + Gets the name of this V1StatusDetails. 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. + :return: The name of this V1StatusDetails. :rtype: str """ return self._name @@ -135,10 +135,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this UnversionedStatusDetails. + Sets the name of this V1StatusDetails. 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. + :param name: The name of this V1StatusDetails. :type: str """ @@ -147,10 +147,10 @@ def name(self, name): @property def retry_after_seconds(self): """ - Gets the retry_after_seconds of this UnversionedStatusDetails. + Gets the retry_after_seconds of this V1StatusDetails. If specified, the time in seconds before the operation should be retried. - :return: The retry_after_seconds of this UnversionedStatusDetails. + :return: The retry_after_seconds of this V1StatusDetails. :rtype: int """ return self._retry_after_seconds @@ -158,10 +158,10 @@ def retry_after_seconds(self): @retry_after_seconds.setter def retry_after_seconds(self, retry_after_seconds): """ - Sets the retry_after_seconds of this UnversionedStatusDetails. + Sets the retry_after_seconds of this V1StatusDetails. If specified, the time in seconds before the operation should be retried. - :param retry_after_seconds: The retry_after_seconds of this UnversionedStatusDetails. + :param retry_after_seconds: The retry_after_seconds of this V1StatusDetails. :type: int """ diff --git a/kubernetes/client/models/v1_storage_class.py b/kubernetes/client/models/v1_storage_class.py new file mode 100644 index 0000000000..95da8217d1 --- /dev/null +++ b/kubernetes/client/models/v1_storage_class.py @@ -0,0 +1,220 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1StorageClass(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, metadata=None, parameters=None, provisioner=None): + """ + V1StorageClass - 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', + 'metadata': 'V1ObjectMeta', + 'parameters': 'dict(str, str)', + 'provisioner': 'str' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'parameters': 'parameters', + 'provisioner': 'provisioner' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._parameters = parameters + self._provisioner = provisioner + + @property + def api_version(self): + """ + Gets the api_version of this V1StorageClass. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1StorageClass. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1StorageClass. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1StorageClass. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1StorageClass. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1StorageClass. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1StorageClass. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1StorageClass. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1StorageClass. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1StorageClass. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1StorageClass. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1StorageClass. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def parameters(self): + """ + Gets the parameters of this V1StorageClass. + Parameters holds the parameters for the provisioner that should create volumes of this storage class. + + :return: The parameters of this V1StorageClass. + :rtype: dict(str, str) + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """ + Sets the parameters of this V1StorageClass. + Parameters holds the parameters for the provisioner that should create volumes of this storage class. + + :param parameters: The parameters of this V1StorageClass. + :type: dict(str, str) + """ + + self._parameters = parameters + + @property + def provisioner(self): + """ + Gets the provisioner of this V1StorageClass. + Provisioner indicates the type of the provisioner. + + :return: The provisioner of this V1StorageClass. + :rtype: str + """ + return self._provisioner + + @provisioner.setter + def provisioner(self, provisioner): + """ + Sets the provisioner of this V1StorageClass. + Provisioner indicates the type of the provisioner. + + :param provisioner: The provisioner of this V1StorageClass. + :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/kubernetes/client/models/v1beta1_job_list.py b/kubernetes/client/models/v1_storage_class_list.py similarity index 78% rename from kubernetes/client/models/v1beta1_job_list.py rename to kubernetes/client/models/v1_storage_class_list.py index 8646bdfdb4..e803c1b933 100644 --- a/kubernetes/client/models/v1beta1_job_list.py +++ b/kubernetes/client/models/v1_storage_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1JobList(object): +class V1StorageClassList(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, items=None, kind=None, metadata=None): """ - V1beta1JobList - a model defined in Swagger + V1StorageClassList - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -32,9 +32,9 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ self.swagger_types = { 'api_version': 'str', - 'items': 'list[V1beta1Job]', + 'items': 'list[V1StorageClass]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -52,10 +52,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1beta1JobList. + Gets the api_version of this V1StorageClassList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this V1beta1JobList. + :return: The api_version of this V1StorageClassList. :rtype: str """ return self._api_version @@ -63,10 +63,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1beta1JobList. + Sets the api_version of this V1StorageClassList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this V1beta1JobList. + :param api_version: The api_version of this V1StorageClassList. :type: str """ @@ -75,22 +75,22 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1beta1JobList. - Items is the list of Job. + Gets the items of this V1StorageClassList. + Items is the list of StorageClasses - :return: The items of this V1beta1JobList. - :rtype: list[V1beta1Job] + :return: The items of this V1StorageClassList. + :rtype: list[V1StorageClass] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1beta1JobList. - Items is the list of Job. + Sets the items of this V1StorageClassList. + Items is the list of StorageClasses - :param items: The items of this V1beta1JobList. - :type: list[V1beta1Job] + :param items: The items of this V1StorageClassList. + :type: list[V1StorageClass] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -100,10 +100,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1beta1JobList. + Gets the kind of this V1StorageClassList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this V1beta1JobList. + :return: The kind of this V1StorageClassList. :rtype: str """ return self._kind @@ -111,10 +111,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1beta1JobList. + Sets the kind of this V1StorageClassList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1beta1JobList. + :param kind: The kind of this V1StorageClassList. :type: str """ @@ -123,22 +123,22 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1beta1JobList. + Gets the metadata of this V1StorageClassList. 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: The metadata of this V1StorageClassList. + :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1beta1JobList. + Sets the metadata of this V1StorageClassList. 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 + :param metadata: The metadata of this V1StorageClassList. + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v2alpha1_job.py b/kubernetes/client/models/v1_subject_access_review.py similarity index 69% rename from kubernetes/client/models/v2alpha1_job.py rename to kubernetes/client/models/v1_subject_access_review.py index 41ddc24fc4..1200df5f81 100644 --- a/kubernetes/client/models/v2alpha1_job.py +++ b/kubernetes/client/models/v1_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V2alpha1Job(object): +class V1SubjectAccessReview(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, metadata=None, spec=None, status=None): """ - V2alpha1Job - a model defined in Swagger + V1SubjectAccessReview - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -34,8 +34,8 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', - 'spec': 'V2alpha1JobSpec', - 'status': 'V2alpha1JobStatus' + 'spec': 'V1SubjectAccessReviewSpec', + 'status': 'V1SubjectAccessReviewStatus' } self.attribute_map = { @@ -55,10 +55,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V2alpha1Job. + Gets the api_version of this V1SubjectAccessReview. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this V2alpha1Job. + :return: The api_version of this V1SubjectAccessReview. :rtype: str """ return self._api_version @@ -66,10 +66,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V2alpha1Job. + Sets the api_version of this V1SubjectAccessReview. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this V2alpha1Job. + :param api_version: The api_version of this V1SubjectAccessReview. :type: str """ @@ -78,10 +78,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V2alpha1Job. + Gets the kind of this V1SubjectAccessReview. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this V2alpha1Job. + :return: The kind of this V1SubjectAccessReview. :rtype: str """ return self._kind @@ -89,10 +89,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V2alpha1Job. + Sets the kind of this V1SubjectAccessReview. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this V2alpha1Job. + :param kind: The kind of this V1SubjectAccessReview. :type: str """ @@ -101,10 +101,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V2alpha1Job. - Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + Gets the metadata of this V1SubjectAccessReview. - :return: The metadata of this V2alpha1Job. + :return: The metadata of this V1SubjectAccessReview. :rtype: V1ObjectMeta """ return self._metadata @@ -112,10 +111,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V2alpha1Job. - Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + Sets the metadata of this V1SubjectAccessReview. - :param metadata: The metadata of this V2alpha1Job. + :param metadata: The metadata of this V1SubjectAccessReview. :type: V1ObjectMeta """ @@ -124,45 +122,47 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V2alpha1Job. - 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 + Gets the spec of this V1SubjectAccessReview. + Spec holds information about the request being evaluated - :return: The spec of this V2alpha1Job. - :rtype: V2alpha1JobSpec + :return: The spec of this V1SubjectAccessReview. + :rtype: V1SubjectAccessReviewSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V2alpha1Job. - 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 + Sets the spec of this V1SubjectAccessReview. + Spec holds information about the request being evaluated - :param spec: The spec of this V2alpha1Job. - :type: V2alpha1JobSpec + :param spec: The spec of this V1SubjectAccessReview. + :type: V1SubjectAccessReviewSpec """ + 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 V2alpha1Job. - 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 + Gets the status of this V1SubjectAccessReview. + Status is filled in by the server and indicates whether the request is allowed or not - :return: The status of this V2alpha1Job. - :rtype: V2alpha1JobStatus + :return: The status of this V1SubjectAccessReview. + :rtype: V1SubjectAccessReviewStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V2alpha1Job. - 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 + Sets the status of this V1SubjectAccessReview. + Status is filled in by the server and indicates whether the request is allowed or not - :param status: The status of this V2alpha1Job. - :type: V2alpha1JobStatus + :param status: The status of this V1SubjectAccessReview. + :type: V1SubjectAccessReviewStatus """ self._status = status diff --git a/kubernetes/client/models/v1_subject_access_review_spec.py b/kubernetes/client/models/v1_subject_access_review_spec.py new file mode 100644 index 0000000000..88fd0763cb --- /dev/null +++ b/kubernetes/client/models/v1_subject_access_review_spec.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SubjectAccessReviewSpec(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, non_resource_attributes=None, resource_attributes=None, user=None): + """ + V1SubjectAccessReviewSpec - 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]', + 'non_resource_attributes': 'V1NonResourceAttributes', + 'resource_attributes': 'V1ResourceAttributes', + 'user': 'str' + } + + self.attribute_map = { + 'extra': 'extra', + 'groups': 'groups', + 'non_resource_attributes': 'nonResourceAttributes', + 'resource_attributes': 'resourceAttributes', + 'user': 'user' + } + + self._extra = extra + self._groups = groups + self._non_resource_attributes = non_resource_attributes + self._resource_attributes = resource_attributes + self._user = user + + @property + def extra(self): + """ + Gets the extra of this V1SubjectAccessReviewSpec. + 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 V1SubjectAccessReviewSpec. + :rtype: dict(str, list[str]) + """ + return self._extra + + @extra.setter + def extra(self, extra): + """ + Sets the extra of this V1SubjectAccessReviewSpec. + 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 V1SubjectAccessReviewSpec. + :type: dict(str, list[str]) + """ + + self._extra = extra + + @property + def groups(self): + """ + Gets the groups of this V1SubjectAccessReviewSpec. + Groups is the groups you're testing for. + + :return: The groups of this V1SubjectAccessReviewSpec. + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this V1SubjectAccessReviewSpec. + Groups is the groups you're testing for. + + :param groups: The groups of this V1SubjectAccessReviewSpec. + :type: list[str] + """ + + self._groups = groups + + @property + def non_resource_attributes(self): + """ + Gets the non_resource_attributes of this V1SubjectAccessReviewSpec. + NonResourceAttributes describes information for a non-resource access request + + :return: The non_resource_attributes of this V1SubjectAccessReviewSpec. + :rtype: V1NonResourceAttributes + """ + return self._non_resource_attributes + + @non_resource_attributes.setter + def non_resource_attributes(self, non_resource_attributes): + """ + Sets the non_resource_attributes of this V1SubjectAccessReviewSpec. + NonResourceAttributes describes information for a non-resource access request + + :param non_resource_attributes: The non_resource_attributes of this V1SubjectAccessReviewSpec. + :type: V1NonResourceAttributes + """ + + self._non_resource_attributes = non_resource_attributes + + @property + def resource_attributes(self): + """ + Gets the resource_attributes of this V1SubjectAccessReviewSpec. + ResourceAuthorizationAttributes describes information for a resource access request + + :return: The resource_attributes of this V1SubjectAccessReviewSpec. + :rtype: V1ResourceAttributes + """ + return self._resource_attributes + + @resource_attributes.setter + def resource_attributes(self, resource_attributes): + """ + Sets the resource_attributes of this V1SubjectAccessReviewSpec. + ResourceAuthorizationAttributes describes information for a resource access request + + :param resource_attributes: The resource_attributes of this V1SubjectAccessReviewSpec. + :type: V1ResourceAttributes + """ + + self._resource_attributes = resource_attributes + + @property + def user(self): + """ + Gets the user of this V1SubjectAccessReviewSpec. + User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups + + :return: The user of this V1SubjectAccessReviewSpec. + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this V1SubjectAccessReviewSpec. + User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups + + :param user: The user of this V1SubjectAccessReviewSpec. + :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/kubernetes/client/models/v1_subject_access_review_status.py b/kubernetes/client/models/v1_subject_access_review_status.py new file mode 100644 index 0000000000..f4f657d7be --- /dev/null +++ b/kubernetes/client/models/v1_subject_access_review_status.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1SubjectAccessReviewStatus(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): + """ + V1SubjectAccessReviewStatus - 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 V1SubjectAccessReviewStatus. + Allowed is required. True if the action would be allowed, false otherwise. + + :return: The allowed of this V1SubjectAccessReviewStatus. + :rtype: bool + """ + return self._allowed + + @allowed.setter + def allowed(self, allowed): + """ + Sets the allowed of this V1SubjectAccessReviewStatus. + Allowed is required. True if the action would be allowed, false otherwise. + + :param allowed: The allowed of this V1SubjectAccessReviewStatus. + :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 V1SubjectAccessReviewStatus. + 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 V1SubjectAccessReviewStatus. + :rtype: str + """ + return self._evaluation_error + + @evaluation_error.setter + def evaluation_error(self, evaluation_error): + """ + Sets the evaluation_error of this V1SubjectAccessReviewStatus. + 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 V1SubjectAccessReviewStatus. + :type: str + """ + + self._evaluation_error = evaluation_error + + @property + def reason(self): + """ + Gets the reason of this V1SubjectAccessReviewStatus. + Reason is optional. It indicates why a request was allowed or denied. + + :return: The reason of this V1SubjectAccessReviewStatus. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1SubjectAccessReviewStatus. + Reason is optional. It indicates why a request was allowed or denied. + + :param reason: The reason of this V1SubjectAccessReviewStatus. + :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/kubernetes/client/models/v1_taint.py b/kubernetes/client/models/v1_taint.py new file mode 100644 index 0000000000..8c6cfb51bb --- /dev/null +++ b/kubernetes/client/models/v1_taint.py @@ -0,0 +1,196 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Taint(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, effect=None, key=None, time_added=None, value=None): + """ + V1Taint - 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 = { + 'effect': 'str', + 'key': 'str', + 'time_added': 'V1Time', + 'value': 'str' + } + + self.attribute_map = { + 'effect': 'effect', + 'key': 'key', + 'time_added': 'timeAdded', + 'value': 'value' + } + + self._effect = effect + self._key = key + self._time_added = time_added + self._value = value + + @property + def effect(self): + """ + Gets the effect of this V1Taint. + Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + + :return: The effect of this V1Taint. + :rtype: str + """ + return self._effect + + @effect.setter + def effect(self, effect): + """ + Sets the effect of this V1Taint. + Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + + :param effect: The effect of this V1Taint. + :type: str + """ + if effect is None: + raise ValueError("Invalid value for `effect`, must not be `None`") + + self._effect = effect + + @property + def key(self): + """ + Gets the key of this V1Taint. + Required. The taint key to be applied to a node. + + :return: The key of this V1Taint. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this V1Taint. + Required. The taint key to be applied to a node. + + :param key: The key of this V1Taint. + :type: str + """ + if key is None: + raise ValueError("Invalid value for `key`, must not be `None`") + + self._key = key + + @property + def time_added(self): + """ + Gets the time_added of this V1Taint. + TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. + + :return: The time_added of this V1Taint. + :rtype: V1Time + """ + return self._time_added + + @time_added.setter + def time_added(self, time_added): + """ + Sets the time_added of this V1Taint. + TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. + + :param time_added: The time_added of this V1Taint. + :type: V1Time + """ + + self._time_added = time_added + + @property + def value(self): + """ + Gets the value of this V1Taint. + Required. The taint value corresponding to the taint key. + + :return: The value of this V1Taint. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this V1Taint. + Required. The taint value corresponding to the taint key. + + :param value: The value of this V1Taint. + :type: str + """ + + 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/kubernetes/client/models/v1_tcp_socket_action.py b/kubernetes/client/models/v1_tcp_socket_action.py index f5bfcd46c6..db726e5a37 100644 --- a/kubernetes/client/models/v1_tcp_socket_action.py +++ b/kubernetes/client/models/v1_tcp_socket_action.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/unversioned_time.py b/kubernetes/client/models/v1_time.py similarity index 94% rename from kubernetes/client/models/unversioned_time.py rename to kubernetes/client/models/v1_time.py index 1156f583cc..699feb96b9 100644 --- a/kubernetes/client/models/unversioned_time.py +++ b/kubernetes/client/models/v1_time.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class UnversionedTime(object): +class V1Time(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 + V1Time - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. diff --git a/kubernetes/client/models/v1_token_review.py b/kubernetes/client/models/v1_token_review.py new file mode 100644 index 0000000000..4ad6c68032 --- /dev/null +++ b/kubernetes/client/models/v1_token_review.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TokenReview(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, metadata=None, spec=None, status=None): + """ + V1TokenReview - 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', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1TokenReviewSpec', + 'status': 'V1TokenReviewStatus' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + self._status = status + + @property + def api_version(self): + """ + Gets the api_version of this V1TokenReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1TokenReview. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1TokenReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1TokenReview. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1TokenReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1TokenReview. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1TokenReview. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1TokenReview. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1TokenReview. + + :return: The metadata of this V1TokenReview. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1TokenReview. + + :param metadata: The metadata of this V1TokenReview. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1TokenReview. + Spec holds information about the request being evaluated + + :return: The spec of this V1TokenReview. + :rtype: V1TokenReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1TokenReview. + Spec holds information about the request being evaluated + + :param spec: The spec of this V1TokenReview. + :type: V1TokenReviewSpec + """ + 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 V1TokenReview. + Status is filled in by the server and indicates whether the request can be authenticated. + + :return: The status of this V1TokenReview. + :rtype: V1TokenReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1TokenReview. + Status is filled in by the server and indicates whether the request can be authenticated. + + :param status: The status of this V1TokenReview. + :type: V1TokenReviewStatus + """ + + 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/kubernetes/client/models/v1_token_review_spec.py b/kubernetes/client/models/v1_token_review_spec.py new file mode 100644 index 0000000000..eb879cac66 --- /dev/null +++ b/kubernetes/client/models/v1_token_review_spec.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TokenReviewSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, token=None): + """ + V1TokenReviewSpec - 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 V1TokenReviewSpec. + Token is the opaque bearer token. + + :return: The token of this V1TokenReviewSpec. + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """ + Sets the token of this V1TokenReviewSpec. + Token is the opaque bearer token. + + :param token: The token of this V1TokenReviewSpec. + :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/kubernetes/client/models/v1_token_review_status.py b/kubernetes/client/models/v1_token_review_status.py new file mode 100644 index 0000000000..0184a05625 --- /dev/null +++ b/kubernetes/client/models/v1_token_review_status.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1TokenReviewStatus(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): + """ + V1TokenReviewStatus - 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': 'V1UserInfo' + } + + 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 V1TokenReviewStatus. + Authenticated indicates that the token was associated with a known user. + + :return: The authenticated of this V1TokenReviewStatus. + :rtype: bool + """ + return self._authenticated + + @authenticated.setter + def authenticated(self, authenticated): + """ + Sets the authenticated of this V1TokenReviewStatus. + Authenticated indicates that the token was associated with a known user. + + :param authenticated: The authenticated of this V1TokenReviewStatus. + :type: bool + """ + + self._authenticated = authenticated + + @property + def error(self): + """ + Gets the error of this V1TokenReviewStatus. + Error indicates that the token couldn't be checked + + :return: The error of this V1TokenReviewStatus. + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this V1TokenReviewStatus. + Error indicates that the token couldn't be checked + + :param error: The error of this V1TokenReviewStatus. + :type: str + """ + + self._error = error + + @property + def user(self): + """ + Gets the user of this V1TokenReviewStatus. + User is the UserInfo associated with the provided token. + + :return: The user of this V1TokenReviewStatus. + :rtype: V1UserInfo + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this V1TokenReviewStatus. + User is the UserInfo associated with the provided token. + + :param user: The user of this V1TokenReviewStatus. + :type: V1UserInfo + """ + + 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/kubernetes/client/models/v1_toleration.py b/kubernetes/client/models/v1_toleration.py new file mode 100644 index 0000000000..eef791f6e4 --- /dev/null +++ b/kubernetes/client/models/v1_toleration.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1Toleration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, effect=None, key=None, operator=None, toleration_seconds=None, value=None): + """ + V1Toleration - 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 = { + 'effect': 'str', + 'key': 'str', + 'operator': 'str', + 'toleration_seconds': 'int', + 'value': 'str' + } + + self.attribute_map = { + 'effect': 'effect', + 'key': 'key', + 'operator': 'operator', + 'toleration_seconds': 'tolerationSeconds', + 'value': 'value' + } + + self._effect = effect + self._key = key + self._operator = operator + self._toleration_seconds = toleration_seconds + self._value = value + + @property + def effect(self): + """ + Gets the effect of this V1Toleration. + Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + + :return: The effect of this V1Toleration. + :rtype: str + """ + return self._effect + + @effect.setter + def effect(self, effect): + """ + Sets the effect of this V1Toleration. + Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + + :param effect: The effect of this V1Toleration. + :type: str + """ + + self._effect = effect + + @property + def key(self): + """ + Gets the key of this V1Toleration. + Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + + :return: The key of this V1Toleration. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this V1Toleration. + Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + + :param key: The key of this V1Toleration. + :type: str + """ + + self._key = key + + @property + def operator(self): + """ + Gets the operator of this V1Toleration. + Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + + :return: The operator of this V1Toleration. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """ + Sets the operator of this V1Toleration. + Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + + :param operator: The operator of this V1Toleration. + :type: str + """ + + self._operator = operator + + @property + def toleration_seconds(self): + """ + Gets the toleration_seconds of this V1Toleration. + TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + + :return: The toleration_seconds of this V1Toleration. + :rtype: int + """ + return self._toleration_seconds + + @toleration_seconds.setter + def toleration_seconds(self, toleration_seconds): + """ + Sets the toleration_seconds of this V1Toleration. + TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + + :param toleration_seconds: The toleration_seconds of this V1Toleration. + :type: int + """ + + self._toleration_seconds = toleration_seconds + + @property + def value(self): + """ + Gets the value of this V1Toleration. + Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + :return: The value of this V1Toleration. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this V1Toleration. + Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + :param value: The value of this V1Toleration. + :type: str + """ + + 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/kubernetes/client/models/v1alpha1_certificate_signing_request_spec.py b/kubernetes/client/models/v1_user_info.py similarity index 60% rename from kubernetes/client/models/v1alpha1_certificate_signing_request_spec.py rename to kubernetes/client/models/v1_user_info.py index 8a1e919fc9..8d62dfd7ae 100644 --- a/kubernetes/client/models/v1alpha1_certificate_signing_request_spec.py +++ b/kubernetes/client/models/v1_user_info.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1alpha1CertificateSigningRequestSpec(object): +class V1UserInfo(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): + def __init__(self, extra=None, groups=None, uid=None, username=None): """ - V1alpha1CertificateSigningRequestSpec - a model defined in Swagger + V1UserInfo - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -31,76 +31,77 @@ def __init__(self, groups=None, request=None, uid=None, username=None): and the value is json key in definition. """ self.swagger_types = { + 'extra': 'dict(str, list[str])', 'groups': 'list[str]', - 'request': 'str', 'uid': 'str', 'username': 'str' } self.attribute_map = { + 'extra': 'extra', 'groups': 'groups', - 'request': 'request', 'uid': 'uid', 'username': 'username' } + self._extra = extra self._groups = groups - self._request = request self._uid = uid self._username = username @property - def groups(self): + def extra(self): """ - Gets the groups of this V1alpha1CertificateSigningRequestSpec. + Gets the extra of this V1UserInfo. + Any additional information provided by the authenticator. - :return: The groups of this V1alpha1CertificateSigningRequestSpec. - :rtype: list[str] + :return: The extra of this V1UserInfo. + :rtype: dict(str, list[str]) """ - return self._groups + return self._extra - @groups.setter - def groups(self, groups): + @extra.setter + def extra(self, extra): """ - Sets the groups of this V1alpha1CertificateSigningRequestSpec. + Sets the extra of this V1UserInfo. + Any additional information provided by the authenticator. - :param groups: The groups of this V1alpha1CertificateSigningRequestSpec. - :type: list[str] + :param extra: The extra of this V1UserInfo. + :type: dict(str, list[str]) """ - self._groups = groups + self._extra = extra @property - def request(self): + def groups(self): """ - Gets the request of this V1alpha1CertificateSigningRequestSpec. - Base64-encoded PKCS#10 CSR data + Gets the groups of this V1UserInfo. + The names of groups this user is a part of. - :return: The request of this V1alpha1CertificateSigningRequestSpec. - :rtype: str + :return: The groups of this V1UserInfo. + :rtype: list[str] """ - return self._request + return self._groups - @request.setter - def request(self, request): + @groups.setter + def groups(self, groups): """ - Sets the request of this V1alpha1CertificateSigningRequestSpec. - Base64-encoded PKCS#10 CSR data + Sets the groups of this V1UserInfo. + The names of groups this user is a part of. - :param request: The request of this V1alpha1CertificateSigningRequestSpec. - :type: str + :param groups: The groups of this V1UserInfo. + :type: list[str] """ - if request is None: - raise ValueError("Invalid value for `request`, must not be `None`") - self._request = request + self._groups = groups @property def uid(self): """ - Gets the uid of this V1alpha1CertificateSigningRequestSpec. + Gets the uid of this V1UserInfo. + 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 V1alpha1CertificateSigningRequestSpec. + :return: The uid of this V1UserInfo. :rtype: str """ return self._uid @@ -108,9 +109,10 @@ def uid(self): @uid.setter def uid(self, uid): """ - Sets the uid of this V1alpha1CertificateSigningRequestSpec. + Sets the uid of this V1UserInfo. + 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 V1alpha1CertificateSigningRequestSpec. + :param uid: The uid of this V1UserInfo. :type: str """ @@ -119,10 +121,10 @@ def uid(self, uid): @property def username(self): """ - Gets the username of this V1alpha1CertificateSigningRequestSpec. - Information about the requesting user (if relevant) See user.Info interface for details + Gets the username of this V1UserInfo. + The name that uniquely identifies this user among all active users. - :return: The username of this V1alpha1CertificateSigningRequestSpec. + :return: The username of this V1UserInfo. :rtype: str """ return self._username @@ -130,10 +132,10 @@ def username(self): @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 + Sets the username of this V1UserInfo. + The name that uniquely identifies this user among all active users. - :param username: The username of this V1alpha1CertificateSigningRequestSpec. + :param username: The username of this V1UserInfo. :type: str """ diff --git a/kubernetes/client/models/v1_volume.py b/kubernetes/client/models/v1_volume.py index 5476e3b82c..55a91e65f3 100644 --- a/kubernetes/client/models/v1_volume.py +++ b/kubernetes/client/models/v1_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V1Volume(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=None, cephfs=None, cinder=None, config_map=None, downward_api=None, empty_dir=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, git_repo=None, glusterfs=None, host_path=None, iscsi=None, name=None, nfs=None, persistent_volume_claim=None, photon_persistent_disk=None, quobyte=None, rbd=None, secret=None, vsphere_volume=None): + def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=None, cephfs=None, cinder=None, config_map=None, downward_api=None, empty_dir=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, git_repo=None, glusterfs=None, host_path=None, iscsi=None, name=None, nfs=None, persistent_volume_claim=None, photon_persistent_disk=None, portworx_volume=None, projected=None, quobyte=None, rbd=None, scale_io=None, secret=None, vsphere_volume=None): """ V1Volume - a model defined in Swagger @@ -51,8 +51,11 @@ def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=Non 'nfs': 'V1NFSVolumeSource', 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', 'photon_persistent_disk': 'V1PhotonPersistentDiskVolumeSource', + 'portworx_volume': 'V1PortworxVolumeSource', + 'projected': 'V1ProjectedVolumeSource', 'quobyte': 'V1QuobyteVolumeSource', 'rbd': 'V1RBDVolumeSource', + 'scale_io': 'V1ScaleIOVolumeSource', 'secret': 'V1SecretVolumeSource', 'vsphere_volume': 'V1VsphereVirtualDiskVolumeSource' } @@ -78,8 +81,11 @@ def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=Non 'nfs': 'nfs', 'persistent_volume_claim': 'persistentVolumeClaim', 'photon_persistent_disk': 'photonPersistentDisk', + 'portworx_volume': 'portworxVolume', + 'projected': 'projected', 'quobyte': 'quobyte', 'rbd': 'rbd', + 'scale_io': 'scaleIO', 'secret': 'secret', 'vsphere_volume': 'vsphereVolume' } @@ -104,8 +110,11 @@ def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=Non self._nfs = nfs self._persistent_volume_claim = persistent_volume_claim self._photon_persistent_disk = photon_persistent_disk + self._portworx_volume = portworx_volume + self._projected = projected self._quobyte = quobyte self._rbd = rbd + self._scale_io = scale_io self._secret = secret self._vsphere_volume = vsphere_volume @@ -571,6 +580,52 @@ def photon_persistent_disk(self, photon_persistent_disk): self._photon_persistent_disk = photon_persistent_disk + @property + def portworx_volume(self): + """ + Gets the portworx_volume of this V1Volume. + PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + + :return: The portworx_volume of this V1Volume. + :rtype: V1PortworxVolumeSource + """ + return self._portworx_volume + + @portworx_volume.setter + def portworx_volume(self, portworx_volume): + """ + Sets the portworx_volume of this V1Volume. + PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + + :param portworx_volume: The portworx_volume of this V1Volume. + :type: V1PortworxVolumeSource + """ + + self._portworx_volume = portworx_volume + + @property + def projected(self): + """ + Gets the projected of this V1Volume. + Items for all in one resources secrets, configmaps, and downward API + + :return: The projected of this V1Volume. + :rtype: V1ProjectedVolumeSource + """ + return self._projected + + @projected.setter + def projected(self, projected): + """ + Sets the projected of this V1Volume. + Items for all in one resources secrets, configmaps, and downward API + + :param projected: The projected of this V1Volume. + :type: V1ProjectedVolumeSource + """ + + self._projected = projected + @property def quobyte(self): """ @@ -617,6 +672,29 @@ def rbd(self, rbd): self._rbd = rbd + @property + def scale_io(self): + """ + Gets the scale_io of this V1Volume. + ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + + :return: The scale_io of this V1Volume. + :rtype: V1ScaleIOVolumeSource + """ + return self._scale_io + + @scale_io.setter + def scale_io(self, scale_io): + """ + Sets the scale_io of this V1Volume. + ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + + :param scale_io: The scale_io of this V1Volume. + :type: V1ScaleIOVolumeSource + """ + + self._scale_io = scale_io + @property def secret(self): """ diff --git a/kubernetes/client/models/v1_volume_mount.py b/kubernetes/client/models/v1_volume_mount.py index 5a8ac7ee5a..2e67407880 100644 --- a/kubernetes/client/models/v1_volume_mount.py +++ b/kubernetes/client/models/v1_volume_mount.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1_volume_projection.py b/kubernetes/client/models/v1_volume_projection.py new file mode 100644 index 0000000000..bee7ccdcbe --- /dev/null +++ b/kubernetes/client/models/v1_volume_projection.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1VolumeProjection(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, config_map=None, downward_api=None, secret=None): + """ + V1VolumeProjection - 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': 'V1ConfigMapProjection', + 'downward_api': 'V1DownwardAPIProjection', + 'secret': 'V1SecretProjection' + } + + self.attribute_map = { + 'config_map': 'configMap', + 'downward_api': 'downwardAPI', + 'secret': 'secret' + } + + self._config_map = config_map + self._downward_api = downward_api + self._secret = secret + + @property + def config_map(self): + """ + Gets the config_map of this V1VolumeProjection. + information about the configMap data to project + + :return: The config_map of this V1VolumeProjection. + :rtype: V1ConfigMapProjection + """ + return self._config_map + + @config_map.setter + def config_map(self, config_map): + """ + Sets the config_map of this V1VolumeProjection. + information about the configMap data to project + + :param config_map: The config_map of this V1VolumeProjection. + :type: V1ConfigMapProjection + """ + + self._config_map = config_map + + @property + def downward_api(self): + """ + Gets the downward_api of this V1VolumeProjection. + information about the downwardAPI data to project + + :return: The downward_api of this V1VolumeProjection. + :rtype: V1DownwardAPIProjection + """ + return self._downward_api + + @downward_api.setter + def downward_api(self, downward_api): + """ + Sets the downward_api of this V1VolumeProjection. + information about the downwardAPI data to project + + :param downward_api: The downward_api of this V1VolumeProjection. + :type: V1DownwardAPIProjection + """ + + self._downward_api = downward_api + + @property + def secret(self): + """ + Gets the secret of this V1VolumeProjection. + information about the secret data to project + + :return: The secret of this V1VolumeProjection. + :rtype: V1SecretProjection + """ + return self._secret + + @secret.setter + def secret(self, secret): + """ + Sets the secret of this V1VolumeProjection. + information about the secret data to project + + :param secret: The secret of this V1VolumeProjection. + :type: V1SecretProjection + """ + + self._secret = secret + + 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/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py b/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py index 6624552431..711abe262c 100644 --- a/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py +++ b/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/versioned_event.py b/kubernetes/client/models/v1_watch_event.py similarity index 81% rename from kubernetes/client/models/versioned_event.py rename to kubernetes/client/models/v1_watch_event.py index 7f40fa3320..ff322bbad1 100644 --- a/kubernetes/client/models/versioned_event.py +++ b/kubernetes/client/models/v1_watch_event.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class VersionedEvent(object): +class V1WatchEvent(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 + V1WatchEvent - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -46,10 +46,10 @@ def __init__(self, object=None, type=None): @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. + Gets the object of this V1WatchEvent. + 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: *Status is recommended; other types may make sense depending on context. - :return: The object of this VersionedEvent. + :return: The object of this V1WatchEvent. :rtype: RuntimeRawExtension """ return self._object @@ -57,10 +57,10 @@ def object(self): @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. + Sets the object of this V1WatchEvent. + 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: *Status is recommended; other types may make sense depending on context. - :param object: The object of this VersionedEvent. + :param object: The object of this V1WatchEvent. :type: RuntimeRawExtension """ if object is None: @@ -71,9 +71,9 @@ def object(self, object): @property def type(self): """ - Gets the type of this VersionedEvent. + Gets the type of this V1WatchEvent. - :return: The type of this VersionedEvent. + :return: The type of this V1WatchEvent. :rtype: str """ return self._type @@ -81,9 +81,9 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this VersionedEvent. + Sets the type of this V1WatchEvent. - :param type: The type of this VersionedEvent. + :param type: The type of this V1WatchEvent. :type: str """ if type is None: diff --git a/kubernetes/client/models/v1_weighted_pod_affinity_term.py b/kubernetes/client/models/v1_weighted_pod_affinity_term.py new file mode 100644 index 0000000000..3bf94aea05 --- /dev/null +++ b/kubernetes/client/models/v1_weighted_pod_affinity_term.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1WeightedPodAffinityTerm(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, pod_affinity_term=None, weight=None): + """ + V1WeightedPodAffinityTerm - 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 = { + 'pod_affinity_term': 'V1PodAffinityTerm', + 'weight': 'int' + } + + self.attribute_map = { + 'pod_affinity_term': 'podAffinityTerm', + 'weight': 'weight' + } + + self._pod_affinity_term = pod_affinity_term + self._weight = weight + + @property + def pod_affinity_term(self): + """ + Gets the pod_affinity_term of this V1WeightedPodAffinityTerm. + Required. A pod affinity term, associated with the corresponding weight. + + :return: The pod_affinity_term of this V1WeightedPodAffinityTerm. + :rtype: V1PodAffinityTerm + """ + return self._pod_affinity_term + + @pod_affinity_term.setter + def pod_affinity_term(self, pod_affinity_term): + """ + Sets the pod_affinity_term of this V1WeightedPodAffinityTerm. + Required. A pod affinity term, associated with the corresponding weight. + + :param pod_affinity_term: The pod_affinity_term of this V1WeightedPodAffinityTerm. + :type: V1PodAffinityTerm + """ + if pod_affinity_term is None: + raise ValueError("Invalid value for `pod_affinity_term`, must not be `None`") + + self._pod_affinity_term = pod_affinity_term + + @property + def weight(self): + """ + Gets the weight of this V1WeightedPodAffinityTerm. + weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + :return: The weight of this V1WeightedPodAffinityTerm. + :rtype: int + """ + return self._weight + + @weight.setter + def weight(self, weight): + """ + Sets the weight of this V1WeightedPodAffinityTerm. + weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + :param weight: The weight of this V1WeightedPodAffinityTerm. + :type: int + """ + if weight is None: + raise ValueError("Invalid value for `weight`, must not be `None`") + + self._weight = weight + + 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/kubernetes/client/models/v1alpha1_cluster_role.py b/kubernetes/client/models/v1alpha1_cluster_role.py index 0e1dcd87ff..e9c53d972e 100644 --- a/kubernetes/client/models/v1alpha1_cluster_role.py +++ b/kubernetes/client/models/v1alpha1_cluster_role.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1alpha1_cluster_role_binding.py b/kubernetes/client/models/v1alpha1_cluster_role_binding.py index 4e3f346adb..5a88323c7e 100644 --- a/kubernetes/client/models/v1alpha1_cluster_role_binding.py +++ b/kubernetes/client/models/v1alpha1_cluster_role_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py b/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py index e7fdbb9381..9828d45eeb 100644 --- a/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py +++ b/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1alpha1ClusterRoleBinding]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard object's metadata. :return: The metadata of this V1alpha1ClusterRoleBindingList. - :rtype: UnversionedListMeta + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard object's metadata. :param metadata: The metadata of this V1alpha1ClusterRoleBindingList. - :type: UnversionedListMeta + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1alpha1_cluster_role_list.py b/kubernetes/client/models/v1alpha1_cluster_role_list.py index 4a46c991af..7e6fa32e8f 100644 --- a/kubernetes/client/models/v1alpha1_cluster_role_list.py +++ b/kubernetes/client/models/v1alpha1_cluster_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1alpha1ClusterRole]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard object's metadata. :return: The metadata of this V1alpha1ClusterRoleList. - :rtype: UnversionedListMeta + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard object's metadata. :param metadata: The metadata of this V1alpha1ClusterRoleList. - :type: UnversionedListMeta + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1alpha1_pod_preset.py b/kubernetes/client/models/v1alpha1_pod_preset.py new file mode 100644 index 0000000000..23a7bbced9 --- /dev/null +++ b/kubernetes/client/models/v1alpha1_pod_preset.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1PodPreset(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, metadata=None, spec=None): + """ + V1alpha1PodPreset - 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', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1alpha1PodPresetSpec' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1PodPreset. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1alpha1PodPreset. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1PodPreset. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1PodPreset. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1alpha1PodPreset. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1PodPreset. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1PodPreset. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1PodPreset. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1PodPreset. + + :return: The metadata of this V1alpha1PodPreset. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1PodPreset. + + :param metadata: The metadata of this V1alpha1PodPreset. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1alpha1PodPreset. + + :return: The spec of this V1alpha1PodPreset. + :rtype: V1alpha1PodPresetSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1alpha1PodPreset. + + :param spec: The spec of this V1alpha1PodPreset. + :type: V1alpha1PodPresetSpec + """ + + 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/kubernetes/client/models/v1alpha1_pod_preset_list.py b/kubernetes/client/models/v1alpha1_pod_preset_list.py new file mode 100644 index 0000000000..260a303b02 --- /dev/null +++ b/kubernetes/client/models/v1alpha1_pod_preset_list.py @@ -0,0 +1,194 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1PodPresetList(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, items=None, kind=None, metadata=None): + """ + V1alpha1PodPresetList - 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', + 'items': 'list[V1alpha1PodPreset]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1alpha1PodPresetList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1alpha1PodPresetList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1alpha1PodPresetList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1alpha1PodPresetList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1alpha1PodPresetList. + Items is a list of schema objects. + + :return: The items of this V1alpha1PodPresetList. + :rtype: list[V1alpha1PodPreset] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1alpha1PodPresetList. + Items is a list of schema objects. + + :param items: The items of this V1alpha1PodPresetList. + :type: list[V1alpha1PodPreset] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1alpha1PodPresetList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1alpha1PodPresetList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1alpha1PodPresetList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1alpha1PodPresetList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1alpha1PodPresetList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1alpha1PodPresetList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1alpha1PodPresetList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1alpha1PodPresetList. + :type: V1ListMeta + """ + + 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/kubernetes/client/models/v1alpha1_pod_preset_spec.py b/kubernetes/client/models/v1alpha1_pod_preset_spec.py new file mode 100644 index 0000000000..8ebdc3eee0 --- /dev/null +++ b/kubernetes/client/models/v1alpha1_pod_preset_spec.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1alpha1PodPresetSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, env=None, env_from=None, selector=None, volume_mounts=None, volumes=None): + """ + V1alpha1PodPresetSpec - 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 = { + 'env': 'list[V1EnvVar]', + 'env_from': 'list[V1EnvFromSource]', + 'selector': 'V1LabelSelector', + 'volume_mounts': 'list[V1VolumeMount]', + 'volumes': 'list[V1Volume]' + } + + self.attribute_map = { + 'env': 'env', + 'env_from': 'envFrom', + 'selector': 'selector', + 'volume_mounts': 'volumeMounts', + 'volumes': 'volumes' + } + + self._env = env + self._env_from = env_from + self._selector = selector + self._volume_mounts = volume_mounts + self._volumes = volumes + + @property + def env(self): + """ + Gets the env of this V1alpha1PodPresetSpec. + Env defines the collection of EnvVar to inject into containers. + + :return: The env of this V1alpha1PodPresetSpec. + :rtype: list[V1EnvVar] + """ + return self._env + + @env.setter + def env(self, env): + """ + Sets the env of this V1alpha1PodPresetSpec. + Env defines the collection of EnvVar to inject into containers. + + :param env: The env of this V1alpha1PodPresetSpec. + :type: list[V1EnvVar] + """ + + self._env = env + + @property + def env_from(self): + """ + Gets the env_from of this V1alpha1PodPresetSpec. + EnvFrom defines the collection of EnvFromSource to inject into containers. + + :return: The env_from of this V1alpha1PodPresetSpec. + :rtype: list[V1EnvFromSource] + """ + return self._env_from + + @env_from.setter + def env_from(self, env_from): + """ + Sets the env_from of this V1alpha1PodPresetSpec. + EnvFrom defines the collection of EnvFromSource to inject into containers. + + :param env_from: The env_from of this V1alpha1PodPresetSpec. + :type: list[V1EnvFromSource] + """ + + self._env_from = env_from + + @property + def selector(self): + """ + Gets the selector of this V1alpha1PodPresetSpec. + Selector is a label query over a set of resources, in this case pods. Required. + + :return: The selector of this V1alpha1PodPresetSpec. + :rtype: V1LabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1alpha1PodPresetSpec. + Selector is a label query over a set of resources, in this case pods. Required. + + :param selector: The selector of this V1alpha1PodPresetSpec. + :type: V1LabelSelector + """ + + self._selector = selector + + @property + def volume_mounts(self): + """ + Gets the volume_mounts of this V1alpha1PodPresetSpec. + VolumeMounts defines the collection of VolumeMount to inject into containers. + + :return: The volume_mounts of this V1alpha1PodPresetSpec. + :rtype: list[V1VolumeMount] + """ + return self._volume_mounts + + @volume_mounts.setter + def volume_mounts(self, volume_mounts): + """ + Sets the volume_mounts of this V1alpha1PodPresetSpec. + VolumeMounts defines the collection of VolumeMount to inject into containers. + + :param volume_mounts: The volume_mounts of this V1alpha1PodPresetSpec. + :type: list[V1VolumeMount] + """ + + self._volume_mounts = volume_mounts + + @property + def volumes(self): + """ + Gets the volumes of this V1alpha1PodPresetSpec. + Volumes defines the collection of Volume to inject into the pod. + + :return: The volumes of this V1alpha1PodPresetSpec. + :rtype: list[V1Volume] + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """ + Sets the volumes of this V1alpha1PodPresetSpec. + Volumes defines the collection of Volume to inject into the pod. + + :param volumes: The volumes of this V1alpha1PodPresetSpec. + :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/kubernetes/client/models/v1alpha1_policy_rule.py b/kubernetes/client/models/v1alpha1_policy_rule.py index 218809b9bf..aa97afc03e 100644 --- a/kubernetes/client/models/v1alpha1_policy_rule.py +++ b/kubernetes/client/models/v1alpha1_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ 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): + def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): """ V1alpha1PolicyRule - a model defined in Swagger @@ -32,7 +32,6 @@ def __init__(self, api_groups=None, attribute_restrictions=None, non_resource_ur """ self.swagger_types = { 'api_groups': 'list[str]', - 'attribute_restrictions': 'RuntimeRawExtension', 'non_resource_ur_ls': 'list[str]', 'resource_names': 'list[str]', 'resources': 'list[str]', @@ -41,7 +40,6 @@ def __init__(self, api_groups=None, attribute_restrictions=None, non_resource_ur self.attribute_map = { 'api_groups': 'apiGroups', - 'attribute_restrictions': 'attributeRestrictions', 'non_resource_ur_ls': 'nonResourceURLs', 'resource_names': 'resourceNames', 'resources': 'resources', @@ -49,7 +47,6 @@ def __init__(self, api_groups=None, attribute_restrictions=None, non_resource_ur } 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 @@ -78,29 +75,6 @@ def api_groups(self, api_groups): 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): """ diff --git a/kubernetes/client/models/v1alpha1_role.py b/kubernetes/client/models/v1alpha1_role.py index c9a7aaadbb..5942a8a505 100644 --- a/kubernetes/client/models/v1alpha1_role.py +++ b/kubernetes/client/models/v1alpha1_role.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1alpha1_role_binding.py b/kubernetes/client/models/v1alpha1_role_binding.py index a1c644160f..2cb16ae3bc 100644 --- a/kubernetes/client/models/v1alpha1_role_binding.py +++ b/kubernetes/client/models/v1alpha1_role_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1alpha1_role_binding_list.py b/kubernetes/client/models/v1alpha1_role_binding_list.py index e2011fc733..c0ae66aa8e 100644 --- a/kubernetes/client/models/v1alpha1_role_binding_list.py +++ b/kubernetes/client/models/v1alpha1_role_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1alpha1RoleBinding]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard object's metadata. :return: The metadata of this V1alpha1RoleBindingList. - :rtype: UnversionedListMeta + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard object's metadata. :param metadata: The metadata of this V1alpha1RoleBindingList. - :type: UnversionedListMeta + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1alpha1_role_list.py b/kubernetes/client/models/v1alpha1_role_list.py index 4272c64988..3bce53e977 100644 --- a/kubernetes/client/models/v1alpha1_role_list.py +++ b/kubernetes/client/models/v1alpha1_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1alpha1Role]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard object's metadata. :return: The metadata of this V1alpha1RoleList. - :rtype: UnversionedListMeta + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard object's metadata. :param metadata: The metadata of this V1alpha1RoleList. - :type: UnversionedListMeta + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1alpha1_role_ref.py b/kubernetes/client/models/v1alpha1_role_ref.py index 2a05797883..3926118430 100644 --- a/kubernetes/client/models/v1alpha1_role_ref.py +++ b/kubernetes/client/models/v1alpha1_role_ref.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1alpha1_subject.py b/kubernetes/client/models/v1alpha1_subject.py index 214e295294..b542776761 100644 --- a/kubernetes/client/models/v1alpha1_subject.py +++ b/kubernetes/client/models/v1alpha1_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -53,7 +53,7 @@ def __init__(self, api_version=None, kind=None, name=None, namespace=None): def api_version(self): """ Gets the api_version of this V1alpha1Subject. - APIVersion holds the API group and version of the referenced object. + APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. :return: The api_version of this V1alpha1Subject. :rtype: str @@ -64,7 +64,7 @@ def api_version(self): def api_version(self, api_version): """ Sets the api_version of this V1alpha1Subject. - APIVersion holds the API group and version of the referenced object. + APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. :param api_version: The api_version of this V1alpha1Subject. :type: str diff --git a/kubernetes/client/models/v1beta1_api_version.py b/kubernetes/client/models/v1beta1_api_version.py index 2f99a0065c..2e488a75d5 100644 --- a/kubernetes/client/models/v1beta1_api_version.py +++ b/kubernetes/client/models/v1beta1_api_version.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1alpha1_certificate_signing_request.py b/kubernetes/client/models/v1beta1_certificate_signing_request.py similarity index 73% rename from kubernetes/client/models/v1alpha1_certificate_signing_request.py rename to kubernetes/client/models/v1beta1_certificate_signing_request.py index 96fca5770f..d2b552b5d0 100644 --- a/kubernetes/client/models/v1alpha1_certificate_signing_request.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1alpha1CertificateSigningRequest(object): +class V1beta1CertificateSigningRequest(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, metadata=None, spec=None, status=None): """ - V1alpha1CertificateSigningRequest - a model defined in Swagger + V1beta1CertificateSigningRequest - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -34,8 +34,8 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', - 'spec': 'V1alpha1CertificateSigningRequestSpec', - 'status': 'V1alpha1CertificateSigningRequestStatus' + 'spec': 'V1beta1CertificateSigningRequestSpec', + 'status': 'V1beta1CertificateSigningRequestStatus' } self.attribute_map = { @@ -55,10 +55,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1alpha1CertificateSigningRequest. + Gets the api_version of this V1beta1CertificateSigningRequest. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this V1alpha1CertificateSigningRequest. + :return: The api_version of this V1beta1CertificateSigningRequest. :rtype: str """ return self._api_version @@ -66,10 +66,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1CertificateSigningRequest. + Sets the api_version of this V1beta1CertificateSigningRequest. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1CertificateSigningRequest. + :param api_version: The api_version of this V1beta1CertificateSigningRequest. :type: str """ @@ -78,10 +78,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha1CertificateSigningRequest. + Gets the kind of this V1beta1CertificateSigningRequest. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this V1alpha1CertificateSigningRequest. + :return: The kind of this V1beta1CertificateSigningRequest. :rtype: str """ return self._kind @@ -89,10 +89,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1CertificateSigningRequest. + Sets the kind of this V1beta1CertificateSigningRequest. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1CertificateSigningRequest. + :param kind: The kind of this V1beta1CertificateSigningRequest. :type: str """ @@ -101,9 +101,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1CertificateSigningRequest. + Gets the metadata of this V1beta1CertificateSigningRequest. - :return: The metadata of this V1alpha1CertificateSigningRequest. + :return: The metadata of this V1beta1CertificateSigningRequest. :rtype: V1ObjectMeta """ return self._metadata @@ -111,9 +111,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1CertificateSigningRequest. + Sets the metadata of this V1beta1CertificateSigningRequest. - :param metadata: The metadata of this V1alpha1CertificateSigningRequest. + :param metadata: The metadata of this V1beta1CertificateSigningRequest. :type: V1ObjectMeta """ @@ -122,22 +122,22 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1CertificateSigningRequest. + Gets the spec of this V1beta1CertificateSigningRequest. The certificate request itself and any additional information. - :return: The spec of this V1alpha1CertificateSigningRequest. - :rtype: V1alpha1CertificateSigningRequestSpec + :return: The spec of this V1beta1CertificateSigningRequest. + :rtype: V1beta1CertificateSigningRequestSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1CertificateSigningRequest. + Sets the spec of this V1beta1CertificateSigningRequest. The certificate request itself and any additional information. - :param spec: The spec of this V1alpha1CertificateSigningRequest. - :type: V1alpha1CertificateSigningRequestSpec + :param spec: The spec of this V1beta1CertificateSigningRequest. + :type: V1beta1CertificateSigningRequestSpec """ self._spec = spec @@ -145,22 +145,22 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1alpha1CertificateSigningRequest. + Gets the status of this V1beta1CertificateSigningRequest. Derived information about the request. - :return: The status of this V1alpha1CertificateSigningRequest. - :rtype: V1alpha1CertificateSigningRequestStatus + :return: The status of this V1beta1CertificateSigningRequest. + :rtype: V1beta1CertificateSigningRequestStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V1alpha1CertificateSigningRequest. + Sets the status of this V1beta1CertificateSigningRequest. Derived information about the request. - :param status: The status of this V1alpha1CertificateSigningRequest. - :type: V1alpha1CertificateSigningRequestStatus + :param status: The status of this V1beta1CertificateSigningRequest. + :type: V1beta1CertificateSigningRequestStatus """ self._status = status diff --git a/kubernetes/client/models/v1alpha1_certificate_signing_request_condition.py b/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py similarity index 74% rename from kubernetes/client/models/v1alpha1_certificate_signing_request_condition.py rename to kubernetes/client/models/v1beta1_certificate_signing_request_condition.py index ee10ad07ce..f9922f8a9a 100644 --- a/kubernetes/client/models/v1alpha1_certificate_signing_request_condition.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1alpha1CertificateSigningRequestCondition(object): +class V1beta1CertificateSigningRequestCondition(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 + V1beta1CertificateSigningRequestCondition - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -31,7 +31,7 @@ def __init__(self, last_update_time=None, message=None, reason=None, type=None): and the value is json key in definition. """ self.swagger_types = { - 'last_update_time': 'UnversionedTime', + 'last_update_time': 'V1Time', 'message': 'str', 'reason': 'str', 'type': 'str' @@ -52,22 +52,22 @@ def __init__(self, last_update_time=None, message=None, reason=None, type=None): @property def last_update_time(self): """ - Gets the last_update_time of this V1alpha1CertificateSigningRequestCondition. + Gets the last_update_time of this V1beta1CertificateSigningRequestCondition. timestamp for the last update to this condition - :return: The last_update_time of this V1alpha1CertificateSigningRequestCondition. - :rtype: UnversionedTime + :return: The last_update_time of this V1beta1CertificateSigningRequestCondition. + :rtype: V1Time """ 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. + Sets the last_update_time of this V1beta1CertificateSigningRequestCondition. timestamp for the last update to this condition - :param last_update_time: The last_update_time of this V1alpha1CertificateSigningRequestCondition. - :type: UnversionedTime + :param last_update_time: The last_update_time of this V1beta1CertificateSigningRequestCondition. + :type: V1Time """ self._last_update_time = last_update_time @@ -75,10 +75,10 @@ def last_update_time(self, last_update_time): @property def message(self): """ - Gets the message of this V1alpha1CertificateSigningRequestCondition. + Gets the message of this V1beta1CertificateSigningRequestCondition. human readable message with details about the request state - :return: The message of this V1alpha1CertificateSigningRequestCondition. + :return: The message of this V1beta1CertificateSigningRequestCondition. :rtype: str """ return self._message @@ -86,10 +86,10 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this V1alpha1CertificateSigningRequestCondition. + Sets the message of this V1beta1CertificateSigningRequestCondition. human readable message with details about the request state - :param message: The message of this V1alpha1CertificateSigningRequestCondition. + :param message: The message of this V1beta1CertificateSigningRequestCondition. :type: str """ @@ -98,10 +98,10 @@ def message(self, message): @property def reason(self): """ - Gets the reason of this V1alpha1CertificateSigningRequestCondition. + Gets the reason of this V1beta1CertificateSigningRequestCondition. brief reason for the request state - :return: The reason of this V1alpha1CertificateSigningRequestCondition. + :return: The reason of this V1beta1CertificateSigningRequestCondition. :rtype: str """ return self._reason @@ -109,10 +109,10 @@ def reason(self): @reason.setter def reason(self, reason): """ - Sets the reason of this V1alpha1CertificateSigningRequestCondition. + Sets the reason of this V1beta1CertificateSigningRequestCondition. brief reason for the request state - :param reason: The reason of this V1alpha1CertificateSigningRequestCondition. + :param reason: The reason of this V1beta1CertificateSigningRequestCondition. :type: str """ @@ -121,10 +121,10 @@ def reason(self, reason): @property def type(self): """ - Gets the type of this V1alpha1CertificateSigningRequestCondition. + Gets the type of this V1beta1CertificateSigningRequestCondition. request approval state, currently Approved or Denied. - :return: The type of this V1alpha1CertificateSigningRequestCondition. + :return: The type of this V1beta1CertificateSigningRequestCondition. :rtype: str """ return self._type @@ -132,10 +132,10 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this V1alpha1CertificateSigningRequestCondition. + Sets the type of this V1beta1CertificateSigningRequestCondition. request approval state, currently Approved or Denied. - :param type: The type of this V1alpha1CertificateSigningRequestCondition. + :param type: The type of this V1beta1CertificateSigningRequestCondition. :type: str """ if type is None: diff --git a/kubernetes/client/models/v1alpha1_certificate_signing_request_list.py b/kubernetes/client/models/v1beta1_certificate_signing_request_list.py similarity index 74% rename from kubernetes/client/models/v1alpha1_certificate_signing_request_list.py rename to kubernetes/client/models/v1beta1_certificate_signing_request_list.py index 3ff8356419..975e43cecc 100644 --- a/kubernetes/client/models/v1alpha1_certificate_signing_request_list.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1alpha1CertificateSigningRequestList(object): +class V1beta1CertificateSigningRequestList(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, items=None, kind=None, metadata=None): """ - V1alpha1CertificateSigningRequestList - a model defined in Swagger + V1beta1CertificateSigningRequestList - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -32,9 +32,9 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ self.swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha1CertificateSigningRequest]', + 'items': 'list[V1beta1CertificateSigningRequest]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -52,10 +52,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1CertificateSigningRequestList. + Gets the api_version of this V1beta1CertificateSigningRequestList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this V1alpha1CertificateSigningRequestList. + :return: The api_version of this V1beta1CertificateSigningRequestList. :rtype: str """ return self._api_version @@ -63,10 +63,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1CertificateSigningRequestList. + Sets the api_version of this V1beta1CertificateSigningRequestList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1CertificateSigningRequestList. + :param api_version: The api_version of this V1beta1CertificateSigningRequestList. :type: str """ @@ -75,20 +75,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha1CertificateSigningRequestList. + Gets the items of this V1beta1CertificateSigningRequestList. - :return: The items of this V1alpha1CertificateSigningRequestList. - :rtype: list[V1alpha1CertificateSigningRequest] + :return: The items of this V1beta1CertificateSigningRequestList. + :rtype: list[V1beta1CertificateSigningRequest] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha1CertificateSigningRequestList. + Sets the items of this V1beta1CertificateSigningRequestList. - :param items: The items of this V1alpha1CertificateSigningRequestList. - :type: list[V1alpha1CertificateSigningRequest] + :param items: The items of this V1beta1CertificateSigningRequestList. + :type: list[V1beta1CertificateSigningRequest] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -98,10 +98,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha1CertificateSigningRequestList. + Gets the kind of this V1beta1CertificateSigningRequestList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this V1alpha1CertificateSigningRequestList. + :return: The kind of this V1beta1CertificateSigningRequestList. :rtype: str """ return self._kind @@ -109,10 +109,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1CertificateSigningRequestList. + Sets the kind of this V1beta1CertificateSigningRequestList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1CertificateSigningRequestList. + :param kind: The kind of this V1beta1CertificateSigningRequestList. :type: str """ @@ -121,20 +121,20 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1CertificateSigningRequestList. + Gets the metadata of this V1beta1CertificateSigningRequestList. - :return: The metadata of this V1alpha1CertificateSigningRequestList. - :rtype: UnversionedListMeta + :return: The metadata of this V1beta1CertificateSigningRequestList. + :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1CertificateSigningRequestList. + Sets the metadata of this V1beta1CertificateSigningRequestList. - :param metadata: The metadata of this V1alpha1CertificateSigningRequestList. - :type: UnversionedListMeta + :param metadata: The metadata of this V1beta1CertificateSigningRequestList. + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request_spec.py b/kubernetes/client/models/v1beta1_certificate_signing_request_spec.py new file mode 100644 index 0000000000..23b4504311 --- /dev/null +++ b/kubernetes/client/models/v1beta1_certificate_signing_request_spec.py @@ -0,0 +1,246 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1CertificateSigningRequestSpec(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, request=None, uid=None, usages=None, username=None): + """ + V1beta1CertificateSigningRequestSpec - 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]', + 'request': 'str', + 'uid': 'str', + 'usages': 'list[str]', + 'username': 'str' + } + + self.attribute_map = { + 'extra': 'extra', + 'groups': 'groups', + 'request': 'request', + 'uid': 'uid', + 'usages': 'usages', + 'username': 'username' + } + + self._extra = extra + self._groups = groups + self._request = request + self._uid = uid + self._usages = usages + self._username = username + + @property + def extra(self): + """ + Gets the extra of this V1beta1CertificateSigningRequestSpec. + Extra information about the requesting user. See user.Info interface for details. + + :return: The extra of this V1beta1CertificateSigningRequestSpec. + :rtype: dict(str, list[str]) + """ + return self._extra + + @extra.setter + def extra(self, extra): + """ + Sets the extra of this V1beta1CertificateSigningRequestSpec. + Extra information about the requesting user. See user.Info interface for details. + + :param extra: The extra of this V1beta1CertificateSigningRequestSpec. + :type: dict(str, list[str]) + """ + + self._extra = extra + + @property + def groups(self): + """ + Gets the groups of this V1beta1CertificateSigningRequestSpec. + Group information about the requesting user. See user.Info interface for details. + + :return: The groups of this V1beta1CertificateSigningRequestSpec. + :rtype: list[str] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """ + Sets the groups of this V1beta1CertificateSigningRequestSpec. + Group information about the requesting user. See user.Info interface for details. + + :param groups: The groups of this V1beta1CertificateSigningRequestSpec. + :type: list[str] + """ + + self._groups = groups + + @property + def request(self): + """ + Gets the request of this V1beta1CertificateSigningRequestSpec. + Base64-encoded PKCS#10 CSR data + + :return: The request of this V1beta1CertificateSigningRequestSpec. + :rtype: str + """ + return self._request + + @request.setter + def request(self, request): + """ + Sets the request of this V1beta1CertificateSigningRequestSpec. + Base64-encoded PKCS#10 CSR data + + :param request: The request of this V1beta1CertificateSigningRequestSpec. + :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 V1beta1CertificateSigningRequestSpec. + UID information about the requesting user. See user.Info interface for details. + + :return: The uid of this V1beta1CertificateSigningRequestSpec. + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """ + Sets the uid of this V1beta1CertificateSigningRequestSpec. + UID information about the requesting user. See user.Info interface for details. + + :param uid: The uid of this V1beta1CertificateSigningRequestSpec. + :type: str + """ + + self._uid = uid + + @property + def usages(self): + """ + Gets the usages of this V1beta1CertificateSigningRequestSpec. + allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 + + :return: The usages of this V1beta1CertificateSigningRequestSpec. + :rtype: list[str] + """ + return self._usages + + @usages.setter + def usages(self, usages): + """ + Sets the usages of this V1beta1CertificateSigningRequestSpec. + allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 + + :param usages: The usages of this V1beta1CertificateSigningRequestSpec. + :type: list[str] + """ + + self._usages = usages + + @property + def username(self): + """ + Gets the username of this V1beta1CertificateSigningRequestSpec. + Information about the requesting user. See user.Info interface for details. + + :return: The username of this V1beta1CertificateSigningRequestSpec. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """ + Sets the username of this V1beta1CertificateSigningRequestSpec. + Information about the requesting user. See user.Info interface for details. + + :param username: The username of this V1beta1CertificateSigningRequestSpec. + :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/kubernetes/client/models/v1alpha1_certificate_signing_request_status.py b/kubernetes/client/models/v1beta1_certificate_signing_request_status.py similarity index 76% rename from kubernetes/client/models/v1alpha1_certificate_signing_request_status.py rename to kubernetes/client/models/v1beta1_certificate_signing_request_status.py index 92f16bfad0..cbd2ddb26c 100644 --- a/kubernetes/client/models/v1alpha1_certificate_signing_request_status.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1alpha1CertificateSigningRequestStatus(object): +class V1beta1CertificateSigningRequestStatus(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 + V1beta1CertificateSigningRequestStatus - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -32,7 +32,7 @@ def __init__(self, certificate=None, conditions=None): """ self.swagger_types = { 'certificate': 'str', - 'conditions': 'list[V1alpha1CertificateSigningRequestCondition]' + 'conditions': 'list[V1beta1CertificateSigningRequestCondition]' } self.attribute_map = { @@ -46,10 +46,10 @@ def __init__(self, certificate=None, conditions=None): @property def certificate(self): """ - Gets the certificate of this V1alpha1CertificateSigningRequestStatus. + Gets the certificate of this V1beta1CertificateSigningRequestStatus. If request was approved, the controller will place the issued certificate here. - :return: The certificate of this V1alpha1CertificateSigningRequestStatus. + :return: The certificate of this V1beta1CertificateSigningRequestStatus. :rtype: str """ return self._certificate @@ -57,10 +57,10 @@ def certificate(self): @certificate.setter def certificate(self, certificate): """ - Sets the certificate of this V1alpha1CertificateSigningRequestStatus. + Sets the certificate of this V1beta1CertificateSigningRequestStatus. If request was approved, the controller will place the issued certificate here. - :param certificate: The certificate of this V1alpha1CertificateSigningRequestStatus. + :param certificate: The certificate of this V1beta1CertificateSigningRequestStatus. :type: str """ @@ -69,22 +69,22 @@ def certificate(self, certificate): @property def conditions(self): """ - Gets the conditions of this V1alpha1CertificateSigningRequestStatus. + Gets the conditions of this V1beta1CertificateSigningRequestStatus. Conditions applied to the request, such as approval or denial. - :return: The conditions of this V1alpha1CertificateSigningRequestStatus. - :rtype: list[V1alpha1CertificateSigningRequestCondition] + :return: The conditions of this V1beta1CertificateSigningRequestStatus. + :rtype: list[V1beta1CertificateSigningRequestCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): """ - Sets the conditions of this V1alpha1CertificateSigningRequestStatus. + Sets the conditions of this V1beta1CertificateSigningRequestStatus. Conditions applied to the request, such as approval or denial. - :param conditions: The conditions of this V1alpha1CertificateSigningRequestStatus. - :type: list[V1alpha1CertificateSigningRequestCondition] + :param conditions: The conditions of this V1beta1CertificateSigningRequestStatus. + :type: list[V1beta1CertificateSigningRequestCondition] """ self._conditions = conditions diff --git a/kubernetes/client/models/v1beta1_cluster_role.py b/kubernetes/client/models/v1beta1_cluster_role.py new file mode 100644 index 0000000000..ad18d2c9b5 --- /dev/null +++ b/kubernetes/client/models/v1beta1_cluster_role.py @@ -0,0 +1,194 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ClusterRole(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, metadata=None, rules=None): + """ + V1beta1ClusterRole - 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', + 'metadata': 'V1ObjectMeta', + 'rules': 'list[V1beta1PolicyRule]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'rules': 'rules' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._rules = rules + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1ClusterRole. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1ClusterRole. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1ClusterRole. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1ClusterRole. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1beta1ClusterRole. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1ClusterRole. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1ClusterRole. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1ClusterRole. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1ClusterRole. + Standard object's metadata. + + :return: The metadata of this V1beta1ClusterRole. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1ClusterRole. + Standard object's metadata. + + :param metadata: The metadata of this V1beta1ClusterRole. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def rules(self): + """ + Gets the rules of this V1beta1ClusterRole. + Rules holds all the PolicyRules for this ClusterRole + + :return: The rules of this V1beta1ClusterRole. + :rtype: list[V1beta1PolicyRule] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """ + Sets the rules of this V1beta1ClusterRole. + Rules holds all the PolicyRules for this ClusterRole + + :param rules: The rules of this V1beta1ClusterRole. + :type: list[V1beta1PolicyRule] + """ + 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/kubernetes/client/models/v1beta1_cluster_role_binding.py b/kubernetes/client/models/v1beta1_cluster_role_binding.py new file mode 100644 index 0000000000..c2f65cafd8 --- /dev/null +++ b/kubernetes/client/models/v1beta1_cluster_role_binding.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ClusterRoleBinding(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, metadata=None, role_ref=None, subjects=None): + """ + V1beta1ClusterRoleBinding - 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', + 'metadata': 'V1ObjectMeta', + 'role_ref': 'V1beta1RoleRef', + 'subjects': 'list[V1beta1Subject]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'role_ref': 'roleRef', + 'subjects': 'subjects' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._role_ref = role_ref + self._subjects = subjects + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1ClusterRoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1ClusterRoleBinding. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1ClusterRoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1ClusterRoleBinding. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1beta1ClusterRoleBinding. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1ClusterRoleBinding. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1ClusterRoleBinding. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1ClusterRoleBinding. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1ClusterRoleBinding. + Standard object's metadata. + + :return: The metadata of this V1beta1ClusterRoleBinding. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1ClusterRoleBinding. + Standard object's metadata. + + :param metadata: The metadata of this V1beta1ClusterRoleBinding. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def role_ref(self): + """ + Gets the role_ref of this V1beta1ClusterRoleBinding. + 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 V1beta1ClusterRoleBinding. + :rtype: V1beta1RoleRef + """ + return self._role_ref + + @role_ref.setter + def role_ref(self, role_ref): + """ + Sets the role_ref of this V1beta1ClusterRoleBinding. + 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 V1beta1ClusterRoleBinding. + :type: V1beta1RoleRef + """ + 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 V1beta1ClusterRoleBinding. + Subjects holds references to the objects the role applies to. + + :return: The subjects of this V1beta1ClusterRoleBinding. + :rtype: list[V1beta1Subject] + """ + return self._subjects + + @subjects.setter + def subjects(self, subjects): + """ + Sets the subjects of this V1beta1ClusterRoleBinding. + Subjects holds references to the objects the role applies to. + + :param subjects: The subjects of this V1beta1ClusterRoleBinding. + :type: list[V1beta1Subject] + """ + 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/kubernetes/client/models/v1beta1_cluster_role_binding_list.py b/kubernetes/client/models/v1beta1_cluster_role_binding_list.py new file mode 100644 index 0000000000..62a5c5ad9b --- /dev/null +++ b/kubernetes/client/models/v1beta1_cluster_role_binding_list.py @@ -0,0 +1,194 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ClusterRoleBindingList(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, items=None, kind=None, metadata=None): + """ + V1beta1ClusterRoleBindingList - 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', + 'items': 'list[V1beta1ClusterRoleBinding]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1ClusterRoleBindingList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1ClusterRoleBindingList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1ClusterRoleBindingList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1ClusterRoleBindingList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1ClusterRoleBindingList. + Items is a list of ClusterRoleBindings + + :return: The items of this V1beta1ClusterRoleBindingList. + :rtype: list[V1beta1ClusterRoleBinding] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1ClusterRoleBindingList. + Items is a list of ClusterRoleBindings + + :param items: The items of this V1beta1ClusterRoleBindingList. + :type: list[V1beta1ClusterRoleBinding] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1beta1ClusterRoleBindingList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1ClusterRoleBindingList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1ClusterRoleBindingList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1ClusterRoleBindingList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1ClusterRoleBindingList. + Standard object's metadata. + + :return: The metadata of this V1beta1ClusterRoleBindingList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1ClusterRoleBindingList. + Standard object's metadata. + + :param metadata: The metadata of this V1beta1ClusterRoleBindingList. + :type: V1ListMeta + """ + + 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/kubernetes/client/models/v1beta1_cluster_role_list.py b/kubernetes/client/models/v1beta1_cluster_role_list.py new file mode 100644 index 0000000000..82150a5ee7 --- /dev/null +++ b/kubernetes/client/models/v1beta1_cluster_role_list.py @@ -0,0 +1,194 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1ClusterRoleList(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, items=None, kind=None, metadata=None): + """ + V1beta1ClusterRoleList - 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', + 'items': 'list[V1beta1ClusterRole]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1ClusterRoleList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1ClusterRoleList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1ClusterRoleList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1ClusterRoleList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1ClusterRoleList. + Items is a list of ClusterRoles + + :return: The items of this V1beta1ClusterRoleList. + :rtype: list[V1beta1ClusterRole] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1ClusterRoleList. + Items is a list of ClusterRoles + + :param items: The items of this V1beta1ClusterRoleList. + :type: list[V1beta1ClusterRole] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1beta1ClusterRoleList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1ClusterRoleList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1ClusterRoleList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1ClusterRoleList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1ClusterRoleList. + Standard object's metadata. + + :return: The metadata of this V1beta1ClusterRoleList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1ClusterRoleList. + Standard object's metadata. + + :param metadata: The metadata of this V1beta1ClusterRoleList. + :type: V1ListMeta + """ + + 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/kubernetes/client/models/v1beta1_daemon_set.py b/kubernetes/client/models/v1beta1_daemon_set.py index bf8b59c9c5..60bc14e1d3 100644 --- a/kubernetes/client/models/v1beta1_daemon_set.py +++ b/kubernetes/client/models/v1beta1_daemon_set.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -125,7 +125,7 @@ def metadata(self, metadata): 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 + 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 @@ -136,7 +136,7 @@ def spec(self): 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 + 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 @@ -148,7 +148,7 @@ def spec(self, spec): 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 + 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 @@ -159,7 +159,7 @@ def status(self): 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 + 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 diff --git a/kubernetes/client/models/v1beta1_daemon_set_list.py b/kubernetes/client/models/v1beta1_daemon_set_list.py index ba2552d852..66acd581e8 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_list.py +++ b/kubernetes/client/models/v1beta1_daemon_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1DaemonSet]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -76,7 +76,7 @@ def api_version(self, api_version): def items(self): """ Gets the items of this V1beta1DaemonSetList. - Items is a list of daemon sets. + A list of daemon sets. :return: The items of this V1beta1DaemonSetList. :rtype: list[V1beta1DaemonSet] @@ -87,7 +87,7 @@ def items(self): def items(self, items): """ Sets the items of this V1beta1DaemonSetList. - Items is a list of daemon sets. + A list of daemon sets. :param items: The items of this V1beta1DaemonSetList. :type: list[V1beta1DaemonSet] @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The metadata of this V1beta1DaemonSetList. - :rtype: UnversionedListMeta + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_daemon_set_spec.py b/kubernetes/client/models/v1beta1_daemon_set_spec.py index 7acd73585a..37fae595fc 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_spec.py +++ b/kubernetes/client/models/v1beta1_daemon_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ 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): + def __init__(self, min_ready_seconds=None, selector=None, template=None, template_generation=None, update_strategy=None): """ V1beta1DaemonSetSpec - a model defined in Swagger @@ -31,26 +31,58 @@ def __init__(self, selector=None, template=None): and the value is json key in definition. """ self.swagger_types = { - 'selector': 'UnversionedLabelSelector', - 'template': 'V1PodTemplateSpec' + 'min_ready_seconds': 'int', + 'selector': 'V1LabelSelector', + 'template': 'V1PodTemplateSpec', + 'template_generation': 'int', + 'update_strategy': 'V1beta1DaemonSetUpdateStrategy' } self.attribute_map = { + 'min_ready_seconds': 'minReadySeconds', 'selector': 'selector', - 'template': 'template' + 'template': 'template', + 'template_generation': 'templateGeneration', + 'update_strategy': 'updateStrategy' } + self._min_ready_seconds = min_ready_seconds self._selector = selector self._template = template + self._template_generation = template_generation + self._update_strategy = update_strategy + + @property + def min_ready_seconds(self): + """ + Gets the min_ready_seconds of this V1beta1DaemonSetSpec. + The minimum number of seconds for which a newly created DaemonSet 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 V1beta1DaemonSetSpec. + :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 V1beta1DaemonSetSpec. + The minimum number of seconds for which a newly created DaemonSet 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 V1beta1DaemonSetSpec. + :type: int + """ + + self._min_ready_seconds = min_ready_seconds @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 + 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 + :rtype: V1LabelSelector """ return self._selector @@ -58,10 +90,10 @@ def selector(self): 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 + 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 + :type: V1LabelSelector """ self._selector = selector @@ -70,7 +102,7 @@ def selector(self, selector): 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 + An 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 @@ -81,7 +113,7 @@ def template(self): 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 + An 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 @@ -91,6 +123,52 @@ def template(self, template): self._template = template + @property + def template_generation(self): + """ + Gets the template_generation of this V1beta1DaemonSetSpec. + A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. + + :return: The template_generation of this V1beta1DaemonSetSpec. + :rtype: int + """ + return self._template_generation + + @template_generation.setter + def template_generation(self, template_generation): + """ + Sets the template_generation of this V1beta1DaemonSetSpec. + A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. + + :param template_generation: The template_generation of this V1beta1DaemonSetSpec. + :type: int + """ + + self._template_generation = template_generation + + @property + def update_strategy(self): + """ + Gets the update_strategy of this V1beta1DaemonSetSpec. + An update strategy to replace existing DaemonSet pods with new pods. + + :return: The update_strategy of this V1beta1DaemonSetSpec. + :rtype: V1beta1DaemonSetUpdateStrategy + """ + return self._update_strategy + + @update_strategy.setter + def update_strategy(self, update_strategy): + """ + Sets the update_strategy of this V1beta1DaemonSetSpec. + An update strategy to replace existing DaemonSet pods with new pods. + + :param update_strategy: The update_strategy of this V1beta1DaemonSetSpec. + :type: V1beta1DaemonSetUpdateStrategy + """ + + self._update_strategy = update_strategy + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubernetes/client/models/v1beta1_daemon_set_status.py b/kubernetes/client/models/v1beta1_daemon_set_status.py index 804d356b7c..e0fcec926d 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_status.py +++ b/kubernetes/client/models/v1beta1_daemon_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ 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): + def __init__(self, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None): """ V1beta1DaemonSetStatus - a model defined in Swagger @@ -33,27 +33,39 @@ def __init__(self, current_number_scheduled=None, desired_number_scheduled=None, self.swagger_types = { 'current_number_scheduled': 'int', 'desired_number_scheduled': 'int', + 'number_available': 'int', 'number_misscheduled': 'int', - 'number_ready': 'int' + 'number_ready': 'int', + 'number_unavailable': 'int', + 'observed_generation': 'int', + 'updated_number_scheduled': 'int' } self.attribute_map = { 'current_number_scheduled': 'currentNumberScheduled', 'desired_number_scheduled': 'desiredNumberScheduled', + 'number_available': 'numberAvailable', 'number_misscheduled': 'numberMisscheduled', - 'number_ready': 'numberReady' + 'number_ready': 'numberReady', + 'number_unavailable': 'numberUnavailable', + 'observed_generation': 'observedGeneration', + 'updated_number_scheduled': 'updatedNumberScheduled' } self._current_number_scheduled = current_number_scheduled self._desired_number_scheduled = desired_number_scheduled + self._number_available = number_available self._number_misscheduled = number_misscheduled self._number_ready = number_ready + self._number_unavailable = number_unavailable + self._observed_generation = observed_generation + self._updated_number_scheduled = updated_number_scheduled @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 + 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 @@ -64,7 +76,7 @@ def current_number_scheduled(self): 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 + 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 @@ -78,7 +90,7 @@ def current_number_scheduled(self, current_number_scheduled): 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 + 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 @@ -89,7 +101,7 @@ def desired_number_scheduled(self): 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 + 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 @@ -99,11 +111,34 @@ def desired_number_scheduled(self, desired_number_scheduled): self._desired_number_scheduled = desired_number_scheduled + @property + def number_available(self): + """ + Gets the number_available of this V1beta1DaemonSetStatus. + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + + :return: The number_available of this V1beta1DaemonSetStatus. + :rtype: int + """ + return self._number_available + + @number_available.setter + def number_available(self, number_available): + """ + Sets the number_available of this V1beta1DaemonSetStatus. + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + + :param number_available: The number_available of this V1beta1DaemonSetStatus. + :type: int + """ + + self._number_available = number_available + @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 + 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 @@ -114,7 +149,7 @@ def number_misscheduled(self): 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 + 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 @@ -128,7 +163,7 @@ def number_misscheduled(self, number_misscheduled): 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. + 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 @@ -139,7 +174,7 @@ def number_ready(self): 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. + 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 @@ -149,6 +184,75 @@ def number_ready(self, number_ready): self._number_ready = number_ready + @property + def number_unavailable(self): + """ + Gets the number_unavailable of this V1beta1DaemonSetStatus. + The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + + :return: The number_unavailable of this V1beta1DaemonSetStatus. + :rtype: int + """ + return self._number_unavailable + + @number_unavailable.setter + def number_unavailable(self, number_unavailable): + """ + Sets the number_unavailable of this V1beta1DaemonSetStatus. + The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + + :param number_unavailable: The number_unavailable of this V1beta1DaemonSetStatus. + :type: int + """ + + self._number_unavailable = number_unavailable + + @property + def observed_generation(self): + """ + Gets the observed_generation of this V1beta1DaemonSetStatus. + The most recent generation observed by the daemon set controller. + + :return: The observed_generation of this V1beta1DaemonSetStatus. + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """ + Sets the observed_generation of this V1beta1DaemonSetStatus. + The most recent generation observed by the daemon set controller. + + :param observed_generation: The observed_generation of this V1beta1DaemonSetStatus. + :type: int + """ + + self._observed_generation = observed_generation + + @property + def updated_number_scheduled(self): + """ + Gets the updated_number_scheduled of this V1beta1DaemonSetStatus. + The total number of nodes that are running updated daemon pod + + :return: The updated_number_scheduled of this V1beta1DaemonSetStatus. + :rtype: int + """ + return self._updated_number_scheduled + + @updated_number_scheduled.setter + def updated_number_scheduled(self, updated_number_scheduled): + """ + Sets the updated_number_scheduled of this V1beta1DaemonSetStatus. + The total number of nodes that are running updated daemon pod + + :param updated_number_scheduled: The updated_number_scheduled of this V1beta1DaemonSetStatus. + :type: int + """ + + self._updated_number_scheduled = updated_number_scheduled + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubernetes/client/models/v1beta1_daemon_set_update_strategy.py b/kubernetes/client/models/v1beta1_daemon_set_update_strategy.py new file mode 100644 index 0000000000..8130bc120c --- /dev/null +++ b/kubernetes/client/models/v1beta1_daemon_set_update_strategy.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DaemonSetUpdateStrategy(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): + """ + V1beta1DaemonSetUpdateStrategy - 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': 'V1beta1RollingUpdateDaemonSet', + '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 V1beta1DaemonSetUpdateStrategy. + Rolling update config params. Present only if type = \"RollingUpdate\". + + :return: The rolling_update of this V1beta1DaemonSetUpdateStrategy. + :rtype: V1beta1RollingUpdateDaemonSet + """ + return self._rolling_update + + @rolling_update.setter + def rolling_update(self, rolling_update): + """ + Sets the rolling_update of this V1beta1DaemonSetUpdateStrategy. + Rolling update config params. Present only if type = \"RollingUpdate\". + + :param rolling_update: The rolling_update of this V1beta1DaemonSetUpdateStrategy. + :type: V1beta1RollingUpdateDaemonSet + """ + + self._rolling_update = rolling_update + + @property + def type(self): + """ + Gets the type of this V1beta1DaemonSetUpdateStrategy. + Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. + + :return: The type of this V1beta1DaemonSetUpdateStrategy. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1beta1DaemonSetUpdateStrategy. + Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. + + :param type: The type of this V1beta1DaemonSetUpdateStrategy. + :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/kubernetes/client/models/v1beta1_eviction.py b/kubernetes/client/models/v1beta1_eviction.py index 2f81cc8269..d5c1377625 100644 --- a/kubernetes/client/models/v1beta1_eviction.py +++ b/kubernetes/client/models/v1beta1_eviction.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_fs_group_strategy_options.py b/kubernetes/client/models/v1beta1_fs_group_strategy_options.py new file mode 100644 index 0000000000..506c4ea4a7 --- /dev/null +++ b/kubernetes/client/models/v1beta1_fs_group_strategy_options.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1FSGroupStrategyOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, ranges=None, rule=None): + """ + V1beta1FSGroupStrategyOptions - 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 = { + 'ranges': 'list[V1beta1IDRange]', + 'rule': 'str' + } + + self.attribute_map = { + 'ranges': 'ranges', + 'rule': 'rule' + } + + self._ranges = ranges + self._rule = rule + + @property + def ranges(self): + """ + Gets the ranges of this V1beta1FSGroupStrategyOptions. + Ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. + + :return: The ranges of this V1beta1FSGroupStrategyOptions. + :rtype: list[V1beta1IDRange] + """ + return self._ranges + + @ranges.setter + def ranges(self, ranges): + """ + Sets the ranges of this V1beta1FSGroupStrategyOptions. + Ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. + + :param ranges: The ranges of this V1beta1FSGroupStrategyOptions. + :type: list[V1beta1IDRange] + """ + + self._ranges = ranges + + @property + def rule(self): + """ + Gets the rule of this V1beta1FSGroupStrategyOptions. + Rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + + :return: The rule of this V1beta1FSGroupStrategyOptions. + :rtype: str + """ + return self._rule + + @rule.setter + def rule(self, rule): + """ + Sets the rule of this V1beta1FSGroupStrategyOptions. + Rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + + :param rule: The rule of this V1beta1FSGroupStrategyOptions. + :type: str + """ + + self._rule = rule + + 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/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_spec.py b/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_spec.py deleted file mode 100644 index 03fa0fb964..0000000000 --- a/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_spec.py +++ /dev/null @@ -1,196 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -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/kubernetes/client/models/v1beta1_host_port_range.py b/kubernetes/client/models/v1beta1_host_port_range.py new file mode 100644 index 0000000000..05c3354879 --- /dev/null +++ b/kubernetes/client/models/v1beta1_host_port_range.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1HostPortRange(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, max=None, min=None): + """ + V1beta1HostPortRange - 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': 'int', + 'min': 'int' + } + + self.attribute_map = { + 'max': 'max', + 'min': 'min' + } + + self._max = max + self._min = min + + @property + def max(self): + """ + Gets the max of this V1beta1HostPortRange. + max is the end of the range, inclusive. + + :return: The max of this V1beta1HostPortRange. + :rtype: int + """ + return self._max + + @max.setter + def max(self, max): + """ + Sets the max of this V1beta1HostPortRange. + max is the end of the range, inclusive. + + :param max: The max of this V1beta1HostPortRange. + :type: int + """ + if max is None: + raise ValueError("Invalid value for `max`, must not be `None`") + + self._max = max + + @property + def min(self): + """ + Gets the min of this V1beta1HostPortRange. + min is the start of the range, inclusive. + + :return: The min of this V1beta1HostPortRange. + :rtype: int + """ + return self._min + + @min.setter + def min(self, min): + """ + Sets the min of this V1beta1HostPortRange. + min is the start of the range, inclusive. + + :param min: The min of this V1beta1HostPortRange. + :type: int + """ + if min is None: + raise ValueError("Invalid value for `min`, must not be `None`") + + self._min = min + + 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/kubernetes/client/models/v1beta1_http_ingress_path.py b/kubernetes/client/models/v1beta1_http_ingress_path.py index d8f1c90b2d..ed09ab0d91 100644 --- a/kubernetes/client/models/v1beta1_http_ingress_path.py +++ b/kubernetes/client/models/v1beta1_http_ingress_path.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_http_ingress_rule_value.py b/kubernetes/client/models/v1beta1_http_ingress_rule_value.py index 168b201cfa..ce7100e49f 100644 --- a/kubernetes/client/models/v1beta1_http_ingress_rule_value.py +++ b/kubernetes/client/models/v1beta1_http_ingress_rule_value.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_id_range.py b/kubernetes/client/models/v1beta1_id_range.py new file mode 100644 index 0000000000..e0135a7e2f --- /dev/null +++ b/kubernetes/client/models/v1beta1_id_range.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1IDRange(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, max=None, min=None): + """ + V1beta1IDRange - 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': 'int', + 'min': 'int' + } + + self.attribute_map = { + 'max': 'max', + 'min': 'min' + } + + self._max = max + self._min = min + + @property + def max(self): + """ + Gets the max of this V1beta1IDRange. + Max is the end of the range, inclusive. + + :return: The max of this V1beta1IDRange. + :rtype: int + """ + return self._max + + @max.setter + def max(self, max): + """ + Sets the max of this V1beta1IDRange. + Max is the end of the range, inclusive. + + :param max: The max of this V1beta1IDRange. + :type: int + """ + if max is None: + raise ValueError("Invalid value for `max`, must not be `None`") + + self._max = max + + @property + def min(self): + """ + Gets the min of this V1beta1IDRange. + Min is the start of the range, inclusive. + + :return: The min of this V1beta1IDRange. + :rtype: int + """ + return self._min + + @min.setter + def min(self, min): + """ + Sets the min of this V1beta1IDRange. + Min is the start of the range, inclusive. + + :param min: The min of this V1beta1IDRange. + :type: int + """ + if min is None: + raise ValueError("Invalid value for `min`, must not be `None`") + + self._min = min + + 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/kubernetes/client/models/v1beta1_ingress.py b/kubernetes/client/models/v1beta1_ingress.py index e7b9fb20d7..6c4778f557 100644 --- a/kubernetes/client/models/v1beta1_ingress.py +++ b/kubernetes/client/models/v1beta1_ingress.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_ingress_backend.py b/kubernetes/client/models/v1beta1_ingress_backend.py index 0fddafade5..d83bbb7824 100644 --- a/kubernetes/client/models/v1beta1_ingress_backend.py +++ b/kubernetes/client/models/v1beta1_ingress_backend.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_ingress_list.py b/kubernetes/client/models/v1beta1_ingress_list.py index 5339855b13..b5f38cad44 100644 --- a/kubernetes/client/models/v1beta1_ingress_list.py +++ b/kubernetes/client/models/v1beta1_ingress_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1Ingress]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_ingress_rule.py b/kubernetes/client/models/v1beta1_ingress_rule.py index ca5246504f..868562ad46 100644 --- a/kubernetes/client/models/v1beta1_ingress_rule.py +++ b/kubernetes/client/models/v1beta1_ingress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_ingress_spec.py b/kubernetes/client/models/v1beta1_ingress_spec.py index 49f30c197f..283f07e0a9 100644 --- a/kubernetes/client/models/v1beta1_ingress_spec.py +++ b/kubernetes/client/models/v1beta1_ingress_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_ingress_status.py b/kubernetes/client/models/v1beta1_ingress_status.py index 99b90ae962..a286428c87 100644 --- a/kubernetes/client/models/v1beta1_ingress_status.py +++ b/kubernetes/client/models/v1beta1_ingress_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_ingress_tls.py b/kubernetes/client/models/v1beta1_ingress_tls.py index e3ad3ffe61..59ea06a09c 100644 --- a/kubernetes/client/models/v1beta1_ingress_tls.py +++ b/kubernetes/client/models/v1beta1_ingress_tls.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_job_condition.py b/kubernetes/client/models/v1beta1_job_condition.py deleted file mode 100644 index 244f94b7e5..0000000000 --- a/kubernetes/client/models/v1beta1_job_condition.py +++ /dev/null @@ -1,248 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -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/kubernetes/client/models/v1beta1_job_spec.py b/kubernetes/client/models/v1beta1_job_spec.py deleted file mode 100644 index c8f90f3640..0000000000 --- a/kubernetes/client/models/v1beta1_job_spec.py +++ /dev/null @@ -1,246 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -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/kubernetes/client/models/v1beta1_job_status.py b/kubernetes/client/models/v1beta1_job_status.py deleted file mode 100644 index de15dcc4ac..0000000000 --- a/kubernetes/client/models/v1beta1_job_status.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -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/kubernetes/client/models/v1beta1_local_subject_access_review.py b/kubernetes/client/models/v1beta1_local_subject_access_review.py index 0f5605498f..8bdd22802a 100644 --- a/kubernetes/client/models/v1beta1_local_subject_access_review.py +++ b/kubernetes/client/models/v1beta1_local_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_network_policy.py b/kubernetes/client/models/v1beta1_network_policy.py index e2b2a08383..74ad3cb4d6 100644 --- a/kubernetes/client/models/v1beta1_network_policy.py +++ b/kubernetes/client/models/v1beta1_network_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py b/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py index f4640133e5..66e2c51ff7 100644 --- a/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py +++ b/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_network_policy_list.py b/kubernetes/client/models/v1beta1_network_policy_list.py index 5da5ab7685..8387f517a0 100644 --- a/kubernetes/client/models/v1beta1_network_policy_list.py +++ b/kubernetes/client/models/v1beta1_network_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1NetworkPolicy]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The metadata of this V1beta1NetworkPolicyList. - :rtype: UnversionedListMeta + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_network_policy_peer.py b/kubernetes/client/models/v1beta1_network_policy_peer.py index ce56a47bf2..4a7014de03 100644 --- a/kubernetes/client/models/v1beta1_network_policy_peer.py +++ b/kubernetes/client/models/v1beta1_network_policy_peer.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,8 +31,8 @@ def __init__(self, namespace_selector=None, pod_selector=None): and the value is json key in definition. """ self.swagger_types = { - 'namespace_selector': 'UnversionedLabelSelector', - 'pod_selector': 'UnversionedLabelSelector' + 'namespace_selector': 'V1LabelSelector', + 'pod_selector': 'V1LabelSelector' } self.attribute_map = { @@ -50,7 +50,7 @@ def namespace_selector(self): 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 + :rtype: V1LabelSelector """ return self._namespace_selector @@ -61,7 +61,7 @@ def namespace_selector(self, namespace_selector): 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 + :type: V1LabelSelector """ self._namespace_selector = namespace_selector @@ -73,7 +73,7 @@ def pod_selector(self): 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 + :rtype: V1LabelSelector """ return self._pod_selector @@ -84,7 +84,7 @@ def pod_selector(self, pod_selector): 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 + :type: V1LabelSelector """ self._pod_selector = pod_selector diff --git a/kubernetes/client/models/v1beta1_network_policy_port.py b/kubernetes/client/models/v1beta1_network_policy_port.py index 3ecf074cd1..c56577bc2f 100644 --- a/kubernetes/client/models/v1beta1_network_policy_port.py +++ b/kubernetes/client/models/v1beta1_network_policy_port.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_network_policy_spec.py b/kubernetes/client/models/v1beta1_network_policy_spec.py index 87dce4ce0d..cc4debca78 100644 --- a/kubernetes/client/models/v1beta1_network_policy_spec.py +++ b/kubernetes/client/models/v1beta1_network_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,7 +32,7 @@ def __init__(self, ingress=None, pod_selector=None): """ self.swagger_types = { 'ingress': 'list[V1beta1NetworkPolicyIngressRule]', - 'pod_selector': 'UnversionedLabelSelector' + 'pod_selector': 'V1LabelSelector' } self.attribute_map = { @@ -73,7 +73,7 @@ def pod_selector(self): 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 + :rtype: V1LabelSelector """ return self._pod_selector @@ -84,7 +84,7 @@ def pod_selector(self, pod_selector): 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 + :type: V1LabelSelector """ if pod_selector is None: raise ValueError("Invalid value for `pod_selector`, must not be `None`") diff --git a/kubernetes/client/models/v1beta1_non_resource_attributes.py b/kubernetes/client/models/v1beta1_non_resource_attributes.py index cf0a7418fd..abd40fa755 100644 --- a/kubernetes/client/models/v1beta1_non_resource_attributes.py +++ b/kubernetes/client/models/v1beta1_non_resource_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget.py b/kubernetes/client/models/v1beta1_pod_disruption_budget.py index 6b382c41fb..20d4c366ce 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py b/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py index ed333679a0..aa8079b5a5 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1PodDisruptionBudget]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -124,7 +124,7 @@ def metadata(self): Gets the metadata of this V1beta1PodDisruptionBudgetList. :return: The metadata of this V1beta1PodDisruptionBudgetList. - :rtype: UnversionedListMeta + :rtype: V1ListMeta """ return self._metadata @@ -134,7 +134,7 @@ def metadata(self, metadata): Sets the metadata of this V1beta1PodDisruptionBudgetList. :param metadata: The metadata of this V1beta1PodDisruptionBudgetList. - :type: UnversionedListMeta + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py b/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py index 8532bc2c33..a342267943 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,7 +32,7 @@ def __init__(self, min_available=None, selector=None): """ self.swagger_types = { 'min_available': 'IntstrIntOrString', - 'selector': 'UnversionedLabelSelector' + 'selector': 'V1LabelSelector' } self.attribute_map = { @@ -73,7 +73,7 @@ def selector(self): Label query over pods whose evictions are managed by the disruption budget. :return: The selector of this V1beta1PodDisruptionBudgetSpec. - :rtype: UnversionedLabelSelector + :rtype: V1LabelSelector """ return self._selector @@ -84,7 +84,7 @@ def selector(self, selector): Label query over pods whose evictions are managed by the disruption budget. :param selector: The selector of this V1beta1PodDisruptionBudgetSpec. - :type: UnversionedLabelSelector + :type: V1LabelSelector """ self._selector = selector diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py b/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py index 7db0f23086..74bd1cfb86 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,7 +33,7 @@ def __init__(self, current_healthy=None, desired_healthy=None, disrupted_pods=No self.swagger_types = { 'current_healthy': 'int', 'desired_healthy': 'int', - 'disrupted_pods': 'dict(str, UnversionedTime)', + 'disrupted_pods': 'dict(str, V1Time)', 'disruptions_allowed': 'int', 'expected_pods': 'int', 'observed_generation': 'int' @@ -112,7 +112,7 @@ def disrupted_pods(self): DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. :return: The disrupted_pods of this V1beta1PodDisruptionBudgetStatus. - :rtype: dict(str, UnversionedTime) + :rtype: dict(str, V1Time) """ return self._disrupted_pods @@ -123,7 +123,7 @@ def disrupted_pods(self, disrupted_pods): DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. :param disrupted_pods: The disrupted_pods of this V1beta1PodDisruptionBudgetStatus. - :type: dict(str, UnversionedTime) + :type: dict(str, V1Time) """ if disrupted_pods is None: raise ValueError("Invalid value for `disrupted_pods`, must not be `None`") diff --git a/kubernetes/client/models/v1beta1_pod_security_policy.py b/kubernetes/client/models/v1beta1_pod_security_policy.py new file mode 100644 index 0000000000..3ec5a1031a --- /dev/null +++ b/kubernetes/client/models/v1beta1_pod_security_policy.py @@ -0,0 +1,192 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1PodSecurityPolicy(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, metadata=None, spec=None): + """ + V1beta1PodSecurityPolicy - 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', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1beta1PodSecurityPolicySpec' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._spec = spec + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1PodSecurityPolicy. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1PodSecurityPolicy. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1PodSecurityPolicy. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1PodSecurityPolicy. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1beta1PodSecurityPolicy. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1PodSecurityPolicy. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1PodSecurityPolicy. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1PodSecurityPolicy. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1PodSecurityPolicy. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1PodSecurityPolicy. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1PodSecurityPolicy. + Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1PodSecurityPolicy. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1PodSecurityPolicy. + spec defines the policy enforced. + + :return: The spec of this V1beta1PodSecurityPolicy. + :rtype: V1beta1PodSecurityPolicySpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1PodSecurityPolicy. + spec defines the policy enforced. + + :param spec: The spec of this V1beta1PodSecurityPolicy. + :type: V1beta1PodSecurityPolicySpec + """ + + 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/kubernetes/client/models/v1beta1_pod_security_policy_list.py b/kubernetes/client/models/v1beta1_pod_security_policy_list.py new file mode 100644 index 0000000000..0523aec61c --- /dev/null +++ b/kubernetes/client/models/v1beta1_pod_security_policy_list.py @@ -0,0 +1,194 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1PodSecurityPolicyList(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, items=None, kind=None, metadata=None): + """ + V1beta1PodSecurityPolicyList - 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', + 'items': 'list[V1beta1PodSecurityPolicy]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1PodSecurityPolicyList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1PodSecurityPolicyList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1PodSecurityPolicyList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1PodSecurityPolicyList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1PodSecurityPolicyList. + Items is a list of schema objects. + + :return: The items of this V1beta1PodSecurityPolicyList. + :rtype: list[V1beta1PodSecurityPolicy] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1PodSecurityPolicyList. + Items is a list of schema objects. + + :param items: The items of this V1beta1PodSecurityPolicyList. + :type: list[V1beta1PodSecurityPolicy] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1beta1PodSecurityPolicyList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1PodSecurityPolicyList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1PodSecurityPolicyList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1PodSecurityPolicyList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1PodSecurityPolicyList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :return: The metadata of this V1beta1PodSecurityPolicyList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1PodSecurityPolicyList. + Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + + :param metadata: The metadata of this V1beta1PodSecurityPolicyList. + :type: V1ListMeta + """ + + 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/kubernetes/client/models/v1beta1_pod_security_policy_spec.py b/kubernetes/client/models/v1beta1_pod_security_policy_spec.py new file mode 100644 index 0000000000..158b922d46 --- /dev/null +++ b/kubernetes/client/models/v1beta1_pod_security_policy_spec.py @@ -0,0 +1,460 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1PodSecurityPolicySpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, allowed_capabilities=None, default_add_capabilities=None, fs_group=None, host_ipc=None, host_network=None, host_pid=None, host_ports=None, privileged=None, read_only_root_filesystem=None, required_drop_capabilities=None, run_as_user=None, se_linux=None, supplemental_groups=None, volumes=None): + """ + V1beta1PodSecurityPolicySpec - 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_capabilities': 'list[str]', + 'default_add_capabilities': 'list[str]', + 'fs_group': 'V1beta1FSGroupStrategyOptions', + 'host_ipc': 'bool', + 'host_network': 'bool', + 'host_pid': 'bool', + 'host_ports': 'list[V1beta1HostPortRange]', + 'privileged': 'bool', + 'read_only_root_filesystem': 'bool', + 'required_drop_capabilities': 'list[str]', + 'run_as_user': 'V1beta1RunAsUserStrategyOptions', + 'se_linux': 'V1beta1SELinuxStrategyOptions', + 'supplemental_groups': 'V1beta1SupplementalGroupsStrategyOptions', + 'volumes': 'list[str]' + } + + self.attribute_map = { + 'allowed_capabilities': 'allowedCapabilities', + 'default_add_capabilities': 'defaultAddCapabilities', + 'fs_group': 'fsGroup', + 'host_ipc': 'hostIPC', + 'host_network': 'hostNetwork', + 'host_pid': 'hostPID', + 'host_ports': 'hostPorts', + 'privileged': 'privileged', + 'read_only_root_filesystem': 'readOnlyRootFilesystem', + 'required_drop_capabilities': 'requiredDropCapabilities', + 'run_as_user': 'runAsUser', + 'se_linux': 'seLinux', + 'supplemental_groups': 'supplementalGroups', + 'volumes': 'volumes' + } + + self._allowed_capabilities = allowed_capabilities + self._default_add_capabilities = default_add_capabilities + self._fs_group = fs_group + self._host_ipc = host_ipc + self._host_network = host_network + self._host_pid = host_pid + self._host_ports = host_ports + self._privileged = privileged + self._read_only_root_filesystem = read_only_root_filesystem + self._required_drop_capabilities = required_drop_capabilities + self._run_as_user = run_as_user + self._se_linux = se_linux + self._supplemental_groups = supplemental_groups + self._volumes = volumes + + @property + def allowed_capabilities(self): + """ + Gets the allowed_capabilities of this V1beta1PodSecurityPolicySpec. + AllowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities. + + :return: The allowed_capabilities of this V1beta1PodSecurityPolicySpec. + :rtype: list[str] + """ + return self._allowed_capabilities + + @allowed_capabilities.setter + def allowed_capabilities(self, allowed_capabilities): + """ + Sets the allowed_capabilities of this V1beta1PodSecurityPolicySpec. + AllowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities. + + :param allowed_capabilities: The allowed_capabilities of this V1beta1PodSecurityPolicySpec. + :type: list[str] + """ + + self._allowed_capabilities = allowed_capabilities + + @property + def default_add_capabilities(self): + """ + Gets the default_add_capabilities of this V1beta1PodSecurityPolicySpec. + DefaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities. + + :return: The default_add_capabilities of this V1beta1PodSecurityPolicySpec. + :rtype: list[str] + """ + return self._default_add_capabilities + + @default_add_capabilities.setter + def default_add_capabilities(self, default_add_capabilities): + """ + Sets the default_add_capabilities of this V1beta1PodSecurityPolicySpec. + DefaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities. + + :param default_add_capabilities: The default_add_capabilities of this V1beta1PodSecurityPolicySpec. + :type: list[str] + """ + + self._default_add_capabilities = default_add_capabilities + + @property + def fs_group(self): + """ + Gets the fs_group of this V1beta1PodSecurityPolicySpec. + FSGroup is the strategy that will dictate what fs group is used by the SecurityContext. + + :return: The fs_group of this V1beta1PodSecurityPolicySpec. + :rtype: V1beta1FSGroupStrategyOptions + """ + return self._fs_group + + @fs_group.setter + def fs_group(self, fs_group): + """ + Sets the fs_group of this V1beta1PodSecurityPolicySpec. + FSGroup is the strategy that will dictate what fs group is used by the SecurityContext. + + :param fs_group: The fs_group of this V1beta1PodSecurityPolicySpec. + :type: V1beta1FSGroupStrategyOptions + """ + if fs_group is None: + raise ValueError("Invalid value for `fs_group`, must not be `None`") + + self._fs_group = fs_group + + @property + def host_ipc(self): + """ + Gets the host_ipc of this V1beta1PodSecurityPolicySpec. + hostIPC determines if the policy allows the use of HostIPC in the pod spec. + + :return: The host_ipc of this V1beta1PodSecurityPolicySpec. + :rtype: bool + """ + return self._host_ipc + + @host_ipc.setter + def host_ipc(self, host_ipc): + """ + Sets the host_ipc of this V1beta1PodSecurityPolicySpec. + hostIPC determines if the policy allows the use of HostIPC in the pod spec. + + :param host_ipc: The host_ipc of this V1beta1PodSecurityPolicySpec. + :type: bool + """ + + self._host_ipc = host_ipc + + @property + def host_network(self): + """ + Gets the host_network of this V1beta1PodSecurityPolicySpec. + hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + + :return: The host_network of this V1beta1PodSecurityPolicySpec. + :rtype: bool + """ + return self._host_network + + @host_network.setter + def host_network(self, host_network): + """ + Sets the host_network of this V1beta1PodSecurityPolicySpec. + hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + + :param host_network: The host_network of this V1beta1PodSecurityPolicySpec. + :type: bool + """ + + self._host_network = host_network + + @property + def host_pid(self): + """ + Gets the host_pid of this V1beta1PodSecurityPolicySpec. + hostPID determines if the policy allows the use of HostPID in the pod spec. + + :return: The host_pid of this V1beta1PodSecurityPolicySpec. + :rtype: bool + """ + return self._host_pid + + @host_pid.setter + def host_pid(self, host_pid): + """ + Sets the host_pid of this V1beta1PodSecurityPolicySpec. + hostPID determines if the policy allows the use of HostPID in the pod spec. + + :param host_pid: The host_pid of this V1beta1PodSecurityPolicySpec. + :type: bool + """ + + self._host_pid = host_pid + + @property + def host_ports(self): + """ + Gets the host_ports of this V1beta1PodSecurityPolicySpec. + hostPorts determines which host port ranges are allowed to be exposed. + + :return: The host_ports of this V1beta1PodSecurityPolicySpec. + :rtype: list[V1beta1HostPortRange] + """ + return self._host_ports + + @host_ports.setter + def host_ports(self, host_ports): + """ + Sets the host_ports of this V1beta1PodSecurityPolicySpec. + hostPorts determines which host port ranges are allowed to be exposed. + + :param host_ports: The host_ports of this V1beta1PodSecurityPolicySpec. + :type: list[V1beta1HostPortRange] + """ + + self._host_ports = host_ports + + @property + def privileged(self): + """ + Gets the privileged of this V1beta1PodSecurityPolicySpec. + privileged determines if a pod can request to be run as privileged. + + :return: The privileged of this V1beta1PodSecurityPolicySpec. + :rtype: bool + """ + return self._privileged + + @privileged.setter + def privileged(self, privileged): + """ + Sets the privileged of this V1beta1PodSecurityPolicySpec. + privileged determines if a pod can request to be run as privileged. + + :param privileged: The privileged of this V1beta1PodSecurityPolicySpec. + :type: bool + """ + + self._privileged = privileged + + @property + def read_only_root_filesystem(self): + """ + Gets the read_only_root_filesystem of this V1beta1PodSecurityPolicySpec. + ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + + :return: The read_only_root_filesystem of this V1beta1PodSecurityPolicySpec. + :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 V1beta1PodSecurityPolicySpec. + ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + + :param read_only_root_filesystem: The read_only_root_filesystem of this V1beta1PodSecurityPolicySpec. + :type: bool + """ + + self._read_only_root_filesystem = read_only_root_filesystem + + @property + def required_drop_capabilities(self): + """ + Gets the required_drop_capabilities of this V1beta1PodSecurityPolicySpec. + RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + + :return: The required_drop_capabilities of this V1beta1PodSecurityPolicySpec. + :rtype: list[str] + """ + return self._required_drop_capabilities + + @required_drop_capabilities.setter + def required_drop_capabilities(self, required_drop_capabilities): + """ + Sets the required_drop_capabilities of this V1beta1PodSecurityPolicySpec. + RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + + :param required_drop_capabilities: The required_drop_capabilities of this V1beta1PodSecurityPolicySpec. + :type: list[str] + """ + + self._required_drop_capabilities = required_drop_capabilities + + @property + def run_as_user(self): + """ + Gets the run_as_user of this V1beta1PodSecurityPolicySpec. + runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + + :return: The run_as_user of this V1beta1PodSecurityPolicySpec. + :rtype: V1beta1RunAsUserStrategyOptions + """ + return self._run_as_user + + @run_as_user.setter + def run_as_user(self, run_as_user): + """ + Sets the run_as_user of this V1beta1PodSecurityPolicySpec. + runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + + :param run_as_user: The run_as_user of this V1beta1PodSecurityPolicySpec. + :type: V1beta1RunAsUserStrategyOptions + """ + if run_as_user is None: + raise ValueError("Invalid value for `run_as_user`, must not be `None`") + + self._run_as_user = run_as_user + + @property + def se_linux(self): + """ + Gets the se_linux of this V1beta1PodSecurityPolicySpec. + seLinux is the strategy that will dictate the allowable labels that may be set. + + :return: The se_linux of this V1beta1PodSecurityPolicySpec. + :rtype: V1beta1SELinuxStrategyOptions + """ + return self._se_linux + + @se_linux.setter + def se_linux(self, se_linux): + """ + Sets the se_linux of this V1beta1PodSecurityPolicySpec. + seLinux is the strategy that will dictate the allowable labels that may be set. + + :param se_linux: The se_linux of this V1beta1PodSecurityPolicySpec. + :type: V1beta1SELinuxStrategyOptions + """ + if se_linux is None: + raise ValueError("Invalid value for `se_linux`, must not be `None`") + + self._se_linux = se_linux + + @property + def supplemental_groups(self): + """ + Gets the supplemental_groups of this V1beta1PodSecurityPolicySpec. + SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + + :return: The supplemental_groups of this V1beta1PodSecurityPolicySpec. + :rtype: V1beta1SupplementalGroupsStrategyOptions + """ + return self._supplemental_groups + + @supplemental_groups.setter + def supplemental_groups(self, supplemental_groups): + """ + Sets the supplemental_groups of this V1beta1PodSecurityPolicySpec. + SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + + :param supplemental_groups: The supplemental_groups of this V1beta1PodSecurityPolicySpec. + :type: V1beta1SupplementalGroupsStrategyOptions + """ + if supplemental_groups is None: + raise ValueError("Invalid value for `supplemental_groups`, must not be `None`") + + self._supplemental_groups = supplemental_groups + + @property + def volumes(self): + """ + Gets the volumes of this V1beta1PodSecurityPolicySpec. + volumes is a white list of allowed volume plugins. Empty indicates that all plugins may be used. + + :return: The volumes of this V1beta1PodSecurityPolicySpec. + :rtype: list[str] + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """ + Sets the volumes of this V1beta1PodSecurityPolicySpec. + volumes is a white list of allowed volume plugins. Empty indicates that all plugins may be used. + + :param volumes: The volumes of this V1beta1PodSecurityPolicySpec. + :type: list[str] + """ + + 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/kubernetes/client/models/v1beta1_policy_rule.py b/kubernetes/client/models/v1beta1_policy_rule.py new file mode 100644 index 0000000000..4a297922b0 --- /dev/null +++ b/kubernetes/client/models/v1beta1_policy_rule.py @@ -0,0 +1,220 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1PolicyRule(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, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): + """ + V1beta1PolicyRule - 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]', + 'non_resource_ur_ls': 'list[str]', + 'resource_names': 'list[str]', + 'resources': 'list[str]', + 'verbs': 'list[str]' + } + + self.attribute_map = { + 'api_groups': 'apiGroups', + 'non_resource_ur_ls': 'nonResourceURLs', + 'resource_names': 'resourceNames', + 'resources': 'resources', + 'verbs': 'verbs' + } + + self._api_groups = api_groups + 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 V1beta1PolicyRule. + 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 V1beta1PolicyRule. + :rtype: list[str] + """ + return self._api_groups + + @api_groups.setter + def api_groups(self, api_groups): + """ + Sets the api_groups of this V1beta1PolicyRule. + 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 V1beta1PolicyRule. + :type: list[str] + """ + + self._api_groups = api_groups + + @property + def non_resource_ur_ls(self): + """ + Gets the non_resource_ur_ls of this V1beta1PolicyRule. + 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 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 V1beta1PolicyRule. + :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 V1beta1PolicyRule. + 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 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 V1beta1PolicyRule. + :type: list[str] + """ + + self._non_resource_ur_ls = non_resource_ur_ls + + @property + def resource_names(self): + """ + Gets the resource_names of this V1beta1PolicyRule. + 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 V1beta1PolicyRule. + :rtype: list[str] + """ + return self._resource_names + + @resource_names.setter + def resource_names(self, resource_names): + """ + Sets the resource_names of this V1beta1PolicyRule. + 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 V1beta1PolicyRule. + :type: list[str] + """ + + self._resource_names = resource_names + + @property + def resources(self): + """ + Gets the resources of this V1beta1PolicyRule. + Resources is a list of resources this rule applies to. ResourceAll represents all resources. + + :return: The resources of this V1beta1PolicyRule. + :rtype: list[str] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1beta1PolicyRule. + Resources is a list of resources this rule applies to. ResourceAll represents all resources. + + :param resources: The resources of this V1beta1PolicyRule. + :type: list[str] + """ + + self._resources = resources + + @property + def verbs(self): + """ + Gets the verbs of this V1beta1PolicyRule. + 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 V1beta1PolicyRule. + :rtype: list[str] + """ + return self._verbs + + @verbs.setter + def verbs(self, verbs): + """ + Sets the verbs of this V1beta1PolicyRule. + 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 V1beta1PolicyRule. + :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/kubernetes/client/models/v1beta1_replica_set.py b/kubernetes/client/models/v1beta1_replica_set.py index 7033539bab..0b47da6e35 100644 --- a/kubernetes/client/models/v1beta1_replica_set.py +++ b/kubernetes/client/models/v1beta1_replica_set.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_replica_set_condition.py b/kubernetes/client/models/v1beta1_replica_set_condition.py index 6c53b3174b..3dbd4d0686 100644 --- a/kubernetes/client/models/v1beta1_replica_set_condition.py +++ b/kubernetes/client/models/v1beta1_replica_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,7 +31,7 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= and the value is json key in definition. """ self.swagger_types = { - 'last_transition_time': 'UnversionedTime', + 'last_transition_time': 'V1Time', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -59,7 +59,7 @@ def last_transition_time(self): The last time the condition transitioned from one status to another. :return: The last_transition_time of this V1beta1ReplicaSetCondition. - :rtype: UnversionedTime + :rtype: V1Time """ return self._last_transition_time @@ -70,7 +70,7 @@ def last_transition_time(self, last_transition_time): The last time the condition transitioned from one status to another. :param last_transition_time: The last_transition_time of this V1beta1ReplicaSetCondition. - :type: UnversionedTime + :type: V1Time """ self._last_transition_time = last_transition_time diff --git a/kubernetes/client/models/v1beta1_replica_set_list.py b/kubernetes/client/models/v1beta1_replica_set_list.py index 3445bf5dd8..5e4524a62c 100644 --- a/kubernetes/client/models/v1beta1_replica_set_list.py +++ b/kubernetes/client/models/v1beta1_replica_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1ReplicaSet]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): 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 + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_replica_set_spec.py b/kubernetes/client/models/v1beta1_replica_set_spec.py index 2fe4615398..12b8515a3a 100644 --- a/kubernetes/client/models/v1beta1_replica_set_spec.py +++ b/kubernetes/client/models/v1beta1_replica_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,7 +33,7 @@ def __init__(self, min_ready_seconds=None, replicas=None, selector=None, templat self.swagger_types = { 'min_ready_seconds': 'int', 'replicas': 'int', - 'selector': 'UnversionedLabelSelector', + 'selector': 'V1LabelSelector', 'template': 'V1PodTemplateSpec' } @@ -102,7 +102,7 @@ def selector(self): 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 + :rtype: V1LabelSelector """ return self._selector @@ -113,7 +113,7 @@ def selector(self, selector): 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 + :type: V1LabelSelector """ self._selector = selector diff --git a/kubernetes/client/models/v1beta1_replica_set_status.py b/kubernetes/client/models/v1beta1_replica_set_status.py index 1a40603b29..6460683e97 100644 --- a/kubernetes/client/models/v1beta1_replica_set_status.py +++ b/kubernetes/client/models/v1beta1_replica_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_resource_attributes.py b/kubernetes/client/models/v1beta1_resource_attributes.py index 464decfd75..ef4a7e8aa2 100644 --- a/kubernetes/client/models/v1beta1_resource_attributes.py +++ b/kubernetes/client/models/v1beta1_resource_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_role.py b/kubernetes/client/models/v1beta1_role.py new file mode 100644 index 0000000000..e294646514 --- /dev/null +++ b/kubernetes/client/models/v1beta1_role.py @@ -0,0 +1,194 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1Role(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, metadata=None, rules=None): + """ + V1beta1Role - 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', + 'metadata': 'V1ObjectMeta', + 'rules': 'list[V1beta1PolicyRule]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'rules': 'rules' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._rules = rules + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1Role. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1Role. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1Role. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1Role. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1beta1Role. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1Role. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1Role. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1Role. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1Role. + Standard object's metadata. + + :return: The metadata of this V1beta1Role. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1Role. + Standard object's metadata. + + :param metadata: The metadata of this V1beta1Role. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def rules(self): + """ + Gets the rules of this V1beta1Role. + Rules holds all the PolicyRules for this Role + + :return: The rules of this V1beta1Role. + :rtype: list[V1beta1PolicyRule] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """ + Sets the rules of this V1beta1Role. + Rules holds all the PolicyRules for this Role + + :param rules: The rules of this V1beta1Role. + :type: list[V1beta1PolicyRule] + """ + 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/kubernetes/client/models/v1beta1_role_binding.py b/kubernetes/client/models/v1beta1_role_binding.py new file mode 100644 index 0000000000..1503429cce --- /dev/null +++ b/kubernetes/client/models/v1beta1_role_binding.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1RoleBinding(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, metadata=None, role_ref=None, subjects=None): + """ + V1beta1RoleBinding - 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', + 'metadata': 'V1ObjectMeta', + 'role_ref': 'V1beta1RoleRef', + 'subjects': 'list[V1beta1Subject]' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'role_ref': 'roleRef', + 'subjects': 'subjects' + } + + self._api_version = api_version + self._kind = kind + self._metadata = metadata + self._role_ref = role_ref + self._subjects = subjects + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1RoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1RoleBinding. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1RoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1RoleBinding. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + Gets the kind of this V1beta1RoleBinding. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1RoleBinding. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1RoleBinding. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1RoleBinding. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1RoleBinding. + Standard object's metadata. + + :return: The metadata of this V1beta1RoleBinding. + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1RoleBinding. + Standard object's metadata. + + :param metadata: The metadata of this V1beta1RoleBinding. + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def role_ref(self): + """ + Gets the role_ref of this V1beta1RoleBinding. + 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 V1beta1RoleBinding. + :rtype: V1beta1RoleRef + """ + return self._role_ref + + @role_ref.setter + def role_ref(self, role_ref): + """ + Sets the role_ref of this V1beta1RoleBinding. + 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 V1beta1RoleBinding. + :type: V1beta1RoleRef + """ + 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 V1beta1RoleBinding. + Subjects holds references to the objects the role applies to. + + :return: The subjects of this V1beta1RoleBinding. + :rtype: list[V1beta1Subject] + """ + return self._subjects + + @subjects.setter + def subjects(self, subjects): + """ + Sets the subjects of this V1beta1RoleBinding. + Subjects holds references to the objects the role applies to. + + :param subjects: The subjects of this V1beta1RoleBinding. + :type: list[V1beta1Subject] + """ + 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/kubernetes/client/models/v1beta1_role_binding_list.py b/kubernetes/client/models/v1beta1_role_binding_list.py new file mode 100644 index 0000000000..b8ca0b2f50 --- /dev/null +++ b/kubernetes/client/models/v1beta1_role_binding_list.py @@ -0,0 +1,194 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1RoleBindingList(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, items=None, kind=None, metadata=None): + """ + V1beta1RoleBindingList - 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', + 'items': 'list[V1beta1RoleBinding]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + self.attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + self._api_version = api_version + self._items = items + self._kind = kind + self._metadata = metadata + + @property + def api_version(self): + """ + Gets the api_version of this V1beta1RoleBindingList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :return: The api_version of this V1beta1RoleBindingList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this V1beta1RoleBindingList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources + + :param api_version: The api_version of this V1beta1RoleBindingList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1RoleBindingList. + Items is a list of RoleBindings + + :return: The items of this V1beta1RoleBindingList. + :rtype: list[V1beta1RoleBinding] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1RoleBindingList. + Items is a list of RoleBindings + + :param items: The items of this V1beta1RoleBindingList. + :type: list[V1beta1RoleBinding] + """ + if items is None: + raise ValueError("Invalid value for `items`, must not be `None`") + + self._items = items + + @property + def kind(self): + """ + Gets the kind of this V1beta1RoleBindingList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :return: The kind of this V1beta1RoleBindingList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1RoleBindingList. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + + :param kind: The kind of this V1beta1RoleBindingList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1RoleBindingList. + Standard object's metadata. + + :return: The metadata of this V1beta1RoleBindingList. + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1RoleBindingList. + Standard object's metadata. + + :param metadata: The metadata of this V1beta1RoleBindingList. + :type: V1ListMeta + """ + + 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/kubernetes/client/models/v2alpha1_job_list.py b/kubernetes/client/models/v1beta1_role_list.py similarity index 75% rename from kubernetes/client/models/v2alpha1_job_list.py rename to kubernetes/client/models/v1beta1_role_list.py index 8ec10329ac..d146c7671e 100644 --- a/kubernetes/client/models/v2alpha1_job_list.py +++ b/kubernetes/client/models/v1beta1_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V2alpha1JobList(object): +class V1beta1RoleList(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, items=None, kind=None, metadata=None): """ - V2alpha1JobList - a model defined in Swagger + V1beta1RoleList - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -32,9 +32,9 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ self.swagger_types = { 'api_version': 'str', - 'items': 'list[V2alpha1Job]', + 'items': 'list[V1beta1Role]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -52,10 +52,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V2alpha1JobList. + Gets the api_version of this V1beta1RoleList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this V2alpha1JobList. + :return: The api_version of this V1beta1RoleList. :rtype: str """ return self._api_version @@ -63,10 +63,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V2alpha1JobList. + Sets the api_version of this V1beta1RoleList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this V2alpha1JobList. + :param api_version: The api_version of this V1beta1RoleList. :type: str """ @@ -75,22 +75,22 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V2alpha1JobList. - Items is the list of Job. + Gets the items of this V1beta1RoleList. + Items is a list of Roles - :return: The items of this V2alpha1JobList. - :rtype: list[V2alpha1Job] + :return: The items of this V1beta1RoleList. + :rtype: list[V1beta1Role] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V2alpha1JobList. - Items is the list of Job. + Sets the items of this V1beta1RoleList. + Items is a list of Roles - :param items: The items of this V2alpha1JobList. - :type: list[V2alpha1Job] + :param items: The items of this V1beta1RoleList. + :type: list[V1beta1Role] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -100,10 +100,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V2alpha1JobList. + Gets the kind of this V1beta1RoleList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this V2alpha1JobList. + :return: The kind of this V1beta1RoleList. :rtype: str """ return self._kind @@ -111,10 +111,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V2alpha1JobList. + Sets the kind of this V1beta1RoleList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this V2alpha1JobList. + :param kind: The kind of this V1beta1RoleList. :type: str """ @@ -123,22 +123,22 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V2alpha1JobList. - Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + Gets the metadata of this V1beta1RoleList. + Standard object's metadata. - :return: The metadata of this V2alpha1JobList. - :rtype: UnversionedListMeta + :return: The metadata of this V1beta1RoleList. + :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V2alpha1JobList. - Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + Sets the metadata of this V1beta1RoleList. + Standard object's metadata. - :param metadata: The metadata of this V2alpha1JobList. - :type: UnversionedListMeta + :param metadata: The metadata of this V1beta1RoleList. + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/unversioned_api_resource.py b/kubernetes/client/models/v1beta1_role_ref.py similarity index 62% rename from kubernetes/client/models/unversioned_api_resource.py rename to kubernetes/client/models/v1beta1_role_ref.py index ed51443bf7..42b0e53e7f 100644 --- a/kubernetes/client/models/unversioned_api_resource.py +++ b/kubernetes/client/models/v1beta1_role_ref.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class UnversionedAPIResource(object): +class V1beta1RoleRef(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): + def __init__(self, api_group=None, kind=None, name=None): """ - UnversionedAPIResource - a model defined in Swagger + V1beta1RoleRef - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -31,28 +31,53 @@ def __init__(self, kind=None, name=None, namespaced=None): and the value is json key in definition. """ self.swagger_types = { + 'api_group': 'str', 'kind': 'str', - 'name': 'str', - 'namespaced': 'bool' + 'name': 'str' } self.attribute_map = { + 'api_group': 'apiGroup', 'kind': 'kind', - 'name': 'name', - 'namespaced': 'namespaced' + 'name': 'name' } + self._api_group = api_group self._kind = kind self._name = name - self._namespaced = namespaced + + @property + def api_group(self): + """ + Gets the api_group of this V1beta1RoleRef. + APIGroup is the group for the resource being referenced + + :return: The api_group of this V1beta1RoleRef. + :rtype: str + """ + return self._api_group + + @api_group.setter + def api_group(self, api_group): + """ + Sets the api_group of this V1beta1RoleRef. + APIGroup is the group for the resource being referenced + + :param api_group: The api_group of this V1beta1RoleRef. + :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 UnversionedAPIResource. - kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + Gets the kind of this V1beta1RoleRef. + Kind is the type of resource being referenced - :return: The kind of this UnversionedAPIResource. + :return: The kind of this V1beta1RoleRef. :rtype: str """ return self._kind @@ -60,10 +85,10 @@ def kind(self): @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') + Sets the kind of this V1beta1RoleRef. + Kind is the type of resource being referenced - :param kind: The kind of this UnversionedAPIResource. + :param kind: The kind of this V1beta1RoleRef. :type: str """ if kind is None: @@ -74,10 +99,10 @@ def kind(self, kind): @property def name(self): """ - Gets the name of this UnversionedAPIResource. - name is the name of the resource. + Gets the name of this V1beta1RoleRef. + Name is the name of resource being referenced - :return: The name of this UnversionedAPIResource. + :return: The name of this V1beta1RoleRef. :rtype: str """ return self._name @@ -85,10 +110,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this UnversionedAPIResource. - name is the name of the resource. + Sets the name of this V1beta1RoleRef. + Name is the name of resource being referenced - :param name: The name of this UnversionedAPIResource. + :param name: The name of this V1beta1RoleRef. :type: str """ if name is None: @@ -96,31 +121,6 @@ def name(self, name): 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 diff --git a/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py b/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py new file mode 100644 index 0000000000..14156b4f19 --- /dev/null +++ b/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1RollingUpdateDaemonSet(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, max_unavailable=None): + """ + V1beta1RollingUpdateDaemonSet - 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_unavailable': 'IntstrIntOrString' + } + + self.attribute_map = { + 'max_unavailable': 'maxUnavailable' + } + + self._max_unavailable = max_unavailable + + @property + def max_unavailable(self): + """ + Gets the max_unavailable of this V1beta1RollingUpdateDaemonSet. + The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + + :return: The max_unavailable of this V1beta1RollingUpdateDaemonSet. + :rtype: IntstrIntOrString + """ + return self._max_unavailable + + @max_unavailable.setter + def max_unavailable(self, max_unavailable): + """ + Sets the max_unavailable of this V1beta1RollingUpdateDaemonSet. + The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + + :param max_unavailable: The max_unavailable of this V1beta1RollingUpdateDaemonSet. + :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/kubernetes/client/models/v1beta1_run_as_user_strategy_options.py b/kubernetes/client/models/v1beta1_run_as_user_strategy_options.py new file mode 100644 index 0000000000..c346f6ffe4 --- /dev/null +++ b/kubernetes/client/models/v1beta1_run_as_user_strategy_options.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1RunAsUserStrategyOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, ranges=None, rule=None): + """ + V1beta1RunAsUserStrategyOptions - 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 = { + 'ranges': 'list[V1beta1IDRange]', + 'rule': 'str' + } + + self.attribute_map = { + 'ranges': 'ranges', + 'rule': 'rule' + } + + self._ranges = ranges + self._rule = rule + + @property + def ranges(self): + """ + Gets the ranges of this V1beta1RunAsUserStrategyOptions. + Ranges are the allowed ranges of uids that may be used. + + :return: The ranges of this V1beta1RunAsUserStrategyOptions. + :rtype: list[V1beta1IDRange] + """ + return self._ranges + + @ranges.setter + def ranges(self, ranges): + """ + Sets the ranges of this V1beta1RunAsUserStrategyOptions. + Ranges are the allowed ranges of uids that may be used. + + :param ranges: The ranges of this V1beta1RunAsUserStrategyOptions. + :type: list[V1beta1IDRange] + """ + + self._ranges = ranges + + @property + def rule(self): + """ + Gets the rule of this V1beta1RunAsUserStrategyOptions. + Rule is the strategy that will dictate the allowable RunAsUser values that may be set. + + :return: The rule of this V1beta1RunAsUserStrategyOptions. + :rtype: str + """ + return self._rule + + @rule.setter + def rule(self, rule): + """ + Sets the rule of this V1beta1RunAsUserStrategyOptions. + Rule is the strategy that will dictate the allowable RunAsUser values that may be set. + + :param rule: The rule of this V1beta1RunAsUserStrategyOptions. + :type: str + """ + if rule is None: + raise ValueError("Invalid value for `rule`, must not be `None`") + + self._rule = rule + + 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/kubernetes/client/models/v1beta1_se_linux_strategy_options.py b/kubernetes/client/models/v1beta1_se_linux_strategy_options.py new file mode 100644 index 0000000000..2c1df12679 --- /dev/null +++ b/kubernetes/client/models/v1beta1_se_linux_strategy_options.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1SELinuxStrategyOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, rule=None, se_linux_options=None): + """ + V1beta1SELinuxStrategyOptions - 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 = { + 'rule': 'str', + 'se_linux_options': 'V1SELinuxOptions' + } + + self.attribute_map = { + 'rule': 'rule', + 'se_linux_options': 'seLinuxOptions' + } + + self._rule = rule + self._se_linux_options = se_linux_options + + @property + def rule(self): + """ + Gets the rule of this V1beta1SELinuxStrategyOptions. + type is the strategy that will dictate the allowable labels that may be set. + + :return: The rule of this V1beta1SELinuxStrategyOptions. + :rtype: str + """ + return self._rule + + @rule.setter + def rule(self, rule): + """ + Sets the rule of this V1beta1SELinuxStrategyOptions. + type is the strategy that will dictate the allowable labels that may be set. + + :param rule: The rule of this V1beta1SELinuxStrategyOptions. + :type: str + """ + if rule is None: + raise ValueError("Invalid value for `rule`, must not be `None`") + + self._rule = rule + + @property + def se_linux_options(self): + """ + Gets the se_linux_options of this V1beta1SELinuxStrategyOptions. + seLinuxOptions required to run as; required for MustRunAs More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context + + :return: The se_linux_options of this V1beta1SELinuxStrategyOptions. + :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 V1beta1SELinuxStrategyOptions. + seLinuxOptions required to run as; required for MustRunAs More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context + + :param se_linux_options: The se_linux_options of this V1beta1SELinuxStrategyOptions. + :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/kubernetes/client/models/v1beta1_self_subject_access_review.py b/kubernetes/client/models/v1beta1_self_subject_access_review.py index 40904d7b32..4573ff0c6e 100644 --- a/kubernetes/client/models/v1beta1_self_subject_access_review.py +++ b/kubernetes/client/models/v1beta1_self_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py b/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py index 5942b47971..b64e893b2f 100644 --- a/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py +++ b/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_stateful_set.py b/kubernetes/client/models/v1beta1_stateful_set.py index 123507f233..f65a03098b 100644 --- a/kubernetes/client/models/v1beta1_stateful_set.py +++ b/kubernetes/client/models/v1beta1_stateful_set.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_stateful_set_list.py b/kubernetes/client/models/v1beta1_stateful_set_list.py index 0aa8858ed0..812a39e621 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_list.py +++ b/kubernetes/client/models/v1beta1_stateful_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1StatefulSet]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -124,7 +124,7 @@ def metadata(self): Gets the metadata of this V1beta1StatefulSetList. :return: The metadata of this V1beta1StatefulSetList. - :rtype: UnversionedListMeta + :rtype: V1ListMeta """ return self._metadata @@ -134,7 +134,7 @@ def metadata(self, metadata): Sets the metadata of this V1beta1StatefulSetList. :param metadata: The metadata of this V1beta1StatefulSetList. - :type: UnversionedListMeta + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_stateful_set_spec.py b/kubernetes/client/models/v1beta1_stateful_set_spec.py index 56ada9f278..bc8052d2f5 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_spec.py +++ b/kubernetes/client/models/v1beta1_stateful_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,7 +32,7 @@ def __init__(self, replicas=None, selector=None, service_name=None, template=Non """ self.swagger_types = { 'replicas': 'int', - 'selector': 'UnversionedLabelSelector', + 'selector': 'V1LabelSelector', 'service_name': 'str', 'template': 'V1PodTemplateSpec', 'volume_claim_templates': 'list[V1PersistentVolumeClaim]' @@ -82,7 +82,7 @@ def selector(self): 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 V1beta1StatefulSetSpec. - :rtype: UnversionedLabelSelector + :rtype: V1LabelSelector """ return self._selector @@ -93,7 +93,7 @@ def selector(self, selector): 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 V1beta1StatefulSetSpec. - :type: UnversionedLabelSelector + :type: V1LabelSelector """ self._selector = selector diff --git a/kubernetes/client/models/v1beta1_stateful_set_status.py b/kubernetes/client/models/v1beta1_stateful_set_status.py index 20c162d1fc..da304cc47e 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_status.py +++ b/kubernetes/client/models/v1beta1_stateful_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -47,7 +47,7 @@ def __init__(self, observed_generation=None, replicas=None): def observed_generation(self): """ Gets the observed_generation of this V1beta1StatefulSetStatus. - most recent generation observed by this autoscaler. + most recent generation observed by this StatefulSet. :return: The observed_generation of this V1beta1StatefulSetStatus. :rtype: int @@ -58,7 +58,7 @@ def observed_generation(self): def observed_generation(self, observed_generation): """ Sets the observed_generation of this V1beta1StatefulSetStatus. - most recent generation observed by this autoscaler. + most recent generation observed by this StatefulSet. :param observed_generation: The observed_generation of this V1beta1StatefulSetStatus. :type: int diff --git a/kubernetes/client/models/v1beta1_storage_class.py b/kubernetes/client/models/v1beta1_storage_class.py index 01637e11c7..55624c02ec 100644 --- a/kubernetes/client/models/v1beta1_storage_class.py +++ b/kubernetes/client/models/v1beta1_storage_class.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_storage_class_list.py b/kubernetes/client/models/v1beta1_storage_class_list.py index 2a3e583619..3534df3935 100644 --- a/kubernetes/client/models/v1beta1_storage_class_list.py +++ b/kubernetes/client/models/v1beta1_storage_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1StorageClass]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The metadata of this V1beta1StorageClassList. - :rtype: UnversionedListMeta + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): 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 + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_subject.py b/kubernetes/client/models/v1beta1_subject.py new file mode 100644 index 0000000000..66414fce0b --- /dev/null +++ b/kubernetes/client/models/v1beta1_subject.py @@ -0,0 +1,196 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1Subject(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, namespace=None): + """ + V1beta1Subject - 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', + 'namespace': 'str' + } + + self.attribute_map = { + 'api_group': 'apiGroup', + 'kind': 'kind', + 'name': 'name', + 'namespace': 'namespace' + } + + self._api_group = api_group + self._kind = kind + self._name = name + self._namespace = namespace + + @property + def api_group(self): + """ + Gets the api_group of this V1beta1Subject. + APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. + + :return: The api_group of this V1beta1Subject. + :rtype: str + """ + return self._api_group + + @api_group.setter + def api_group(self, api_group): + """ + Sets the api_group of this V1beta1Subject. + APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. + + :param api_group: The api_group of this V1beta1Subject. + :type: str + """ + + self._api_group = api_group + + @property + def kind(self): + """ + Gets the kind of this V1beta1Subject. + 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 V1beta1Subject. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this V1beta1Subject. + 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 V1beta1Subject. + :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 V1beta1Subject. + Name of the object being referenced. + + :return: The name of this V1beta1Subject. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1beta1Subject. + Name of the object being referenced. + + :param name: The name of this V1beta1Subject. + :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 V1beta1Subject. + 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 V1beta1Subject. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1beta1Subject. + 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 V1beta1Subject. + :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/kubernetes/client/models/v1beta1_subject_access_review.py b/kubernetes/client/models/v1beta1_subject_access_review.py index 858eb3cd6c..40beb30d8d 100644 --- a/kubernetes/client/models/v1beta1_subject_access_review.py +++ b/kubernetes/client/models/v1beta1_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_subject_access_review_spec.py b/kubernetes/client/models/v1beta1_subject_access_review_spec.py index a877c4ad02..1bf8b70628 100644 --- a/kubernetes/client/models/v1beta1_subject_access_review_spec.py +++ b/kubernetes/client/models/v1beta1_subject_access_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_subject_access_review_status.py b/kubernetes/client/models/v1beta1_subject_access_review_status.py index 956553f949..705c11b264 100644 --- a/kubernetes/client/models/v1beta1_subject_access_review_status.py +++ b/kubernetes/client/models/v1beta1_subject_access_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_supplemental_groups_strategy_options.py b/kubernetes/client/models/v1beta1_supplemental_groups_strategy_options.py new file mode 100644 index 0000000000..519857b7e2 --- /dev/null +++ b/kubernetes/client/models/v1beta1_supplemental_groups_strategy_options.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1SupplementalGroupsStrategyOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, ranges=None, rule=None): + """ + V1beta1SupplementalGroupsStrategyOptions - 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 = { + 'ranges': 'list[V1beta1IDRange]', + 'rule': 'str' + } + + self.attribute_map = { + 'ranges': 'ranges', + 'rule': 'rule' + } + + self._ranges = ranges + self._rule = rule + + @property + def ranges(self): + """ + Gets the ranges of this V1beta1SupplementalGroupsStrategyOptions. + Ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. + + :return: The ranges of this V1beta1SupplementalGroupsStrategyOptions. + :rtype: list[V1beta1IDRange] + """ + return self._ranges + + @ranges.setter + def ranges(self, ranges): + """ + Sets the ranges of this V1beta1SupplementalGroupsStrategyOptions. + Ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. + + :param ranges: The ranges of this V1beta1SupplementalGroupsStrategyOptions. + :type: list[V1beta1IDRange] + """ + + self._ranges = ranges + + @property + def rule(self): + """ + Gets the rule of this V1beta1SupplementalGroupsStrategyOptions. + Rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + + :return: The rule of this V1beta1SupplementalGroupsStrategyOptions. + :rtype: str + """ + return self._rule + + @rule.setter + def rule(self, rule): + """ + Sets the rule of this V1beta1SupplementalGroupsStrategyOptions. + Rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + + :param rule: The rule of this V1beta1SupplementalGroupsStrategyOptions. + :type: str + """ + + self._rule = rule + + 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/kubernetes/client/models/v1beta1_third_party_resource.py b/kubernetes/client/models/v1beta1_third_party_resource.py index 20c2ac25cc..9eb7f68490 100644 --- a/kubernetes/client/models/v1beta1_third_party_resource.py +++ b/kubernetes/client/models/v1beta1_third_party_resource.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_third_party_resource_list.py b/kubernetes/client/models/v1beta1_third_party_resource_list.py index 744bb1f8f7..9aa63b87be 100644 --- a/kubernetes/client/models/v1beta1_third_party_resource_list.py +++ b/kubernetes/client/models/v1beta1_third_party_resource_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V1beta1ThirdPartyResource]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata. :return: The metadata of this V1beta1ThirdPartyResourceList. - :rtype: UnversionedListMeta + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata. :param metadata: The metadata of this V1beta1ThirdPartyResourceList. - :type: UnversionedListMeta + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v1beta1_token_review.py b/kubernetes/client/models/v1beta1_token_review.py index 49353a806a..35f78432aa 100644 --- a/kubernetes/client/models/v1beta1_token_review.py +++ b/kubernetes/client/models/v1beta1_token_review.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_token_review_spec.py b/kubernetes/client/models/v1beta1_token_review_spec.py index ce5c564374..0f32a6a28d 100644 --- a/kubernetes/client/models/v1beta1_token_review_spec.py +++ b/kubernetes/client/models/v1beta1_token_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_token_review_status.py b/kubernetes/client/models/v1beta1_token_review_status.py index 275cb3d7d6..7174f3f31a 100644 --- a/kubernetes/client/models/v1beta1_token_review_status.py +++ b/kubernetes/client/models/v1beta1_token_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v1beta1_user_info.py b/kubernetes/client/models/v1beta1_user_info.py index 6935cff902..8e10ab61b0 100644 --- a/kubernetes/client/models/v1beta1_user_info.py +++ b/kubernetes/client/models/v1beta1_user_info.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v2alpha1_cron_job.py b/kubernetes/client/models/v2alpha1_cron_job.py index 1e38be772a..0f218e8131 100644 --- a/kubernetes/client/models/v2alpha1_cron_job.py +++ b/kubernetes/client/models/v2alpha1_cron_job.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/client/models/v2alpha1_cron_job_list.py b/kubernetes/client/models/v2alpha1_cron_job_list.py index 9cc7093aeb..12576991a4 100644 --- a/kubernetes/client/models/v2alpha1_cron_job_list.py +++ b/kubernetes/client/models/v2alpha1_cron_job_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): 'api_version': 'str', 'items': 'list[V2alpha1CronJob]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -127,7 +127,7 @@ def metadata(self): Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The metadata of this V2alpha1CronJobList. - :rtype: UnversionedListMeta + :rtype: V1ListMeta """ return self._metadata @@ -138,7 +138,7 @@ def metadata(self, metadata): Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :param metadata: The metadata of this V2alpha1CronJobList. - :type: UnversionedListMeta + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v2alpha1_cron_job_spec.py b/kubernetes/client/models/v2alpha1_cron_job_spec.py index 6ab4e1916e..f2745c79ea 100644 --- a/kubernetes/client/models/v2alpha1_cron_job_spec.py +++ b/kubernetes/client/models/v2alpha1_cron_job_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -21,7 +21,7 @@ class V2alpha1CronJobSpec(object): NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - def __init__(self, concurrency_policy=None, job_template=None, schedule=None, starting_deadline_seconds=None, suspend=None): + def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_template=None, schedule=None, starting_deadline_seconds=None, successful_jobs_history_limit=None, suspend=None): """ V2alpha1CronJobSpec - a model defined in Swagger @@ -32,24 +32,30 @@ def __init__(self, concurrency_policy=None, job_template=None, schedule=None, st """ self.swagger_types = { 'concurrency_policy': 'str', + 'failed_jobs_history_limit': 'int', 'job_template': 'V2alpha1JobTemplateSpec', 'schedule': 'str', 'starting_deadline_seconds': 'int', + 'successful_jobs_history_limit': 'int', 'suspend': 'bool' } self.attribute_map = { 'concurrency_policy': 'concurrencyPolicy', + 'failed_jobs_history_limit': 'failedJobsHistoryLimit', 'job_template': 'jobTemplate', 'schedule': 'schedule', 'starting_deadline_seconds': 'startingDeadlineSeconds', + 'successful_jobs_history_limit': 'successfulJobsHistoryLimit', 'suspend': 'suspend' } self._concurrency_policy = concurrency_policy + self._failed_jobs_history_limit = failed_jobs_history_limit self._job_template = job_template self._schedule = schedule self._starting_deadline_seconds = starting_deadline_seconds + self._successful_jobs_history_limit = successful_jobs_history_limit self._suspend = suspend @property @@ -75,6 +81,29 @@ def concurrency_policy(self, concurrency_policy): self._concurrency_policy = concurrency_policy + @property + def failed_jobs_history_limit(self): + """ + Gets the failed_jobs_history_limit of this V2alpha1CronJobSpec. + The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + + :return: The failed_jobs_history_limit of this V2alpha1CronJobSpec. + :rtype: int + """ + return self._failed_jobs_history_limit + + @failed_jobs_history_limit.setter + def failed_jobs_history_limit(self, failed_jobs_history_limit): + """ + Sets the failed_jobs_history_limit of this V2alpha1CronJobSpec. + The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + + :param failed_jobs_history_limit: The failed_jobs_history_limit of this V2alpha1CronJobSpec. + :type: int + """ + + self._failed_jobs_history_limit = failed_jobs_history_limit + @property def job_template(self): """ @@ -148,6 +177,29 @@ def starting_deadline_seconds(self, starting_deadline_seconds): self._starting_deadline_seconds = starting_deadline_seconds + @property + def successful_jobs_history_limit(self): + """ + Gets the successful_jobs_history_limit of this V2alpha1CronJobSpec. + The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + + :return: The successful_jobs_history_limit of this V2alpha1CronJobSpec. + :rtype: int + """ + return self._successful_jobs_history_limit + + @successful_jobs_history_limit.setter + def successful_jobs_history_limit(self, successful_jobs_history_limit): + """ + Sets the successful_jobs_history_limit of this V2alpha1CronJobSpec. + The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + + :param successful_jobs_history_limit: The successful_jobs_history_limit of this V2alpha1CronJobSpec. + :type: int + """ + + self._successful_jobs_history_limit = successful_jobs_history_limit + @property def suspend(self): """ diff --git a/kubernetes/client/models/v2alpha1_cron_job_status.py b/kubernetes/client/models/v2alpha1_cron_job_status.py index 117c39e7e9..05995f8e85 100644 --- a/kubernetes/client/models/v2alpha1_cron_job_status.py +++ b/kubernetes/client/models/v2alpha1_cron_job_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,7 +32,7 @@ def __init__(self, active=None, last_schedule_time=None): """ self.swagger_types = { 'active': 'list[V1ObjectReference]', - 'last_schedule_time': 'UnversionedTime' + 'last_schedule_time': 'V1Time' } self.attribute_map = { @@ -73,7 +73,7 @@ def last_schedule_time(self): LastScheduleTime keeps information of when was the last time the job was successfully scheduled. :return: The last_schedule_time of this V2alpha1CronJobStatus. - :rtype: UnversionedTime + :rtype: V1Time """ return self._last_schedule_time @@ -84,7 +84,7 @@ def last_schedule_time(self, last_schedule_time): LastScheduleTime keeps information of when was the last time the job was successfully scheduled. :param last_schedule_time: The last_schedule_time of this V2alpha1CronJobStatus. - :type: UnversionedTime + :type: V1Time """ self._last_schedule_time = last_schedule_time diff --git a/kubernetes/client/models/v1beta1_subresource_reference.py b/kubernetes/client/models/v2alpha1_cross_version_object_reference.py similarity index 64% rename from kubernetes/client/models/v1beta1_subresource_reference.py rename to kubernetes/client/models/v2alpha1_cross_version_object_reference.py index 43d2e04965..9bf180ead6 100644 --- a/kubernetes/client/models/v1beta1_subresource_reference.py +++ b/kubernetes/client/models/v2alpha1_cross_version_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1SubresourceReference(object): +class V2alpha1CrossVersionObjectReference(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): + def __init__(self, api_version=None, kind=None, name=None): """ - V1beta1SubresourceReference - a model defined in Swagger + V2alpha1CrossVersionObjectReference - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -33,29 +33,26 @@ def __init__(self, api_version=None, kind=None, name=None, subresource=None): self.swagger_types = { 'api_version': 'str', 'kind': 'str', - 'name': 'str', - 'subresource': 'str' + 'name': 'str' } self.attribute_map = { 'api_version': 'apiVersion', 'kind': 'kind', - 'name': 'name', - 'subresource': 'subresource' + 'name': 'name' } 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. + Gets the api_version of this V2alpha1CrossVersionObjectReference. API version of the referent - :return: The api_version of this V1beta1SubresourceReference. + :return: The api_version of this V2alpha1CrossVersionObjectReference. :rtype: str """ return self._api_version @@ -63,10 +60,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1beta1SubresourceReference. + Sets the api_version of this V2alpha1CrossVersionObjectReference. API version of the referent - :param api_version: The api_version of this V1beta1SubresourceReference. + :param api_version: The api_version of this V2alpha1CrossVersionObjectReference. :type: str """ @@ -75,10 +72,10 @@ def api_version(self, 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 + Gets the kind of this V2alpha1CrossVersionObjectReference. + Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\" - :return: The kind of this V1beta1SubresourceReference. + :return: The kind of this V2alpha1CrossVersionObjectReference. :rtype: str """ return self._kind @@ -86,22 +83,24 @@ def kind(self): @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 + Sets the kind of this V2alpha1CrossVersionObjectReference. + 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. + :param kind: The kind of this V2alpha1CrossVersionObjectReference. :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 V1beta1SubresourceReference. + Gets the name of this V2alpha1CrossVersionObjectReference. Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - :return: The name of this V1beta1SubresourceReference. + :return: The name of this V2alpha1CrossVersionObjectReference. :rtype: str """ return self._name @@ -109,38 +108,17 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1beta1SubresourceReference. + Sets the name of this V2alpha1CrossVersionObjectReference. Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - :param name: The name of this V1beta1SubresourceReference. + :param name: The name of this V2alpha1CrossVersionObjectReference. :type: str """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") 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 diff --git a/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler.py b/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler.py similarity index 66% rename from kubernetes/client/models/v1beta1_horizontal_pod_autoscaler.py rename to kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler.py index 9287720d31..3d05831da6 100644 --- a/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler.py +++ b/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1HorizontalPodAutoscaler(object): +class V2alpha1HorizontalPodAutoscaler(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, metadata=None, spec=None, status=None): """ - V1beta1HorizontalPodAutoscaler - a model defined in Swagger + V2alpha1HorizontalPodAutoscaler - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -34,8 +34,8 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', - 'spec': 'V1beta1HorizontalPodAutoscalerSpec', - 'status': 'V1beta1HorizontalPodAutoscalerStatus' + 'spec': 'V2alpha1HorizontalPodAutoscalerSpec', + 'status': 'V2alpha1HorizontalPodAutoscalerStatus' } self.attribute_map = { @@ -55,10 +55,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1beta1HorizontalPodAutoscaler. + Gets the api_version of this V2alpha1HorizontalPodAutoscaler. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this V1beta1HorizontalPodAutoscaler. + :return: The api_version of this V2alpha1HorizontalPodAutoscaler. :rtype: str """ return self._api_version @@ -66,10 +66,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1beta1HorizontalPodAutoscaler. + Sets the api_version of this V2alpha1HorizontalPodAutoscaler. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this V1beta1HorizontalPodAutoscaler. + :param api_version: The api_version of this V2alpha1HorizontalPodAutoscaler. :type: str """ @@ -78,10 +78,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1beta1HorizontalPodAutoscaler. + Gets the kind of this V2alpha1HorizontalPodAutoscaler. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this V1beta1HorizontalPodAutoscaler. + :return: The kind of this V2alpha1HorizontalPodAutoscaler. :rtype: str """ return self._kind @@ -89,10 +89,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1beta1HorizontalPodAutoscaler. + Sets the kind of this V2alpha1HorizontalPodAutoscaler. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1beta1HorizontalPodAutoscaler. + :param kind: The kind of this V2alpha1HorizontalPodAutoscaler. :type: str """ @@ -101,10 +101,10 @@ def kind(self, kind): @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 + Gets the metadata of this V2alpha1HorizontalPodAutoscaler. + metadata is the standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - :return: The metadata of this V1beta1HorizontalPodAutoscaler. + :return: The metadata of this V2alpha1HorizontalPodAutoscaler. :rtype: V1ObjectMeta """ return self._metadata @@ -112,10 +112,10 @@ def metadata(self): @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 + Sets the metadata of this V2alpha1HorizontalPodAutoscaler. + metadata is the standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - :param metadata: The metadata of this V1beta1HorizontalPodAutoscaler. + :param metadata: The metadata of this V2alpha1HorizontalPodAutoscaler. :type: V1ObjectMeta """ @@ -124,22 +124,22 @@ def metadata(self, 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. + Gets the spec of this V2alpha1HorizontalPodAutoscaler. + spec is the specification for the behaviour of the 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: The spec of this V2alpha1HorizontalPodAutoscaler. + :rtype: V2alpha1HorizontalPodAutoscalerSpec """ 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. + Sets the spec of this V2alpha1HorizontalPodAutoscaler. + spec is the specification for the behaviour of the 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 + :param spec: The spec of this V2alpha1HorizontalPodAutoscaler. + :type: V2alpha1HorizontalPodAutoscalerSpec """ self._spec = spec @@ -147,22 +147,22 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1beta1HorizontalPodAutoscaler. - current information about the autoscaler. + Gets the status of this V2alpha1HorizontalPodAutoscaler. + status is the current information about the autoscaler. - :return: The status of this V1beta1HorizontalPodAutoscaler. - :rtype: V1beta1HorizontalPodAutoscalerStatus + :return: The status of this V2alpha1HorizontalPodAutoscaler. + :rtype: V2alpha1HorizontalPodAutoscalerStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V1beta1HorizontalPodAutoscaler. - current information about the autoscaler. + Sets the status of this V2alpha1HorizontalPodAutoscaler. + status is the current information about the autoscaler. - :param status: The status of this V1beta1HorizontalPodAutoscaler. - :type: V1beta1HorizontalPodAutoscalerStatus + :param status: The status of this V2alpha1HorizontalPodAutoscaler. + :type: V2alpha1HorizontalPodAutoscalerStatus """ self._status = status diff --git a/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_list.py b/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_list.py similarity index 72% rename from kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_list.py rename to kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_list.py index cf269fb9dc..12fd84a3e2 100644 --- a/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_list.py +++ b/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1HorizontalPodAutoscalerList(object): +class V2alpha1HorizontalPodAutoscalerList(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, items=None, kind=None, metadata=None): """ - V1beta1HorizontalPodAutoscalerList - a model defined in Swagger + V2alpha1HorizontalPodAutoscalerList - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -32,9 +32,9 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ self.swagger_types = { 'api_version': 'str', - 'items': 'list[V1beta1HorizontalPodAutoscaler]', + 'items': 'list[V2alpha1HorizontalPodAutoscaler]', 'kind': 'str', - 'metadata': 'UnversionedListMeta' + 'metadata': 'V1ListMeta' } self.attribute_map = { @@ -52,10 +52,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1beta1HorizontalPodAutoscalerList. + Gets the api_version of this V2alpha1HorizontalPodAutoscalerList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :return: The api_version of this V1beta1HorizontalPodAutoscalerList. + :return: The api_version of this V2alpha1HorizontalPodAutoscalerList. :rtype: str """ return self._api_version @@ -63,10 +63,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1beta1HorizontalPodAutoscalerList. + Sets the api_version of this V2alpha1HorizontalPodAutoscalerList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - :param api_version: The api_version of this V1beta1HorizontalPodAutoscalerList. + :param api_version: The api_version of this V2alpha1HorizontalPodAutoscalerList. :type: str """ @@ -75,22 +75,22 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1beta1HorizontalPodAutoscalerList. - list of horizontal pod autoscaler objects. + Gets the items of this V2alpha1HorizontalPodAutoscalerList. + items is the list of horizontal pod autoscaler objects. - :return: The items of this V1beta1HorizontalPodAutoscalerList. - :rtype: list[V1beta1HorizontalPodAutoscaler] + :return: The items of this V2alpha1HorizontalPodAutoscalerList. + :rtype: list[V2alpha1HorizontalPodAutoscaler] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1beta1HorizontalPodAutoscalerList. - list of horizontal pod autoscaler objects. + Sets the items of this V2alpha1HorizontalPodAutoscalerList. + items is the list of horizontal pod autoscaler objects. - :param items: The items of this V1beta1HorizontalPodAutoscalerList. - :type: list[V1beta1HorizontalPodAutoscaler] + :param items: The items of this V2alpha1HorizontalPodAutoscalerList. + :type: list[V2alpha1HorizontalPodAutoscaler] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -100,10 +100,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1beta1HorizontalPodAutoscalerList. + Gets the kind of this V2alpha1HorizontalPodAutoscalerList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :return: The kind of this V1beta1HorizontalPodAutoscalerList. + :return: The kind of this V2alpha1HorizontalPodAutoscalerList. :rtype: str """ return self._kind @@ -111,10 +111,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1beta1HorizontalPodAutoscalerList. + Sets the kind of this V2alpha1HorizontalPodAutoscalerList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - :param kind: The kind of this V1beta1HorizontalPodAutoscalerList. + :param kind: The kind of this V2alpha1HorizontalPodAutoscalerList. :type: str """ @@ -123,22 +123,22 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1beta1HorizontalPodAutoscalerList. - Standard list metadata. + Gets the metadata of this V2alpha1HorizontalPodAutoscalerList. + metadata is the standard list metadata. - :return: The metadata of this V1beta1HorizontalPodAutoscalerList. - :rtype: UnversionedListMeta + :return: The metadata of this V2alpha1HorizontalPodAutoscalerList. + :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1beta1HorizontalPodAutoscalerList. - Standard list metadata. + Sets the metadata of this V2alpha1HorizontalPodAutoscalerList. + metadata is the standard list metadata. - :param metadata: The metadata of this V1beta1HorizontalPodAutoscalerList. - :type: UnversionedListMeta + :param metadata: The metadata of this V2alpha1HorizontalPodAutoscalerList. + :type: V1ListMeta """ self._metadata = metadata diff --git a/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_spec.py b/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_spec.py new file mode 100644 index 0000000000..3970c77699 --- /dev/null +++ b/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_spec.py @@ -0,0 +1,196 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V2alpha1HorizontalPodAutoscalerSpec(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, metrics=None, min_replicas=None, scale_target_ref=None): + """ + V2alpha1HorizontalPodAutoscalerSpec - 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', + 'metrics': 'list[V2alpha1MetricSpec]', + 'min_replicas': 'int', + 'scale_target_ref': 'V2alpha1CrossVersionObjectReference' + } + + self.attribute_map = { + 'max_replicas': 'maxReplicas', + 'metrics': 'metrics', + 'min_replicas': 'minReplicas', + 'scale_target_ref': 'scaleTargetRef' + } + + self._max_replicas = max_replicas + self._metrics = metrics + self._min_replicas = min_replicas + self._scale_target_ref = scale_target_ref + + @property + def max_replicas(self): + """ + Gets the max_replicas of this V2alpha1HorizontalPodAutoscalerSpec. + maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + + :return: The max_replicas of this V2alpha1HorizontalPodAutoscalerSpec. + :rtype: int + """ + return self._max_replicas + + @max_replicas.setter + def max_replicas(self, max_replicas): + """ + Sets the max_replicas of this V2alpha1HorizontalPodAutoscalerSpec. + maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + + :param max_replicas: The max_replicas of this V2alpha1HorizontalPodAutoscalerSpec. + :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 metrics(self): + """ + Gets the metrics of this V2alpha1HorizontalPodAutoscalerSpec. + metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. + + :return: The metrics of this V2alpha1HorizontalPodAutoscalerSpec. + :rtype: list[V2alpha1MetricSpec] + """ + return self._metrics + + @metrics.setter + def metrics(self, metrics): + """ + Sets the metrics of this V2alpha1HorizontalPodAutoscalerSpec. + metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. + + :param metrics: The metrics of this V2alpha1HorizontalPodAutoscalerSpec. + :type: list[V2alpha1MetricSpec] + """ + + self._metrics = metrics + + @property + def min_replicas(self): + """ + Gets the min_replicas of this V2alpha1HorizontalPodAutoscalerSpec. + minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. + + :return: The min_replicas of this V2alpha1HorizontalPodAutoscalerSpec. + :rtype: int + """ + return self._min_replicas + + @min_replicas.setter + def min_replicas(self, min_replicas): + """ + Sets the min_replicas of this V2alpha1HorizontalPodAutoscalerSpec. + minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. + + :param min_replicas: The min_replicas of this V2alpha1HorizontalPodAutoscalerSpec. + :type: int + """ + + self._min_replicas = min_replicas + + @property + def scale_target_ref(self): + """ + Gets the scale_target_ref of this V2alpha1HorizontalPodAutoscalerSpec. + scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + + :return: The scale_target_ref of this V2alpha1HorizontalPodAutoscalerSpec. + :rtype: V2alpha1CrossVersionObjectReference + """ + return self._scale_target_ref + + @scale_target_ref.setter + def scale_target_ref(self, scale_target_ref): + """ + Sets the scale_target_ref of this V2alpha1HorizontalPodAutoscalerSpec. + scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + + :param scale_target_ref: The scale_target_ref of this V2alpha1HorizontalPodAutoscalerSpec. + :type: V2alpha1CrossVersionObjectReference + """ + 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 + + 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/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_status.py similarity index 53% rename from kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_status.py rename to kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_status.py index 0b0ac7bd67..ff3f2780e5 100644 --- a/kubernetes/client/models/v1beta1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,14 +16,14 @@ import re -class V1beta1HorizontalPodAutoscalerStatus(object): +class V2alpha1HorizontalPodAutoscalerStatus(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): + def __init__(self, current_metrics=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None): """ - V1beta1HorizontalPodAutoscalerStatus - a model defined in Swagger + V2alpha1HorizontalPodAutoscalerStatus - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. @@ -31,57 +31,59 @@ def __init__(self, current_cpu_utilization_percentage=None, current_replicas=Non and the value is json key in definition. """ self.swagger_types = { - 'current_cpu_utilization_percentage': 'int', + 'current_metrics': 'list[V2alpha1MetricStatus]', 'current_replicas': 'int', 'desired_replicas': 'int', - 'last_scale_time': 'UnversionedTime', + 'last_scale_time': 'V1Time', 'observed_generation': 'int' } self.attribute_map = { - 'current_cpu_utilization_percentage': 'currentCPUUtilizationPercentage', + 'current_metrics': 'currentMetrics', 'current_replicas': 'currentReplicas', 'desired_replicas': 'desiredReplicas', 'last_scale_time': 'lastScaleTime', 'observed_generation': 'observedGeneration' } - self._current_cpu_utilization_percentage = current_cpu_utilization_percentage + self._current_metrics = current_metrics 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): + def current_metrics(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. + Gets the current_metrics of this V2alpha1HorizontalPodAutoscalerStatus. + currentMetrics is the last read state of the metrics used by this autoscaler. - :return: The current_cpu_utilization_percentage of this V1beta1HorizontalPodAutoscalerStatus. - :rtype: int + :return: The current_metrics of this V2alpha1HorizontalPodAutoscalerStatus. + :rtype: list[V2alpha1MetricStatus] """ - return self._current_cpu_utilization_percentage + return self._current_metrics - @current_cpu_utilization_percentage.setter - def current_cpu_utilization_percentage(self, current_cpu_utilization_percentage): + @current_metrics.setter + def current_metrics(self, current_metrics): """ - 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. + Sets the current_metrics of this V2alpha1HorizontalPodAutoscalerStatus. + currentMetrics is the last read state of the metrics used by this autoscaler. - :param current_cpu_utilization_percentage: The current_cpu_utilization_percentage of this V1beta1HorizontalPodAutoscalerStatus. - :type: int + :param current_metrics: The current_metrics of this V2alpha1HorizontalPodAutoscalerStatus. + :type: list[V2alpha1MetricStatus] """ + if current_metrics is None: + raise ValueError("Invalid value for `current_metrics`, must not be `None`") - self._current_cpu_utilization_percentage = current_cpu_utilization_percentage + self._current_metrics = current_metrics @property def current_replicas(self): """ - Gets the current_replicas of this V1beta1HorizontalPodAutoscalerStatus. - current number of replicas of pods managed by this autoscaler. + Gets the current_replicas of this V2alpha1HorizontalPodAutoscalerStatus. + currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. - :return: The current_replicas of this V1beta1HorizontalPodAutoscalerStatus. + :return: The current_replicas of this V2alpha1HorizontalPodAutoscalerStatus. :rtype: int """ return self._current_replicas @@ -89,10 +91,10 @@ def current_replicas(self): @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. + Sets the current_replicas of this V2alpha1HorizontalPodAutoscalerStatus. + currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. - :param current_replicas: The current_replicas of this V1beta1HorizontalPodAutoscalerStatus. + :param current_replicas: The current_replicas of this V2alpha1HorizontalPodAutoscalerStatus. :type: int """ if current_replicas is None: @@ -103,10 +105,10 @@ def current_replicas(self, current_replicas): @property def desired_replicas(self): """ - Gets the desired_replicas of this V1beta1HorizontalPodAutoscalerStatus. - desired number of replicas of pods managed by this autoscaler. + Gets the desired_replicas of this V2alpha1HorizontalPodAutoscalerStatus. + desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. - :return: The desired_replicas of this V1beta1HorizontalPodAutoscalerStatus. + :return: The desired_replicas of this V2alpha1HorizontalPodAutoscalerStatus. :rtype: int """ return self._desired_replicas @@ -114,10 +116,10 @@ def desired_replicas(self): @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. + Sets the desired_replicas of this V2alpha1HorizontalPodAutoscalerStatus. + desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. - :param desired_replicas: The desired_replicas of this V1beta1HorizontalPodAutoscalerStatus. + :param desired_replicas: The desired_replicas of this V2alpha1HorizontalPodAutoscalerStatus. :type: int """ if desired_replicas is None: @@ -128,22 +130,22 @@ def desired_replicas(self, 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. + Gets the last_scale_time of this V2alpha1HorizontalPodAutoscalerStatus. + lastScaleTime is the 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: The last_scale_time of this V2alpha1HorizontalPodAutoscalerStatus. + :rtype: V1Time """ 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. + Sets the last_scale_time of this V2alpha1HorizontalPodAutoscalerStatus. + lastScaleTime is the 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 + :param last_scale_time: The last_scale_time of this V2alpha1HorizontalPodAutoscalerStatus. + :type: V1Time """ self._last_scale_time = last_scale_time @@ -151,10 +153,10 @@ def last_scale_time(self, last_scale_time): @property def observed_generation(self): """ - Gets the observed_generation of this V1beta1HorizontalPodAutoscalerStatus. - most recent generation observed by this autoscaler. + Gets the observed_generation of this V2alpha1HorizontalPodAutoscalerStatus. + observedGeneration is the most recent generation observed by this autoscaler. - :return: The observed_generation of this V1beta1HorizontalPodAutoscalerStatus. + :return: The observed_generation of this V2alpha1HorizontalPodAutoscalerStatus. :rtype: int """ return self._observed_generation @@ -162,10 +164,10 @@ def observed_generation(self): @observed_generation.setter def observed_generation(self, observed_generation): """ - Sets the observed_generation of this V1beta1HorizontalPodAutoscalerStatus. - most recent generation observed by this autoscaler. + Sets the observed_generation of this V2alpha1HorizontalPodAutoscalerStatus. + observedGeneration is the most recent generation observed by this autoscaler. - :param observed_generation: The observed_generation of this V1beta1HorizontalPodAutoscalerStatus. + :param observed_generation: The observed_generation of this V2alpha1HorizontalPodAutoscalerStatus. :type: int """ diff --git a/kubernetes/client/models/v2alpha1_job_spec.py b/kubernetes/client/models/v2alpha1_job_spec.py deleted file mode 100644 index 4771459fc1..0000000000 --- a/kubernetes/client/models/v2alpha1_job_spec.py +++ /dev/null @@ -1,246 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1JobSpec(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): - """ - V2alpha1JobSpec - 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 V2alpha1JobSpec. - 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 V2alpha1JobSpec. - :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 V2alpha1JobSpec. - 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 V2alpha1JobSpec. - :type: int - """ - - self._active_deadline_seconds = active_deadline_seconds - - @property - def completions(self): - """ - Gets the completions of this V2alpha1JobSpec. - 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 V2alpha1JobSpec. - :rtype: int - """ - return self._completions - - @completions.setter - def completions(self, completions): - """ - Sets the completions of this V2alpha1JobSpec. - 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 V2alpha1JobSpec. - :type: int - """ - - self._completions = completions - - @property - def manual_selector(self): - """ - Gets the manual_selector of this V2alpha1JobSpec. - 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 V2alpha1JobSpec. - :rtype: bool - """ - return self._manual_selector - - @manual_selector.setter - def manual_selector(self, manual_selector): - """ - Sets the manual_selector of this V2alpha1JobSpec. - 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 V2alpha1JobSpec. - :type: bool - """ - - self._manual_selector = manual_selector - - @property - def parallelism(self): - """ - Gets the parallelism of this V2alpha1JobSpec. - 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 V2alpha1JobSpec. - :rtype: int - """ - return self._parallelism - - @parallelism.setter - def parallelism(self, parallelism): - """ - Sets the parallelism of this V2alpha1JobSpec. - 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 V2alpha1JobSpec. - :type: int - """ - - self._parallelism = parallelism - - @property - def selector(self): - """ - Gets the selector of this V2alpha1JobSpec. - 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 V2alpha1JobSpec. - :rtype: UnversionedLabelSelector - """ - return self._selector - - @selector.setter - def selector(self, selector): - """ - Sets the selector of this V2alpha1JobSpec. - 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 V2alpha1JobSpec. - :type: UnversionedLabelSelector - """ - - self._selector = selector - - @property - def template(self): - """ - Gets the template of this V2alpha1JobSpec. - 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 V2alpha1JobSpec. - :rtype: V1PodTemplateSpec - """ - return self._template - - @template.setter - def template(self, template): - """ - Sets the template of this V2alpha1JobSpec. - 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 V2alpha1JobSpec. - :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/kubernetes/client/models/v2alpha1_job_status.py b/kubernetes/client/models/v2alpha1_job_status.py deleted file mode 100644 index 6a12e0fa39..0000000000 --- a/kubernetes/client/models/v2alpha1_job_status.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2alpha1JobStatus(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): - """ - V2alpha1JobStatus - 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[V2alpha1JobCondition]', - '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 V2alpha1JobStatus. - Active is the number of actively running pods. - - :return: The active of this V2alpha1JobStatus. - :rtype: int - """ - return self._active - - @active.setter - def active(self, active): - """ - Sets the active of this V2alpha1JobStatus. - Active is the number of actively running pods. - - :param active: The active of this V2alpha1JobStatus. - :type: int - """ - - self._active = active - - @property - def completion_time(self): - """ - Gets the completion_time of this V2alpha1JobStatus. - 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 V2alpha1JobStatus. - :rtype: UnversionedTime - """ - return self._completion_time - - @completion_time.setter - def completion_time(self, completion_time): - """ - Sets the completion_time of this V2alpha1JobStatus. - 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 V2alpha1JobStatus. - :type: UnversionedTime - """ - - self._completion_time = completion_time - - @property - def conditions(self): - """ - Gets the conditions of this V2alpha1JobStatus. - 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 V2alpha1JobStatus. - :rtype: list[V2alpha1JobCondition] - """ - return self._conditions - - @conditions.setter - def conditions(self, conditions): - """ - Sets the conditions of this V2alpha1JobStatus. - 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 V2alpha1JobStatus. - :type: list[V2alpha1JobCondition] - """ - - self._conditions = conditions - - @property - def failed(self): - """ - Gets the failed of this V2alpha1JobStatus. - Failed is the number of pods which reached Phase Failed. - - :return: The failed of this V2alpha1JobStatus. - :rtype: int - """ - return self._failed - - @failed.setter - def failed(self, failed): - """ - Sets the failed of this V2alpha1JobStatus. - Failed is the number of pods which reached Phase Failed. - - :param failed: The failed of this V2alpha1JobStatus. - :type: int - """ - - self._failed = failed - - @property - def start_time(self): - """ - Gets the start_time of this V2alpha1JobStatus. - 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 V2alpha1JobStatus. - :rtype: UnversionedTime - """ - return self._start_time - - @start_time.setter - def start_time(self, start_time): - """ - Sets the start_time of this V2alpha1JobStatus. - 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 V2alpha1JobStatus. - :type: UnversionedTime - """ - - self._start_time = start_time - - @property - def succeeded(self): - """ - Gets the succeeded of this V2alpha1JobStatus. - Succeeded is the number of pods which reached Phase Succeeded. - - :return: The succeeded of this V2alpha1JobStatus. - :rtype: int - """ - return self._succeeded - - @succeeded.setter - def succeeded(self, succeeded): - """ - Sets the succeeded of this V2alpha1JobStatus. - Succeeded is the number of pods which reached Phase Succeeded. - - :param succeeded: The succeeded of this V2alpha1JobStatus. - :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/kubernetes/client/models/v2alpha1_job_template_spec.py b/kubernetes/client/models/v2alpha1_job_template_spec.py index f4b3000e4d..a359aa31d0 100644 --- a/kubernetes/client/models/v2alpha1_job_template_spec.py +++ b/kubernetes/client/models/v2alpha1_job_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,7 +32,7 @@ def __init__(self, metadata=None, spec=None): """ self.swagger_types = { 'metadata': 'V1ObjectMeta', - 'spec': 'V2alpha1JobSpec' + 'spec': 'V1JobSpec' } self.attribute_map = { @@ -73,7 +73,7 @@ def spec(self): Specification of the desired behavior of the job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status :return: The spec of this V2alpha1JobTemplateSpec. - :rtype: V2alpha1JobSpec + :rtype: V1JobSpec """ return self._spec @@ -84,7 +84,7 @@ def spec(self, spec): Specification of the desired behavior of the job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status :param spec: The spec of this V2alpha1JobTemplateSpec. - :type: V2alpha1JobSpec + :type: V1JobSpec """ self._spec = spec diff --git a/kubernetes/client/models/v2alpha1_metric_spec.py b/kubernetes/client/models/v2alpha1_metric_spec.py new file mode 100644 index 0000000000..e81a8cb4de --- /dev/null +++ b/kubernetes/client/models/v2alpha1_metric_spec.py @@ -0,0 +1,194 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V2alpha1MetricSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, object=None, pods=None, resource=None, type=None): + """ + V2alpha1MetricSpec - 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': 'V2alpha1ObjectMetricSource', + 'pods': 'V2alpha1PodsMetricSource', + 'resource': 'V2alpha1ResourceMetricSource', + 'type': 'str' + } + + self.attribute_map = { + 'object': 'object', + 'pods': 'pods', + 'resource': 'resource', + 'type': 'type' + } + + self._object = object + self._pods = pods + self._resource = resource + self._type = type + + @property + def object(self): + """ + Gets the object of this V2alpha1MetricSpec. + object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + + :return: The object of this V2alpha1MetricSpec. + :rtype: V2alpha1ObjectMetricSource + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this V2alpha1MetricSpec. + object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + + :param object: The object of this V2alpha1MetricSpec. + :type: V2alpha1ObjectMetricSource + """ + + self._object = object + + @property + def pods(self): + """ + Gets the pods of this V2alpha1MetricSpec. + pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + + :return: The pods of this V2alpha1MetricSpec. + :rtype: V2alpha1PodsMetricSource + """ + return self._pods + + @pods.setter + def pods(self, pods): + """ + Sets the pods of this V2alpha1MetricSpec. + pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + + :param pods: The pods of this V2alpha1MetricSpec. + :type: V2alpha1PodsMetricSource + """ + + self._pods = pods + + @property + def resource(self): + """ + Gets the resource of this V2alpha1MetricSpec. + resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + + :return: The resource of this V2alpha1MetricSpec. + :rtype: V2alpha1ResourceMetricSource + """ + return self._resource + + @resource.setter + def resource(self, resource): + """ + Sets the resource of this V2alpha1MetricSpec. + resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + + :param resource: The resource of this V2alpha1MetricSpec. + :type: V2alpha1ResourceMetricSource + """ + + self._resource = resource + + @property + def type(self): + """ + Gets the type of this V2alpha1MetricSpec. + type is the type of metric source. It should match one of the fields below. + + :return: The type of this V2alpha1MetricSpec. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V2alpha1MetricSpec. + type is the type of metric source. It should match one of the fields below. + + :param type: The type of this V2alpha1MetricSpec. + :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/kubernetes/client/models/v2alpha1_metric_status.py b/kubernetes/client/models/v2alpha1_metric_status.py new file mode 100644 index 0000000000..ae1c6dae2f --- /dev/null +++ b/kubernetes/client/models/v2alpha1_metric_status.py @@ -0,0 +1,194 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V2alpha1MetricStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, object=None, pods=None, resource=None, type=None): + """ + V2alpha1MetricStatus - 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': 'V2alpha1ObjectMetricStatus', + 'pods': 'V2alpha1PodsMetricStatus', + 'resource': 'V2alpha1ResourceMetricStatus', + 'type': 'str' + } + + self.attribute_map = { + 'object': 'object', + 'pods': 'pods', + 'resource': 'resource', + 'type': 'type' + } + + self._object = object + self._pods = pods + self._resource = resource + self._type = type + + @property + def object(self): + """ + Gets the object of this V2alpha1MetricStatus. + object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + + :return: The object of this V2alpha1MetricStatus. + :rtype: V2alpha1ObjectMetricStatus + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this V2alpha1MetricStatus. + object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + + :param object: The object of this V2alpha1MetricStatus. + :type: V2alpha1ObjectMetricStatus + """ + + self._object = object + + @property + def pods(self): + """ + Gets the pods of this V2alpha1MetricStatus. + pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + + :return: The pods of this V2alpha1MetricStatus. + :rtype: V2alpha1PodsMetricStatus + """ + return self._pods + + @pods.setter + def pods(self, pods): + """ + Sets the pods of this V2alpha1MetricStatus. + pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + + :param pods: The pods of this V2alpha1MetricStatus. + :type: V2alpha1PodsMetricStatus + """ + + self._pods = pods + + @property + def resource(self): + """ + Gets the resource of this V2alpha1MetricStatus. + resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + + :return: The resource of this V2alpha1MetricStatus. + :rtype: V2alpha1ResourceMetricStatus + """ + return self._resource + + @resource.setter + def resource(self, resource): + """ + Sets the resource of this V2alpha1MetricStatus. + resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + + :param resource: The resource of this V2alpha1MetricStatus. + :type: V2alpha1ResourceMetricStatus + """ + + self._resource = resource + + @property + def type(self): + """ + Gets the type of this V2alpha1MetricStatus. + type is the type of metric source. It will match one of the fields below. + + :return: The type of this V2alpha1MetricStatus. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V2alpha1MetricStatus. + type is the type of metric source. It will match one of the fields below. + + :param type: The type of this V2alpha1MetricStatus. + :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/kubernetes/client/models/v2alpha1_object_metric_source.py b/kubernetes/client/models/v2alpha1_object_metric_source.py new file mode 100644 index 0000000000..d6ccb8bbef --- /dev/null +++ b/kubernetes/client/models/v2alpha1_object_metric_source.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V2alpha1ObjectMetricSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metric_name=None, target=None, target_value=None): + """ + V2alpha1ObjectMetricSource - 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 = { + 'metric_name': 'str', + 'target': 'V2alpha1CrossVersionObjectReference', + 'target_value': 'ResourceQuantity' + } + + self.attribute_map = { + 'metric_name': 'metricName', + 'target': 'target', + 'target_value': 'targetValue' + } + + self._metric_name = metric_name + self._target = target + self._target_value = target_value + + @property + def metric_name(self): + """ + Gets the metric_name of this V2alpha1ObjectMetricSource. + metricName is the name of the metric in question. + + :return: The metric_name of this V2alpha1ObjectMetricSource. + :rtype: str + """ + return self._metric_name + + @metric_name.setter + def metric_name(self, metric_name): + """ + Sets the metric_name of this V2alpha1ObjectMetricSource. + metricName is the name of the metric in question. + + :param metric_name: The metric_name of this V2alpha1ObjectMetricSource. + :type: str + """ + if metric_name is None: + raise ValueError("Invalid value for `metric_name`, must not be `None`") + + self._metric_name = metric_name + + @property + def target(self): + """ + Gets the target of this V2alpha1ObjectMetricSource. + target is the described Kubernetes object. + + :return: The target of this V2alpha1ObjectMetricSource. + :rtype: V2alpha1CrossVersionObjectReference + """ + return self._target + + @target.setter + def target(self, target): + """ + Sets the target of this V2alpha1ObjectMetricSource. + target is the described Kubernetes object. + + :param target: The target of this V2alpha1ObjectMetricSource. + :type: V2alpha1CrossVersionObjectReference + """ + if target is None: + raise ValueError("Invalid value for `target`, must not be `None`") + + self._target = target + + @property + def target_value(self): + """ + Gets the target_value of this V2alpha1ObjectMetricSource. + targetValue is the target value of the metric (as a quantity). + + :return: The target_value of this V2alpha1ObjectMetricSource. + :rtype: ResourceQuantity + """ + return self._target_value + + @target_value.setter + def target_value(self, target_value): + """ + Sets the target_value of this V2alpha1ObjectMetricSource. + targetValue is the target value of the metric (as a quantity). + + :param target_value: The target_value of this V2alpha1ObjectMetricSource. + :type: ResourceQuantity + """ + if target_value is None: + raise ValueError("Invalid value for `target_value`, must not be `None`") + + self._target_value = target_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/kubernetes/client/models/v2alpha1_object_metric_status.py b/kubernetes/client/models/v2alpha1_object_metric_status.py new file mode 100644 index 0000000000..e01bde9eba --- /dev/null +++ b/kubernetes/client/models/v2alpha1_object_metric_status.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V2alpha1ObjectMetricStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, current_value=None, metric_name=None, target=None): + """ + V2alpha1ObjectMetricStatus - 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_value': 'ResourceQuantity', + 'metric_name': 'str', + 'target': 'V2alpha1CrossVersionObjectReference' + } + + self.attribute_map = { + 'current_value': 'currentValue', + 'metric_name': 'metricName', + 'target': 'target' + } + + self._current_value = current_value + self._metric_name = metric_name + self._target = target + + @property + def current_value(self): + """ + Gets the current_value of this V2alpha1ObjectMetricStatus. + currentValue is the current value of the metric (as a quantity). + + :return: The current_value of this V2alpha1ObjectMetricStatus. + :rtype: ResourceQuantity + """ + return self._current_value + + @current_value.setter + def current_value(self, current_value): + """ + Sets the current_value of this V2alpha1ObjectMetricStatus. + currentValue is the current value of the metric (as a quantity). + + :param current_value: The current_value of this V2alpha1ObjectMetricStatus. + :type: ResourceQuantity + """ + if current_value is None: + raise ValueError("Invalid value for `current_value`, must not be `None`") + + self._current_value = current_value + + @property + def metric_name(self): + """ + Gets the metric_name of this V2alpha1ObjectMetricStatus. + metricName is the name of the metric in question. + + :return: The metric_name of this V2alpha1ObjectMetricStatus. + :rtype: str + """ + return self._metric_name + + @metric_name.setter + def metric_name(self, metric_name): + """ + Sets the metric_name of this V2alpha1ObjectMetricStatus. + metricName is the name of the metric in question. + + :param metric_name: The metric_name of this V2alpha1ObjectMetricStatus. + :type: str + """ + if metric_name is None: + raise ValueError("Invalid value for `metric_name`, must not be `None`") + + self._metric_name = metric_name + + @property + def target(self): + """ + Gets the target of this V2alpha1ObjectMetricStatus. + target is the described Kubernetes object. + + :return: The target of this V2alpha1ObjectMetricStatus. + :rtype: V2alpha1CrossVersionObjectReference + """ + return self._target + + @target.setter + def target(self, target): + """ + Sets the target of this V2alpha1ObjectMetricStatus. + target is the described Kubernetes object. + + :param target: The target of this V2alpha1ObjectMetricStatus. + :type: V2alpha1CrossVersionObjectReference + """ + 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/kubernetes/client/models/v2alpha1_pods_metric_source.py b/kubernetes/client/models/v2alpha1_pods_metric_source.py new file mode 100644 index 0000000000..9e22ecb5aa --- /dev/null +++ b/kubernetes/client/models/v2alpha1_pods_metric_source.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V2alpha1PodsMetricSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, metric_name=None, target_average_value=None): + """ + V2alpha1PodsMetricSource - 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 = { + 'metric_name': 'str', + 'target_average_value': 'ResourceQuantity' + } + + self.attribute_map = { + 'metric_name': 'metricName', + 'target_average_value': 'targetAverageValue' + } + + self._metric_name = metric_name + self._target_average_value = target_average_value + + @property + def metric_name(self): + """ + Gets the metric_name of this V2alpha1PodsMetricSource. + metricName is the name of the metric in question + + :return: The metric_name of this V2alpha1PodsMetricSource. + :rtype: str + """ + return self._metric_name + + @metric_name.setter + def metric_name(self, metric_name): + """ + Sets the metric_name of this V2alpha1PodsMetricSource. + metricName is the name of the metric in question + + :param metric_name: The metric_name of this V2alpha1PodsMetricSource. + :type: str + """ + if metric_name is None: + raise ValueError("Invalid value for `metric_name`, must not be `None`") + + self._metric_name = metric_name + + @property + def target_average_value(self): + """ + Gets the target_average_value of this V2alpha1PodsMetricSource. + targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) + + :return: The target_average_value of this V2alpha1PodsMetricSource. + :rtype: ResourceQuantity + """ + return self._target_average_value + + @target_average_value.setter + def target_average_value(self, target_average_value): + """ + Sets the target_average_value of this V2alpha1PodsMetricSource. + targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) + + :param target_average_value: The target_average_value of this V2alpha1PodsMetricSource. + :type: ResourceQuantity + """ + if target_average_value is None: + raise ValueError("Invalid value for `target_average_value`, must not be `None`") + + self._target_average_value = target_average_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/kubernetes/client/models/v2alpha1_pods_metric_status.py b/kubernetes/client/models/v2alpha1_pods_metric_status.py new file mode 100644 index 0000000000..93b765a7c0 --- /dev/null +++ b/kubernetes/client/models/v2alpha1_pods_metric_status.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V2alpha1PodsMetricStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, current_average_value=None, metric_name=None): + """ + V2alpha1PodsMetricStatus - 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_average_value': 'ResourceQuantity', + 'metric_name': 'str' + } + + self.attribute_map = { + 'current_average_value': 'currentAverageValue', + 'metric_name': 'metricName' + } + + self._current_average_value = current_average_value + self._metric_name = metric_name + + @property + def current_average_value(self): + """ + Gets the current_average_value of this V2alpha1PodsMetricStatus. + currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) + + :return: The current_average_value of this V2alpha1PodsMetricStatus. + :rtype: ResourceQuantity + """ + return self._current_average_value + + @current_average_value.setter + def current_average_value(self, current_average_value): + """ + Sets the current_average_value of this V2alpha1PodsMetricStatus. + currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) + + :param current_average_value: The current_average_value of this V2alpha1PodsMetricStatus. + :type: ResourceQuantity + """ + if current_average_value is None: + raise ValueError("Invalid value for `current_average_value`, must not be `None`") + + self._current_average_value = current_average_value + + @property + def metric_name(self): + """ + Gets the metric_name of this V2alpha1PodsMetricStatus. + metricName is the name of the metric in question + + :return: The metric_name of this V2alpha1PodsMetricStatus. + :rtype: str + """ + return self._metric_name + + @metric_name.setter + def metric_name(self, metric_name): + """ + Sets the metric_name of this V2alpha1PodsMetricStatus. + metricName is the name of the metric in question + + :param metric_name: The metric_name of this V2alpha1PodsMetricStatus. + :type: str + """ + if metric_name is None: + raise ValueError("Invalid value for `metric_name`, must not be `None`") + + self._metric_name = metric_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/kubernetes/client/models/v2alpha1_resource_metric_source.py b/kubernetes/client/models/v2alpha1_resource_metric_source.py new file mode 100644 index 0000000000..8e3244b670 --- /dev/null +++ b/kubernetes/client/models/v2alpha1_resource_metric_source.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V2alpha1ResourceMetricSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, name=None, target_average_utilization=None, target_average_value=None): + """ + V2alpha1ResourceMetricSource - 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', + 'target_average_utilization': 'int', + 'target_average_value': 'ResourceQuantity' + } + + self.attribute_map = { + 'name': 'name', + 'target_average_utilization': 'targetAverageUtilization', + 'target_average_value': 'targetAverageValue' + } + + self._name = name + self._target_average_utilization = target_average_utilization + self._target_average_value = target_average_value + + @property + def name(self): + """ + Gets the name of this V2alpha1ResourceMetricSource. + name is the name of the resource in question. + + :return: The name of this V2alpha1ResourceMetricSource. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V2alpha1ResourceMetricSource. + name is the name of the resource in question. + + :param name: The name of this V2alpha1ResourceMetricSource. + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") + + self._name = name + + @property + def target_average_utilization(self): + """ + Gets the target_average_utilization of this V2alpha1ResourceMetricSource. + targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + + :return: The target_average_utilization of this V2alpha1ResourceMetricSource. + :rtype: int + """ + return self._target_average_utilization + + @target_average_utilization.setter + def target_average_utilization(self, target_average_utilization): + """ + Sets the target_average_utilization of this V2alpha1ResourceMetricSource. + targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + + :param target_average_utilization: The target_average_utilization of this V2alpha1ResourceMetricSource. + :type: int + """ + + self._target_average_utilization = target_average_utilization + + @property + def target_average_value(self): + """ + Gets the target_average_value of this V2alpha1ResourceMetricSource. + targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. + + :return: The target_average_value of this V2alpha1ResourceMetricSource. + :rtype: ResourceQuantity + """ + return self._target_average_value + + @target_average_value.setter + def target_average_value(self, target_average_value): + """ + Sets the target_average_value of this V2alpha1ResourceMetricSource. + targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. + + :param target_average_value: The target_average_value of this V2alpha1ResourceMetricSource. + :type: ResourceQuantity + """ + + self._target_average_value = target_average_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/kubernetes/client/models/v2alpha1_resource_metric_status.py b/kubernetes/client/models/v2alpha1_resource_metric_status.py new file mode 100644 index 0000000000..9c50a192af --- /dev/null +++ b/kubernetes/client/models/v2alpha1_resource_metric_status.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V2alpha1ResourceMetricStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self, current_average_utilization=None, current_average_value=None, name=None): + """ + V2alpha1ResourceMetricStatus - 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_average_utilization': 'int', + 'current_average_value': 'ResourceQuantity', + 'name': 'str' + } + + self.attribute_map = { + 'current_average_utilization': 'currentAverageUtilization', + 'current_average_value': 'currentAverageValue', + 'name': 'name' + } + + self._current_average_utilization = current_average_utilization + self._current_average_value = current_average_value + self._name = name + + @property + def current_average_utilization(self): + """ + Gets the current_average_utilization of this V2alpha1ResourceMetricStatus. + currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. + + :return: The current_average_utilization of this V2alpha1ResourceMetricStatus. + :rtype: int + """ + return self._current_average_utilization + + @current_average_utilization.setter + def current_average_utilization(self, current_average_utilization): + """ + Sets the current_average_utilization of this V2alpha1ResourceMetricStatus. + currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. + + :param current_average_utilization: The current_average_utilization of this V2alpha1ResourceMetricStatus. + :type: int + """ + + self._current_average_utilization = current_average_utilization + + @property + def current_average_value(self): + """ + Gets the current_average_value of this V2alpha1ResourceMetricStatus. + currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. + + :return: The current_average_value of this V2alpha1ResourceMetricStatus. + :rtype: ResourceQuantity + """ + return self._current_average_value + + @current_average_value.setter + def current_average_value(self, current_average_value): + """ + Sets the current_average_value of this V2alpha1ResourceMetricStatus. + currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. + + :param current_average_value: The current_average_value of this V2alpha1ResourceMetricStatus. + :type: ResourceQuantity + """ + if current_average_value is None: + raise ValueError("Invalid value for `current_average_value`, must not be `None`") + + self._current_average_value = current_average_value + + @property + def name(self): + """ + Gets the name of this V2alpha1ResourceMetricStatus. + name is the name of the resource in question. + + :return: The name of this V2alpha1ResourceMetricStatus. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V2alpha1ResourceMetricStatus. + name is the name of the resource in question. + + :param name: The name of this V2alpha1ResourceMetricStatus. + :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/kubernetes/client/models/version_info.py b/kubernetes/client/models/version_info.py index 3e6f611e02..bf443a8990 100644 --- a/kubernetes/client/models/version_info.py +++ b/kubernetes/client/models/version_info.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/docs/ApisApi.md b/kubernetes/docs/ApisApi.md index 996fa75238..4b96b25aed 100644 --- a/kubernetes/docs/ApisApi.md +++ b/kubernetes/docs/ApisApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_versions** -> UnversionedAPIGroupList get_api_versions() +> V1APIGroupList get_api_versions() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIGroupList**](UnversionedAPIGroupList.md) +[**V1APIGroupList**](V1APIGroupList.md) ### Authorization diff --git a/kubernetes/docs/AppsApi.md b/kubernetes/docs/AppsApi.md index 3b56a3636b..000d6a7986 100644 --- a/kubernetes/docs/AppsApi.md +++ b/kubernetes/docs/AppsApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> UnversionedAPIGroup get_api_group() +> V1APIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIGroup**](UnversionedAPIGroup.md) +[**V1APIGroup**](V1APIGroup.md) ### Authorization diff --git a/kubernetes/docs/AppsV1beta1Api.md b/kubernetes/docs/AppsV1beta1Api.md index 3170d093c3..808c3bbb3f 100644 --- a/kubernetes/docs/AppsV1beta1Api.md +++ b/kubernetes/docs/AppsV1beta1Api.md @@ -4,26 +4,41 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_namespaced_deployment**](AppsV1beta1Api.md#create_namespaced_deployment) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/deployments | +[**create_namespaced_deployment_rollback_rollback**](AppsV1beta1Api.md#create_namespaced_deployment_rollback_rollback) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback | [**create_namespaced_stateful_set**](AppsV1beta1Api.md#create_namespaced_stateful_set) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | +[**delete_collection_namespaced_deployment**](AppsV1beta1Api.md#delete_collection_namespaced_deployment) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/deployments | [**delete_collection_namespaced_stateful_set**](AppsV1beta1Api.md#delete_collection_namespaced_stateful_set) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | +[**delete_namespaced_deployment**](AppsV1beta1Api.md#delete_namespaced_deployment) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | [**delete_namespaced_stateful_set**](AppsV1beta1Api.md#delete_namespaced_stateful_set) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | [**get_api_resources**](AppsV1beta1Api.md#get_api_resources) | **GET** /apis/apps/v1beta1/ | +[**list_deployment_for_all_namespaces**](AppsV1beta1Api.md#list_deployment_for_all_namespaces) | **GET** /apis/apps/v1beta1/deployments | +[**list_namespaced_deployment**](AppsV1beta1Api.md#list_namespaced_deployment) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments | [**list_namespaced_stateful_set**](AppsV1beta1Api.md#list_namespaced_stateful_set) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | [**list_stateful_set_for_all_namespaces**](AppsV1beta1Api.md#list_stateful_set_for_all_namespaces) | **GET** /apis/apps/v1beta1/statefulsets | +[**patch_namespaced_deployment**](AppsV1beta1Api.md#patch_namespaced_deployment) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | +[**patch_namespaced_deployment_status**](AppsV1beta1Api.md#patch_namespaced_deployment_status) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | +[**patch_namespaced_scale_scale**](AppsV1beta1Api.md#patch_namespaced_scale_scale) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | [**patch_namespaced_stateful_set**](AppsV1beta1Api.md#patch_namespaced_stateful_set) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | [**patch_namespaced_stateful_set_status**](AppsV1beta1Api.md#patch_namespaced_stateful_set_status) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | +[**read_namespaced_deployment**](AppsV1beta1Api.md#read_namespaced_deployment) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | +[**read_namespaced_deployment_status**](AppsV1beta1Api.md#read_namespaced_deployment_status) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | +[**read_namespaced_scale_scale**](AppsV1beta1Api.md#read_namespaced_scale_scale) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | [**read_namespaced_stateful_set**](AppsV1beta1Api.md#read_namespaced_stateful_set) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | [**read_namespaced_stateful_set_status**](AppsV1beta1Api.md#read_namespaced_stateful_set_status) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | +[**replace_namespaced_deployment**](AppsV1beta1Api.md#replace_namespaced_deployment) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | +[**replace_namespaced_deployment_status**](AppsV1beta1Api.md#replace_namespaced_deployment_status) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | +[**replace_namespaced_scale_scale**](AppsV1beta1Api.md#replace_namespaced_scale_scale) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | [**replace_namespaced_stateful_set**](AppsV1beta1Api.md#replace_namespaced_stateful_set) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | [**replace_namespaced_stateful_set_status**](AppsV1beta1Api.md#replace_namespaced_stateful_set_status) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | -# **create_namespaced_stateful_set** -> V1beta1StatefulSet create_namespaced_stateful_set(namespace, body, pretty=pretty) +# **create_namespaced_deployment** +> AppsV1beta1Deployment create_namespaced_deployment(namespace, body, pretty=pretty) -create a StatefulSet +create a Deployment ### Example ```python @@ -41,14 +56,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1StatefulSet() # V1beta1StatefulSet | +body = kubernetes.client.AppsV1beta1Deployment() # AppsV1beta1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_stateful_set(namespace, body, pretty=pretty) + api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling AppsV1beta1Api->create_namespaced_stateful_set: %s\n" % e) + print("Exception when calling AppsV1beta1Api->create_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -56,12 +71,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1StatefulSet**](V1beta1StatefulSet.md)| | + **body** | [**AppsV1beta1Deployment**](AppsV1beta1Deployment.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) +[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) ### Authorization @@ -74,12 +89,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_stateful_set** -> UnversionedStatus delete_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) +# **create_namespaced_deployment_rollback_rollback** +> AppsV1beta1DeploymentRollback create_namespaced_deployment_rollback_rollback(name, namespace, body, pretty=pretty) -delete collection of StatefulSet +create rollback of a DeploymentRollback ### Example ```python @@ -96,36 +111,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() +name = 'name_example' # str | name of the DeploymentRollback namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.AppsV1beta1DeploymentRollback() # AppsV1beta1DeploymentRollback | 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_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) + api_response = api_instance.create_namespaced_deployment_rollback_rollback(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling AppsV1beta1Api->delete_collection_namespaced_stateful_set: %s\n" % e) + print("Exception when calling AppsV1beta1Api->create_namespaced_deployment_rollback_rollback: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the DeploymentRollback | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**AppsV1beta1DeploymentRollback**](AppsV1beta1DeploymentRollback.md)| | **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) +[**AppsV1beta1DeploymentRollback**](AppsV1beta1DeploymentRollback.md) ### Authorization @@ -138,12 +147,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_stateful_set** -> UnversionedStatus delete_namespaced_stateful_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +# **create_namespaced_stateful_set** +> V1beta1StatefulSet create_namespaced_stateful_set(namespace, body, pretty=pretty) -delete a StatefulSet +create a StatefulSet ### Example ```python @@ -160,34 +169,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +body = kubernetes.client.V1beta1StatefulSet() # V1beta1StatefulSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # 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 = true # 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) try: - api_response = api_instance.delete_namespaced_stateful_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.create_namespaced_stateful_set(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling AppsV1beta1Api->delete_namespaced_stateful_set: %s\n" % e) + print("Exception when calling AppsV1beta1Api->create_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)| | + **body** | [**V1beta1StatefulSet**](V1beta1StatefulSet.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **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] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1beta1StatefulSet**](V1beta1StatefulSet.md) ### Authorization @@ -200,12 +203,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_api_resources** -> UnversionedAPIResourceList get_api_resources() +# **delete_collection_namespaced_deployment** +> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -get available resources +delete collection of Deployment ### Example ```python @@ -222,20 +225,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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.get_api_resources() + api_response = api_instance.delete_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 AppsV1beta1Api->get_api_resources: %s\n" % e) + print("Exception when calling AppsV1beta1Api->delete_collection_namespaced_deployment: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 -[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) +[**V1Status**](V1Status.md) ### Authorization @@ -243,17 +262,17 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **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) -# **list_namespaced_stateful_set** -> V1beta1StatefulSetList list_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_namespaced_stateful_set** +> V1Status delete_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) -list or watch objects of kind StatefulSet +delete collection of StatefulSet ### Example ```python @@ -274,15 +293,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_namespaced_stateful_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_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 AppsV1beta1Api->list_namespaced_stateful_set: %s\n" % e) + print("Exception when calling AppsV1beta1Api->delete_collection_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -293,13 +312,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 -[**V1beta1StatefulSetList**](V1beta1StatefulSetList.md) +[**V1Status**](V1Status.md) ### Authorization @@ -308,16 +327,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[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_stateful_set_for_all_namespaces** -> V1beta1StatefulSetList list_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) +# **delete_namespaced_deployment** +> V1Status delete_namespaced_deployment(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -list or watch objects of kind StatefulSet +delete a Deployment ### Example ```python @@ -334,34 +353,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() -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) +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | 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) +grace_period_seconds = 56 # 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 = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.list_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) + api_response = api_instance.delete_namespaced_deployment(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling AppsV1beta1Api->list_stateful_set_for_all_namespaces: %s\n" % e) + print("Exception when calling AppsV1beta1Api->delete_namespaced_deployment: %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] + **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] - **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] + **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**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**V1beta1StatefulSetList**](V1beta1StatefulSetList.md) +[**V1Status**](V1Status.md) ### Authorization @@ -370,16 +391,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[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_namespaced_stateful_set** -> V1beta1StatefulSet patch_namespaced_stateful_set(name, namespace, body, pretty=pretty) +# **delete_namespaced_stateful_set** +> V1Status delete_namespaced_stateful_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -partially update the specified StatefulSet +delete a StatefulSet ### Example ```python @@ -398,14 +419,17 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api() name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # 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 = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.patch_namespaced_stateful_set(name, namespace, body, pretty=pretty) + api_response = api_instance.delete_namespaced_stateful_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling AppsV1beta1Api->patch_namespaced_stateful_set: %s\n" % e) + print("Exception when calling AppsV1beta1Api->delete_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -414,12 +438,15 @@ 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)| | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **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**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) +[**V1Status**](V1Status.md) ### Authorization @@ -427,17 +454,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **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) -# **patch_namespaced_stateful_set_status** -> V1beta1StatefulSet patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty) +# **get_api_resources** +> V1APIResourceList get_api_resources() -partially update status of the specified StatefulSet +get available resources ### Example ```python @@ -454,30 +481,82 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() -name = 'name_example' # str | name of the StatefulSet -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | + +try: + api_response = api_instance.get_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1beta1Api->get_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.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_deployment_for_all_namespaces** +> AppsV1beta1DeploymentList list_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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.patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty) + api_response = api_instance.list_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 AppsV1beta1Api->patch_namespaced_stateful_set_status: %s\n" % e) + print("Exception when calling AppsV1beta1Api->list_deployment_for_all_namespaces: %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)| | + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) +[**AppsV1beta1DeploymentList**](AppsV1beta1DeploymentList.md) ### Authorization @@ -485,17 +564,17 @@ Name | Type | Description | Notes ### 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 + - **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) -# **read_namespaced_stateful_set** -> V1beta1StatefulSet read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) +# **list_namespaced_deployment** +> AppsV1beta1DeploymentList list_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -read the specified StatefulSet +list or watch objects of kind Deployment ### Example ```python @@ -512,32 +591,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() -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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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.read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) + api_response = api_instance.list_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 AppsV1beta1Api->read_namespaced_stateful_set: %s\n" % e) + print("Exception when calling AppsV1beta1Api->list_namespaced_deployment: %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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) +[**AppsV1beta1DeploymentList**](AppsV1beta1DeploymentList.md) ### Authorization @@ -546,16 +629,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **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) -# **read_namespaced_stateful_set_status** -> V1beta1StatefulSet read_namespaced_stateful_set_status(name, namespace, pretty=pretty) +# **list_namespaced_stateful_set** +> V1beta1StatefulSetList list_namespaced_stateful_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -read status of the specified StatefulSet +list or watch objects of kind StatefulSet ### Example ```python @@ -572,28 +655,850 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api() -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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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.read_namespaced_stateful_set_status(name, namespace, pretty=pretty) + api_response = api_instance.list_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 AppsV1beta1Api->read_namespaced_stateful_set_status: %s\n" % e) + print("Exception when calling AppsV1beta1Api->list_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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) +[**V1beta1StatefulSetList**](V1beta1StatefulSetList.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_stateful_set_for_all_namespaces** +> V1beta1StatefulSetList list_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 AppsV1beta1Api->list_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1beta1StatefulSetList**](V1beta1StatefulSetList.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_namespaced_deployment** +> AppsV1beta1Deployment patch_namespaced_deployment(name, namespace, body, pretty=pretty) + + + +partially update the specified Deployment + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1beta1Api->patch_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** | [**V1Patch**](V1Patch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**AppsV1beta1Deployment**](AppsV1beta1Deployment.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_namespaced_deployment_status** +> AppsV1beta1Deployment patch_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1beta1Api->patch_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** | [**V1Patch**](V1Patch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**AppsV1beta1Deployment**](AppsV1beta1Deployment.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_namespaced_scale_scale** +> AppsV1beta1Scale patch_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_scale_scale(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1beta1Api->patch_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** | [**V1Patch**](V1Patch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**AppsV1beta1Scale**](AppsV1beta1Scale.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_namespaced_stateful_set** +> V1beta1StatefulSet patch_namespaced_stateful_set(name, namespace, body, pretty=pretty) + + + +partially update the specified StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +name = 'name_example' # str | name of the StatefulSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_stateful_set(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1beta1Api->patch_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** | [**V1Patch**](V1Patch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1StatefulSet**](V1beta1StatefulSet.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_namespaced_stateful_set_status** +> V1beta1StatefulSet patch_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +name = 'name_example' # str | name of the StatefulSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1beta1Api->patch_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** | [**V1Patch**](V1Patch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1StatefulSet**](V1beta1StatefulSet.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_namespaced_deployment** +> AppsV1beta1Deployment read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified Deployment + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +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_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1beta1Api->read_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 + +[**AppsV1beta1Deployment**](AppsV1beta1Deployment.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_namespaced_deployment_status** +> AppsV1beta1Deployment read_namespaced_deployment_status(name, namespace, pretty=pretty) + + + +read status of the specified Deployment + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +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_namespaced_deployment_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1beta1Api->read_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 + +[**AppsV1beta1Deployment**](AppsV1beta1Deployment.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_namespaced_scale_scale** +> AppsV1beta1Scale read_namespaced_scale_scale(name, namespace, pretty=pretty) + + + +read scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +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_namespaced_scale_scale(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1beta1Api->read_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 + +[**AppsV1beta1Scale**](AppsV1beta1Scale.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_namespaced_stateful_set** +> V1beta1StatefulSet read_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +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_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1beta1Api->read_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 + +[**V1beta1StatefulSet**](V1beta1StatefulSet.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_namespaced_stateful_set_status** +> V1beta1StatefulSet read_namespaced_stateful_set_status(name, namespace, pretty=pretty) + + + +read status of the specified StatefulSet + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +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_namespaced_stateful_set_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1beta1Api->read_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 + +[**V1beta1StatefulSet**](V1beta1StatefulSet.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_namespaced_deployment** +> AppsV1beta1Deployment replace_namespaced_deployment(name, namespace, body, pretty=pretty) + + + +replace the specified Deployment + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.AppsV1beta1Deployment() # AppsV1beta1Deployment | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1beta1Api->replace_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** | [**AppsV1beta1Deployment**](AppsV1beta1Deployment.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**AppsV1beta1Deployment**](AppsV1beta1Deployment.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_namespaced_deployment_status** +> AppsV1beta1Deployment replace_namespaced_deployment_status(name, namespace, body, pretty=pretty) + + + +replace status of the specified Deployment + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +name = 'name_example' # str | name of the Deployment +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.AppsV1beta1Deployment() # AppsV1beta1Deployment | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1beta1Api->replace_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** | [**AppsV1beta1Deployment**](AppsV1beta1Deployment.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**AppsV1beta1Deployment**](AppsV1beta1Deployment.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_namespaced_scale_scale** +> AppsV1beta1Scale replace_namespaced_scale_scale(name, namespace, body, pretty=pretty) + + + +replace scale of the specified Scale + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AppsV1beta1Api() +name = 'name_example' # str | name of the Scale +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.AppsV1beta1Scale() # AppsV1beta1Scale | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_scale_scale(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AppsV1beta1Api->replace_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** | [**AppsV1beta1Scale**](AppsV1beta1Scale.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**AppsV1beta1Scale**](AppsV1beta1Scale.md) ### Authorization diff --git a/kubernetes/docs/V1beta1Deployment.md b/kubernetes/docs/AppsV1beta1Deployment.md similarity index 75% rename from kubernetes/docs/V1beta1Deployment.md rename to kubernetes/docs/AppsV1beta1Deployment.md index ec05e4c50a..790a4cd77e 100644 --- a/kubernetes/docs/V1beta1Deployment.md +++ b/kubernetes/docs/AppsV1beta1Deployment.md @@ -1,4 +1,4 @@ -# V1beta1Deployment +# AppsV1beta1Deployment ## Properties Name | Type | Description | Notes @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] **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] +**spec** | [**AppsV1beta1DeploymentSpec**](AppsV1beta1DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] +**status** | [**AppsV1beta1DeploymentStatus**](AppsV1beta1DeploymentStatus.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/kubernetes/docs/V1beta1DeploymentCondition.md b/kubernetes/docs/AppsV1beta1DeploymentCondition.md similarity index 66% rename from kubernetes/docs/V1beta1DeploymentCondition.md rename to kubernetes/docs/AppsV1beta1DeploymentCondition.md index fb21f85d8c..e4be785a18 100644 --- a/kubernetes/docs/V1beta1DeploymentCondition.md +++ b/kubernetes/docs/AppsV1beta1DeploymentCondition.md @@ -1,10 +1,10 @@ -# V1beta1DeploymentCondition +# AppsV1beta1DeploymentCondition ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_transition_time** | [**UnversionedTime**](UnversionedTime.md) | Last time the condition transitioned from one status to another. | [optional] -**last_update_time** | [**UnversionedTime**](UnversionedTime.md) | The last time this condition was updated. | [optional] +**last_transition_time** | [**V1Time**](V1Time.md) | Last time the condition transitioned from one status to another. | [optional] +**last_update_time** | [**V1Time**](V1Time.md) | The last time this condition was updated. | [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. | diff --git a/kubernetes/docs/V1beta1DeploymentList.md b/kubernetes/docs/AppsV1beta1DeploymentList.md similarity index 79% rename from kubernetes/docs/V1beta1DeploymentList.md rename to kubernetes/docs/AppsV1beta1DeploymentList.md index 276a9f74e6..377638243c 100644 --- a/kubernetes/docs/V1beta1DeploymentList.md +++ b/kubernetes/docs/AppsV1beta1DeploymentList.md @@ -1,12 +1,12 @@ -# V1beta1DeploymentList +# AppsV1beta1DeploymentList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1beta1Deployment]**](V1beta1Deployment.md) | Items is the list of Deployments. | +**items** | [**list[AppsV1beta1Deployment]**](AppsV1beta1Deployment.md) | Items is the list of Deployments. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1beta1DeploymentRollback.md b/kubernetes/docs/AppsV1beta1DeploymentRollback.md similarity index 87% rename from kubernetes/docs/V1beta1DeploymentRollback.md rename to kubernetes/docs/AppsV1beta1DeploymentRollback.md index 9b91983328..aacbbed2b2 100644 --- a/kubernetes/docs/V1beta1DeploymentRollback.md +++ b/kubernetes/docs/AppsV1beta1DeploymentRollback.md @@ -1,4 +1,4 @@ -# V1beta1DeploymentRollback +# AppsV1beta1DeploymentRollback ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] **name** | **str** | Required: This must match the Name of a deployment. | -**rollback_to** | [**V1beta1RollbackConfig**](V1beta1RollbackConfig.md) | The config of this deployment rollback. | +**rollback_to** | [**AppsV1beta1RollbackConfig**](AppsV1beta1RollbackConfig.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/kubernetes/docs/AppsV1beta1DeploymentSpec.md b/kubernetes/docs/AppsV1beta1DeploymentSpec.md new file mode 100644 index 0000000000..51523399a6 --- /dev/null +++ b/kubernetes/docs/AppsV1beta1DeploymentSpec.md @@ -0,0 +1,18 @@ +# AppsV1beta1DeploymentSpec + +## 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. | [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. Defaults to 600s. | [optional] +**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. Defaults to 2. | [optional] +**rollback_to** | [**AppsV1beta1RollbackConfig**](AppsV1beta1RollbackConfig.md) | The config this deployment is rolling back to. Will be cleared after rollback is done. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | [optional] +**strategy** | [**AppsV1beta1DeploymentStrategy**](AppsV1beta1DeploymentStrategy.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/kubernetes/docs/V1beta1DeploymentStatus.md b/kubernetes/docs/AppsV1beta1DeploymentStatus.md similarity index 74% rename from kubernetes/docs/V1beta1DeploymentStatus.md rename to kubernetes/docs/AppsV1beta1DeploymentStatus.md index 439b210cbe..5b40346137 100644 --- a/kubernetes/docs/V1beta1DeploymentStatus.md +++ b/kubernetes/docs/AppsV1beta1DeploymentStatus.md @@ -1,11 +1,12 @@ -# V1beta1DeploymentStatus +# AppsV1beta1DeploymentStatus ## 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. | [optional] +**conditions** | [**list[AppsV1beta1DeploymentCondition]**](AppsV1beta1DeploymentCondition.md) | Represents the latest available observations of a deployment's current state. | [optional] **observed_generation** | **int** | The generation observed by the deployment controller. | [optional] +**ready_replicas** | **int** | Total number of ready pods targeted by this deployment. | [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] diff --git a/kubernetes/docs/V1beta1DeploymentStrategy.md b/kubernetes/docs/AppsV1beta1DeploymentStrategy.md similarity index 63% rename from kubernetes/docs/V1beta1DeploymentStrategy.md rename to kubernetes/docs/AppsV1beta1DeploymentStrategy.md index 6f657d558a..36ecb07f70 100644 --- a/kubernetes/docs/V1beta1DeploymentStrategy.md +++ b/kubernetes/docs/AppsV1beta1DeploymentStrategy.md @@ -1,9 +1,9 @@ -# V1beta1DeploymentStrategy +# AppsV1beta1DeploymentStrategy ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rolling_update** | [**V1beta1RollingUpdateDeployment**](V1beta1RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] +**rolling_update** | [**AppsV1beta1RollingUpdateDeployment**](AppsV1beta1RollingUpdateDeployment.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/kubernetes/docs/V1beta1RollbackConfig.md b/kubernetes/docs/AppsV1beta1RollbackConfig.md similarity index 93% rename from kubernetes/docs/V1beta1RollbackConfig.md rename to kubernetes/docs/AppsV1beta1RollbackConfig.md index 28e5a8ff4e..85d5227e5c 100644 --- a/kubernetes/docs/V1beta1RollbackConfig.md +++ b/kubernetes/docs/AppsV1beta1RollbackConfig.md @@ -1,4 +1,4 @@ -# V1beta1RollbackConfig +# AppsV1beta1RollbackConfig ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md b/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md new file mode 100644 index 0000000000..195d9a8113 --- /dev/null +++ b/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md @@ -0,0 +1,11 @@ +# AppsV1beta1RollingUpdateDeployment + +## 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. Defaults to 25%. 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 down. This can not be 0 if MaxSurge is 0. Defaults to 25%. 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/kubernetes/docs/V1beta1Scale.md b/kubernetes/docs/AppsV1beta1Scale.md similarity index 71% rename from kubernetes/docs/V1beta1Scale.md rename to kubernetes/docs/AppsV1beta1Scale.md index 29bff5306d..5717112d30 100644 --- a/kubernetes/docs/V1beta1Scale.md +++ b/kubernetes/docs/AppsV1beta1Scale.md @@ -1,4 +1,4 @@ -# V1beta1Scale +# AppsV1beta1Scale ## Properties Name | Type | Description | Notes @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] **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] +**spec** | [**AppsV1beta1ScaleSpec**](AppsV1beta1ScaleSpec.md) | defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] +**status** | [**AppsV1beta1ScaleStatus**](AppsV1beta1ScaleStatus.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/kubernetes/docs/V1beta1ScaleSpec.md b/kubernetes/docs/AppsV1beta1ScaleSpec.md similarity index 94% rename from kubernetes/docs/V1beta1ScaleSpec.md rename to kubernetes/docs/AppsV1beta1ScaleSpec.md index 7d78e71f32..f3d6b80dcb 100644 --- a/kubernetes/docs/V1beta1ScaleSpec.md +++ b/kubernetes/docs/AppsV1beta1ScaleSpec.md @@ -1,4 +1,4 @@ -# V1beta1ScaleSpec +# AppsV1beta1ScaleSpec ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1beta1ScaleStatus.md b/kubernetes/docs/AppsV1beta1ScaleStatus.md similarity index 97% rename from kubernetes/docs/V1beta1ScaleStatus.md rename to kubernetes/docs/AppsV1beta1ScaleStatus.md index 652d390cf9..3e199a51d6 100644 --- a/kubernetes/docs/V1beta1ScaleStatus.md +++ b/kubernetes/docs/AppsV1beta1ScaleStatus.md @@ -1,4 +1,4 @@ -# V1beta1ScaleStatus +# AppsV1beta1ScaleStatus ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/AuthenticationApi.md b/kubernetes/docs/AuthenticationApi.md index a504510e0d..815dab5264 100644 --- a/kubernetes/docs/AuthenticationApi.md +++ b/kubernetes/docs/AuthenticationApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> UnversionedAPIGroup get_api_group() +> V1APIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIGroup**](UnversionedAPIGroup.md) +[**V1APIGroup**](V1APIGroup.md) ### Authorization diff --git a/kubernetes/docs/AuthenticationV1Api.md b/kubernetes/docs/AuthenticationV1Api.md new file mode 100644 index 0000000000..1dc562499f --- /dev/null +++ b/kubernetes/docs/AuthenticationV1Api.md @@ -0,0 +1,112 @@ +# kubernetes.client.AuthenticationV1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_token_review**](AuthenticationV1Api.md#create_token_review) | **POST** /apis/authentication.k8s.io/v1/tokenreviews | +[**get_api_resources**](AuthenticationV1Api.md#get_api_resources) | **GET** /apis/authentication.k8s.io/v1/ | + + +# **create_token_review** +> V1TokenReview create_token_review(body, pretty=pretty) + + + +create a TokenReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AuthenticationV1Api() +body = kubernetes.client.V1TokenReview() # V1TokenReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_token_review(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AuthenticationV1Api->create_token_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1TokenReview**](V1TokenReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1TokenReview**](V1TokenReview.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_api_resources** +> V1APIResourceList get_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AuthenticationV1Api() + +try: + api_response = api_instance.get_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling AuthenticationV1Api->get_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.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/kubernetes/docs/AuthenticationV1beta1Api.md b/kubernetes/docs/AuthenticationV1beta1Api.md index 5690a13400..cd42c69e59 100644 --- a/kubernetes/docs/AuthenticationV1beta1Api.md +++ b/kubernetes/docs/AuthenticationV1beta1Api.md @@ -63,7 +63,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_api_resources** -> UnversionedAPIResourceList get_api_resources() +> V1APIResourceList get_api_resources() @@ -97,7 +97,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization diff --git a/kubernetes/docs/AuthorizationApi.md b/kubernetes/docs/AuthorizationApi.md index 10ea9af5b9..94c0bc518e 100644 --- a/kubernetes/docs/AuthorizationApi.md +++ b/kubernetes/docs/AuthorizationApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> UnversionedAPIGroup get_api_group() +> V1APIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIGroup**](UnversionedAPIGroup.md) +[**V1APIGroup**](V1APIGroup.md) ### Authorization diff --git a/kubernetes/docs/AuthorizationV1Api.md b/kubernetes/docs/AuthorizationV1Api.md new file mode 100644 index 0000000000..ee50c37ab3 --- /dev/null +++ b/kubernetes/docs/AuthorizationV1Api.md @@ -0,0 +1,224 @@ +# kubernetes.client.AuthorizationV1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_namespaced_local_subject_access_review**](AuthorizationV1Api.md#create_namespaced_local_subject_access_review) | **POST** /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews | +[**create_self_subject_access_review**](AuthorizationV1Api.md#create_self_subject_access_review) | **POST** /apis/authorization.k8s.io/v1/selfsubjectaccessreviews | +[**create_subject_access_review**](AuthorizationV1Api.md#create_subject_access_review) | **POST** /apis/authorization.k8s.io/v1/subjectaccessreviews | +[**get_api_resources**](AuthorizationV1Api.md#get_api_resources) | **GET** /apis/authorization.k8s.io/v1/ | + + +# **create_namespaced_local_subject_access_review** +> V1LocalSubjectAccessReview create_namespaced_local_subject_access_review(namespace, body, pretty=pretty) + + + +create a LocalSubjectAccessReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AuthorizationV1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1LocalSubjectAccessReview() # V1LocalSubjectAccessReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_local_subject_access_review(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AuthorizationV1Api->create_namespaced_local_subject_access_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1LocalSubjectAccessReview**](V1LocalSubjectAccessReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1LocalSubjectAccessReview**](V1LocalSubjectAccessReview.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_self_subject_access_review** +> V1SelfSubjectAccessReview create_self_subject_access_review(body, pretty=pretty) + + + +create a SelfSubjectAccessReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AuthorizationV1Api() +body = kubernetes.client.V1SelfSubjectAccessReview() # V1SelfSubjectAccessReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_self_subject_access_review(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AuthorizationV1Api->create_self_subject_access_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1SelfSubjectAccessReview**](V1SelfSubjectAccessReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1SelfSubjectAccessReview**](V1SelfSubjectAccessReview.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_subject_access_review** +> V1SubjectAccessReview create_subject_access_review(body, pretty=pretty) + + + +create a SubjectAccessReview + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AuthorizationV1Api() +body = kubernetes.client.V1SubjectAccessReview() # V1SubjectAccessReview | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_subject_access_review(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AuthorizationV1Api->create_subject_access_review: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1SubjectAccessReview**](V1SubjectAccessReview.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1SubjectAccessReview**](V1SubjectAccessReview.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_api_resources** +> V1APIResourceList get_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AuthorizationV1Api() + +try: + api_response = api_instance.get_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling AuthorizationV1Api->get_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.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/kubernetes/docs/AuthorizationV1beta1Api.md b/kubernetes/docs/AuthorizationV1beta1Api.md index 38885a515c..6ec2a972de 100644 --- a/kubernetes/docs/AuthorizationV1beta1Api.md +++ b/kubernetes/docs/AuthorizationV1beta1Api.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **create_namespaced_local_subject_access_review** -> V1beta1LocalSubjectAccessReview create_namespaced_local_subject_access_review(body, namespace, pretty=pretty) +> V1beta1LocalSubjectAccessReview create_namespaced_local_subject_access_review(namespace, body, pretty=pretty) @@ -32,12 +32,12 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AuthorizationV1beta1Api() -body = kubernetes.client.V1beta1LocalSubjectAccessReview() # V1beta1LocalSubjectAccessReview | namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1LocalSubjectAccessReview() # V1beta1LocalSubjectAccessReview | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_local_subject_access_review(body, namespace, pretty=pretty) + api_response = api_instance.create_namespaced_local_subject_access_review(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling AuthorizationV1beta1Api->create_namespaced_local_subject_access_review: %s\n" % e) @@ -47,8 +47,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1LocalSubjectAccessReview**](V1beta1LocalSubjectAccessReview.md)| | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1LocalSubjectAccessReview**](V1beta1LocalSubjectAccessReview.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -175,7 +175,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_api_resources** -> UnversionedAPIResourceList get_api_resources() +> V1APIResourceList get_api_resources() @@ -209,7 +209,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization diff --git a/kubernetes/docs/AutoscalingApi.md b/kubernetes/docs/AutoscalingApi.md index 9fb3476fda..4b3c5a7b3a 100644 --- a/kubernetes/docs/AutoscalingApi.md +++ b/kubernetes/docs/AutoscalingApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> UnversionedAPIGroup get_api_group() +> V1APIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIGroup**](UnversionedAPIGroup.md) +[**V1APIGroup**](V1APIGroup.md) ### Authorization diff --git a/kubernetes/docs/AutoscalingV1Api.md b/kubernetes/docs/AutoscalingV1Api.md index 02a196e47f..596219add2 100644 --- a/kubernetes/docs/AutoscalingV1Api.md +++ b/kubernetes/docs/AutoscalingV1Api.md @@ -75,7 +75,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_horizontal_pod_autoscaler** -> UnversionedStatus delete_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) +> V1Status delete_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) @@ -100,7 +100,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -119,13 +119,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -139,7 +139,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_horizontal_pod_autoscaler** -> UnversionedStatus delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -165,10 +165,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV1Api->delete_namespaced_horizontal_pod_autoscaler: %s\n" % e) @@ -183,11 +184,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -201,7 +203,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_api_resources** -> UnversionedAPIResourceList get_api_resources() +> V1APIResourceList get_api_resources() @@ -235,7 +237,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization @@ -273,7 +275,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -291,7 +293,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -336,7 +338,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -355,7 +357,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -398,7 +400,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -414,7 +416,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -456,7 +458,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -472,7 +474,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -515,7 +517,7 @@ api_instance = kubernetes.client.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) +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: @@ -532,7 +534,7 @@ 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] + **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 diff --git a/kubernetes/docs/AutoscalingV2alpha1Api.md b/kubernetes/docs/AutoscalingV2alpha1Api.md new file mode 100644 index 0000000000..84c9fca357 --- /dev/null +++ b/kubernetes/docs/AutoscalingV2alpha1Api.md @@ -0,0 +1,726 @@ +# kubernetes.client.AutoscalingV2alpha1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_namespaced_horizontal_pod_autoscaler**](AutoscalingV2alpha1Api.md#create_namespaced_horizontal_pod_autoscaler) | **POST** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | +[**delete_collection_namespaced_horizontal_pod_autoscaler**](AutoscalingV2alpha1Api.md#delete_collection_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | +[**delete_namespaced_horizontal_pod_autoscaler**](AutoscalingV2alpha1Api.md#delete_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**get_api_resources**](AutoscalingV2alpha1Api.md#get_api_resources) | **GET** /apis/autoscaling/v2alpha1/ | +[**list_horizontal_pod_autoscaler_for_all_namespaces**](AutoscalingV2alpha1Api.md#list_horizontal_pod_autoscaler_for_all_namespaces) | **GET** /apis/autoscaling/v2alpha1/horizontalpodautoscalers | +[**list_namespaced_horizontal_pod_autoscaler**](AutoscalingV2alpha1Api.md#list_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | +[**patch_namespaced_horizontal_pod_autoscaler**](AutoscalingV2alpha1Api.md#patch_namespaced_horizontal_pod_autoscaler) | **PATCH** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**patch_namespaced_horizontal_pod_autoscaler_status**](AutoscalingV2alpha1Api.md#patch_namespaced_horizontal_pod_autoscaler_status) | **PATCH** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +[**read_namespaced_horizontal_pod_autoscaler**](AutoscalingV2alpha1Api.md#read_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**read_namespaced_horizontal_pod_autoscaler_status**](AutoscalingV2alpha1Api.md#read_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | +[**replace_namespaced_horizontal_pod_autoscaler**](AutoscalingV2alpha1Api.md#replace_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | +[**replace_namespaced_horizontal_pod_autoscaler_status**](AutoscalingV2alpha1Api.md#replace_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | + + +# **create_namespaced_horizontal_pod_autoscaler** +> V2alpha1HorizontalPodAutoscaler create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty) + + + +create a HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AutoscalingV2alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V2alpha1HorizontalPodAutoscaler() # V2alpha1HorizontalPodAutoscaler | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV2alpha1Api->create_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** | [**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.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_collection_namespaced_horizontal_pod_autoscaler** +> V1Status delete_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AutoscalingV2alpha1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 AutoscalingV2alpha1Api->delete_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1Status**](V1Status.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_namespaced_horizontal_pod_autoscaler** +> V1Status delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +delete a HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AutoscalingV2alpha1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # 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 = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) + +try: + api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV2alpha1Api->delete_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] + **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**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + +### Return type + +[**V1Status**](V1Status.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_api_resources** +> V1APIResourceList get_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AutoscalingV2alpha1Api() + +try: + api_response = api_instance.get_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV2alpha1Api->get_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.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_horizontal_pod_autoscaler_for_all_namespaces** +> V2alpha1HorizontalPodAutoscalerList list_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AutoscalingV2alpha1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 AutoscalingV2alpha1Api->list_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V2alpha1HorizontalPodAutoscalerList**](V2alpha1HorizontalPodAutoscalerList.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_namespaced_horizontal_pod_autoscaler** +> V2alpha1HorizontalPodAutoscalerList list_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AutoscalingV2alpha1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 AutoscalingV2alpha1Api->list_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V2alpha1HorizontalPodAutoscalerList**](V2alpha1HorizontalPodAutoscalerList.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_namespaced_horizontal_pod_autoscaler** +> V2alpha1HorizontalPodAutoscaler patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + + + +partially update the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AutoscalingV2alpha1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV2alpha1Api->patch_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** | [**V1Patch**](V1Patch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.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_namespaced_horizontal_pod_autoscaler_status** +> V2alpha1HorizontalPodAutoscaler patch_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AutoscalingV2alpha1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV2alpha1Api->patch_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** | [**V1Patch**](V1Patch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.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_namespaced_horizontal_pod_autoscaler** +> V2alpha1HorizontalPodAutoscaler read_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AutoscalingV2alpha1Api() +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_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV2alpha1Api->read_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 + +[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.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_namespaced_horizontal_pod_autoscaler_status** +> V2alpha1HorizontalPodAutoscaler read_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AutoscalingV2alpha1Api() +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_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV2alpha1Api->read_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 + +[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.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_namespaced_horizontal_pod_autoscaler** +> V2alpha1HorizontalPodAutoscaler replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + + + +replace the specified HorizontalPodAutoscaler + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AutoscalingV2alpha1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V2alpha1HorizontalPodAutoscaler() # V2alpha1HorizontalPodAutoscaler | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV2alpha1Api->replace_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** | [**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.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_namespaced_horizontal_pod_autoscaler_status** +> V2alpha1HorizontalPodAutoscaler replace_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.AutoscalingV2alpha1Api() +name = 'name_example' # str | name of the HorizontalPodAutoscaler +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V2alpha1HorizontalPodAutoscaler() # V2alpha1HorizontalPodAutoscaler | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling AutoscalingV2alpha1Api->replace_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** | [**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.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) + diff --git a/kubernetes/docs/BatchApi.md b/kubernetes/docs/BatchApi.md index 3aa9c1fca7..c55b998865 100644 --- a/kubernetes/docs/BatchApi.md +++ b/kubernetes/docs/BatchApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> UnversionedAPIGroup get_api_group() +> V1APIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIGroup**](UnversionedAPIGroup.md) +[**V1APIGroup**](V1APIGroup.md) ### Authorization diff --git a/kubernetes/docs/BatchV1Api.md b/kubernetes/docs/BatchV1Api.md index 6a20b7a6a2..394fb67c1c 100644 --- a/kubernetes/docs/BatchV1Api.md +++ b/kubernetes/docs/BatchV1Api.md @@ -75,7 +75,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_job** -> UnversionedStatus delete_collection_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -100,7 +100,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -119,13 +119,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -139,7 +139,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_job** -> UnversionedStatus delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -165,10 +165,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling BatchV1Api->delete_namespaced_job: %s\n" % e) @@ -183,11 +184,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -201,7 +203,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_api_resources** -> UnversionedAPIResourceList get_api_resources() +> V1APIResourceList get_api_resources() @@ -235,7 +237,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization @@ -273,7 +275,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -291,7 +293,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -336,7 +338,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -355,7 +357,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -398,7 +400,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -414,7 +416,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -456,7 +458,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -472,7 +474,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -515,7 +517,7 @@ api_instance = kubernetes.client.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) +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: @@ -532,7 +534,7 @@ 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] + **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 diff --git a/kubernetes/docs/BatchV2alpha1Api.md b/kubernetes/docs/BatchV2alpha1Api.md index 55309e9a0d..213ea71ec6 100644 --- a/kubernetes/docs/BatchV2alpha1Api.md +++ b/kubernetes/docs/BatchV2alpha1Api.md @@ -5,37 +5,26 @@ All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_namespaced_cron_job**](BatchV2alpha1Api.md#create_namespaced_cron_job) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | -[**create_namespaced_job**](BatchV2alpha1Api.md#create_namespaced_job) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/jobs | [**create_namespaced_scheduled_job**](BatchV2alpha1Api.md#create_namespaced_scheduled_job) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | [**delete_collection_namespaced_cron_job**](BatchV2alpha1Api.md#delete_collection_namespaced_cron_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | -[**delete_collection_namespaced_job**](BatchV2alpha1Api.md#delete_collection_namespaced_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/jobs | [**delete_collection_namespaced_scheduled_job**](BatchV2alpha1Api.md#delete_collection_namespaced_scheduled_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | [**delete_namespaced_cron_job**](BatchV2alpha1Api.md#delete_namespaced_cron_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | -[**delete_namespaced_job**](BatchV2alpha1Api.md#delete_namespaced_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | [**delete_namespaced_scheduled_job**](BatchV2alpha1Api.md#delete_namespaced_scheduled_job) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | [**get_api_resources**](BatchV2alpha1Api.md#get_api_resources) | **GET** /apis/batch/v2alpha1/ | [**list_cron_job_for_all_namespaces**](BatchV2alpha1Api.md#list_cron_job_for_all_namespaces) | **GET** /apis/batch/v2alpha1/cronjobs | -[**list_job_for_all_namespaces**](BatchV2alpha1Api.md#list_job_for_all_namespaces) | **GET** /apis/batch/v2alpha1/jobs | [**list_namespaced_cron_job**](BatchV2alpha1Api.md#list_namespaced_cron_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | -[**list_namespaced_job**](BatchV2alpha1Api.md#list_namespaced_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/jobs | [**list_namespaced_scheduled_job**](BatchV2alpha1Api.md#list_namespaced_scheduled_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | [**list_scheduled_job_for_all_namespaces**](BatchV2alpha1Api.md#list_scheduled_job_for_all_namespaces) | **GET** /apis/batch/v2alpha1/scheduledjobs | [**patch_namespaced_cron_job**](BatchV2alpha1Api.md#patch_namespaced_cron_job) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | [**patch_namespaced_cron_job_status**](BatchV2alpha1Api.md#patch_namespaced_cron_job_status) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | -[**patch_namespaced_job**](BatchV2alpha1Api.md#patch_namespaced_job) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | -[**patch_namespaced_job_status**](BatchV2alpha1Api.md#patch_namespaced_job_status) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status | [**patch_namespaced_scheduled_job**](BatchV2alpha1Api.md#patch_namespaced_scheduled_job) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | [**patch_namespaced_scheduled_job_status**](BatchV2alpha1Api.md#patch_namespaced_scheduled_job_status) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | [**read_namespaced_cron_job**](BatchV2alpha1Api.md#read_namespaced_cron_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | [**read_namespaced_cron_job_status**](BatchV2alpha1Api.md#read_namespaced_cron_job_status) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | -[**read_namespaced_job**](BatchV2alpha1Api.md#read_namespaced_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | -[**read_namespaced_job_status**](BatchV2alpha1Api.md#read_namespaced_job_status) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status | [**read_namespaced_scheduled_job**](BatchV2alpha1Api.md#read_namespaced_scheduled_job) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | [**read_namespaced_scheduled_job_status**](BatchV2alpha1Api.md#read_namespaced_scheduled_job_status) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | [**replace_namespaced_cron_job**](BatchV2alpha1Api.md#replace_namespaced_cron_job) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | [**replace_namespaced_cron_job_status**](BatchV2alpha1Api.md#replace_namespaced_cron_job_status) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | -[**replace_namespaced_job**](BatchV2alpha1Api.md#replace_namespaced_job) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name} | -[**replace_namespaced_job_status**](BatchV2alpha1Api.md#replace_namespaced_job_status) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status | [**replace_namespaced_scheduled_job**](BatchV2alpha1Api.md#replace_namespaced_scheduled_job) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | [**replace_namespaced_scheduled_job_status**](BatchV2alpha1Api.md#replace_namespaced_scheduled_job_status) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | @@ -96,62 +85,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_job** -> V2alpha1Job create_namespaced_job(namespace, body, pretty=pretty) - - - -create a Job - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V2alpha1Job() # V2alpha1Job | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_namespaced_job(namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->create_namespaced_job: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1Job**](V2alpha1Job.md)| | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1Job**](V2alpha1Job.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_namespaced_scheduled_job** > V2alpha1CronJob create_namespaced_scheduled_job(namespace, body, pretty=pretty) @@ -209,7 +142,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_cron_job** -> UnversionedStatus delete_collection_namespaced_cron_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_cron_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -234,7 +167,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -253,77 +186,13 @@ 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_collection_namespaced_job** -> UnversionedStatus delete_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 kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api() -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_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 BatchV2alpha1Api->delete_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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -337,7 +206,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_scheduled_job** -> UnversionedStatus delete_collection_namespaced_scheduled_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_scheduled_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -362,7 +231,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -381,13 +250,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -401,7 +270,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_cron_job** -> UnversionedStatus delete_namespaced_cron_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_cron_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -427,10 +296,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_cron_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_cron_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling BatchV2alpha1Api->delete_namespaced_cron_job: %s\n" % e) @@ -445,73 +315,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] - -### 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_namespaced_job** -> UnversionedStatus delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) - - - -delete a Job - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the Job -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # 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 = true # 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) - -try: - api_response = api_instance.delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->delete_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] - **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -525,7 +334,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_scheduled_job** -> UnversionedStatus delete_namespaced_scheduled_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_scheduled_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -548,516 +357,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV2alpha1Api() name = 'name_example' # str | name of the ScheduledJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # 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 = true # 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) - -try: - api_response = api_instance.delete_namespaced_scheduled_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->delete_namespaced_scheduled_job: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ScheduledJob | - **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] - **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] - -### 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_api_resources** -> UnversionedAPIResourceList get_api_resources() - - - -get available resources - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api() - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->get_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_cron_job_for_all_namespaces** -> V2alpha1CronJobList list_cron_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 CronJob - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api() -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_cron_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 BatchV2alpha1Api->list_cron_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 - -[**V2alpha1CronJobList**](V2alpha1CronJobList.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_job_for_all_namespaces** -> V2alpha1JobList list_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 kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api() -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_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 BatchV2alpha1Api->list_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 - -[**V2alpha1JobList**](V2alpha1JobList.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_namespaced_cron_job** -> V2alpha1CronJobList list_namespaced_cron_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 CronJob - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api() -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_namespaced_cron_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 BatchV2alpha1Api->list_namespaced_cron_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 - -[**V2alpha1CronJobList**](V2alpha1CronJobList.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_namespaced_job** -> V2alpha1JobList list_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 kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api() -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_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 BatchV2alpha1Api->list_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 - -[**V2alpha1JobList**](V2alpha1JobList.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_namespaced_scheduled_job** -> V2alpha1CronJobList list_namespaced_scheduled_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 ScheduledJob - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api() -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_namespaced_scheduled_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 BatchV2alpha1Api->list_namespaced_scheduled_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 - -[**V2alpha1CronJobList**](V2alpha1CronJobList.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_scheduled_job_for_all_namespaces** -> V2alpha1CronJobList list_scheduled_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 ScheduledJob - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api() -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_scheduled_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 BatchV2alpha1Api->list_scheduled_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 - -[**V2alpha1CronJobList**](V2alpha1CronJobList.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_namespaced_cron_job** -> V2alpha1CronJob patch_namespaced_cron_job(name, namespace, body, pretty=pretty) - - - -partially update the specified CronJob - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the CronJob -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # 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 = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.patch_namespaced_cron_job(name, namespace, body, pretty=pretty) + api_response = api_instance.delete_namespaced_scheduled_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->patch_namespaced_cron_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->delete_namespaced_scheduled_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CronJob | + **name** | **str**| name of the ScheduledJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **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**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**V2alpha1CronJob**](V2alpha1CronJob.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1065,17 +392,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **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) -# **patch_namespaced_cron_job_status** -> V2alpha1CronJob patch_namespaced_cron_job_status(name, namespace, body, pretty=pretty) +# **get_api_resources** +> V1APIResourceList get_api_resources() -partially update status of the specified CronJob +get available resources ### Example ```python @@ -1092,30 +419,20 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the CronJob -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_cron_job_status(name, namespace, body, pretty=pretty) + api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->patch_namespaced_cron_job_status: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->get_api_resources: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CronJob | - **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] +This endpoint does not need any parameter. ### Return type -[**V2alpha1CronJob**](V2alpha1CronJob.md) +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization @@ -1123,17 +440,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json + - **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) -# **patch_namespaced_job** -> V2alpha1Job patch_namespaced_job(name, namespace, body, pretty=pretty) +# **list_cron_job_for_all_namespaces** +> V2alpha1CronJobList list_cron_job_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -partially update the specified Job +list or watch objects of kind CronJob ### Example ```python @@ -1150,30 +467,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the Job -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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.patch_namespaced_job(name, namespace, body, pretty=pretty) + api_response = api_instance.list_cron_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 BatchV2alpha1Api->patch_namespaced_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->list_cron_job_for_all_namespaces: %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)| | + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 -[**V2alpha1Job**](V2alpha1Job.md) +[**V2alpha1CronJobList**](V2alpha1CronJobList.md) ### Authorization @@ -1181,17 +502,17 @@ Name | Type | Description | Notes ### 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 + - **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_namespaced_job_status** -> V2alpha1Job patch_namespaced_job_status(name, namespace, body, pretty=pretty) +# **list_namespaced_cron_job** +> V2alpha1CronJobList list_namespaced_cron_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -partially update status of the specified Job +list or watch objects of kind CronJob ### Example ```python @@ -1208,30 +529,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | 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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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.patch_namespaced_job_status(name, namespace, body, pretty=pretty) + api_response = api_instance.list_namespaced_cron_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 BatchV2alpha1Api->patch_namespaced_job_status: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->list_namespaced_cron_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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 -[**V2alpha1Job**](V2alpha1Job.md) +[**V2alpha1CronJobList**](V2alpha1CronJobList.md) ### Authorization @@ -1239,17 +566,17 @@ Name | Type | Description | Notes ### 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 + - **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_namespaced_scheduled_job** -> V2alpha1CronJob patch_namespaced_scheduled_job(name, namespace, body, pretty=pretty) +# **list_namespaced_scheduled_job** +> V2alpha1CronJobList list_namespaced_scheduled_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -partially update the specified ScheduledJob +list or watch objects of kind ScheduledJob ### Example ```python @@ -1266,30 +593,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the ScheduledJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | 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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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.patch_namespaced_scheduled_job(name, namespace, body, pretty=pretty) + api_response = api_instance.list_namespaced_scheduled_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 BatchV2alpha1Api->patch_namespaced_scheduled_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->list_namespaced_scheduled_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ScheduledJob | **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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 -[**V2alpha1CronJob**](V2alpha1CronJob.md) +[**V2alpha1CronJobList**](V2alpha1CronJobList.md) ### Authorization @@ -1297,17 +630,17 @@ Name | Type | Description | Notes ### 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 + - **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_namespaced_scheduled_job_status** -> V2alpha1CronJob patch_namespaced_scheduled_job_status(name, namespace, body, pretty=pretty) +# **list_scheduled_job_for_all_namespaces** +> V2alpha1CronJobList list_scheduled_job_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -partially update status of the specified ScheduledJob +list or watch objects of kind ScheduledJob ### Example ```python @@ -1324,30 +657,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the ScheduledJob -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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.patch_namespaced_scheduled_job_status(name, namespace, body, pretty=pretty) + api_response = api_instance.list_scheduled_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 BatchV2alpha1Api->patch_namespaced_scheduled_job_status: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->list_scheduled_job_for_all_namespaces: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ScheduledJob | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 -[**V2alpha1CronJob**](V2alpha1CronJob.md) +[**V2alpha1CronJobList**](V2alpha1CronJobList.md) ### Authorization @@ -1355,17 +692,17 @@ Name | Type | Description | Notes ### 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 + - **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) -# **read_namespaced_cron_job** -> V2alpha1CronJob read_namespaced_cron_job(name, namespace, pretty=pretty, exact=exact, export=export) +# **patch_namespaced_cron_job** +> V2alpha1CronJob patch_namespaced_cron_job(name, namespace, body, pretty=pretty) -read the specified CronJob +partially update the specified CronJob ### Example ```python @@ -1384,15 +721,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV2alpha1Api() name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | 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_namespaced_cron_job(name, namespace, pretty=pretty, exact=exact, export=export) + api_response = api_instance.patch_namespaced_cron_job(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->read_namespaced_cron_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->patch_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -1401,9 +737,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | **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 @@ -1415,17 +750,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **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_namespaced_cron_job_status** -> V2alpha1CronJob read_namespaced_cron_job_status(name, namespace, pretty=pretty) +# **patch_namespaced_cron_job_status** +> V2alpha1CronJob patch_namespaced_cron_job_status(name, namespace, body, pretty=pretty) -read status of the specified CronJob +partially update status of the specified CronJob ### Example ```python @@ -1444,13 +779,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV2alpha1Api() name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.read_namespaced_cron_job_status(name, namespace, pretty=pretty) + api_response = api_instance.patch_namespaced_cron_job_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->read_namespaced_cron_job_status: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->patch_namespaced_cron_job_status: %s\n" % e) ``` ### Parameters @@ -1459,6 +795,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -1471,17 +808,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **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_namespaced_job** -> V2alpha1Job read_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) +# **patch_namespaced_scheduled_job** +> V2alpha1CronJob patch_namespaced_scheduled_job(name, namespace, body, pretty=pretty) -read the specified Job +partially update the specified ScheduledJob ### Example ```python @@ -1498,32 +835,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the Job +name = 'name_example' # str | name of the ScheduledJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | 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_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) + api_response = api_instance.patch_namespaced_scheduled_job(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->read_namespaced_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->patch_namespaced_scheduled_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Job | + **name** | **str**| name of the ScheduledJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | **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 -[**V2alpha1Job**](V2alpha1Job.md) +[**V2alpha1CronJob**](V2alpha1CronJob.md) ### Authorization @@ -1531,17 +866,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **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_namespaced_job_status** -> V2alpha1Job read_namespaced_job_status(name, namespace, pretty=pretty) +# **patch_namespaced_scheduled_job_status** +> V2alpha1CronJob patch_namespaced_scheduled_job_status(name, namespace, body, pretty=pretty) -read status of the specified Job +partially update status of the specified ScheduledJob ### Example ```python @@ -1558,28 +893,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the Job +name = 'name_example' # str | name of the ScheduledJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.read_namespaced_job_status(name, namespace, pretty=pretty) + api_response = api_instance.patch_namespaced_scheduled_job_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->read_namespaced_job_status: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->patch_namespaced_scheduled_job_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Job | + **name** | **str**| name of the ScheduledJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V2alpha1Job**](V2alpha1Job.md) +[**V2alpha1CronJob**](V2alpha1CronJob.md) ### Authorization @@ -1587,17 +924,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **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_namespaced_scheduled_job** -> V2alpha1CronJob read_namespaced_scheduled_job(name, namespace, pretty=pretty, exact=exact, export=export) +# **read_namespaced_cron_job** +> V2alpha1CronJob read_namespaced_cron_job(name, namespace, pretty=pretty, exact=exact, export=export) -read the specified ScheduledJob +read the specified CronJob ### Example ```python @@ -1614,27 +951,27 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the ScheduledJob +name = 'name_example' # str | name of the CronJob 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) +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_namespaced_scheduled_job(name, namespace, pretty=pretty, exact=exact, export=export) + api_response = api_instance.read_namespaced_cron_job(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->read_namespaced_scheduled_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->read_namespaced_cron_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ScheduledJob | + **name** | **str**| name of the CronJob | **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] + **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 @@ -1652,12 +989,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_scheduled_job_status** -> V2alpha1CronJob read_namespaced_scheduled_job_status(name, namespace, pretty=pretty) +# **read_namespaced_cron_job_status** +> V2alpha1CronJob read_namespaced_cron_job_status(name, namespace, pretty=pretty) -read status of the specified ScheduledJob +read status of the specified CronJob ### Example ```python @@ -1674,22 +1011,22 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the ScheduledJob +name = 'name_example' # str | name of the CronJob 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_namespaced_scheduled_job_status(name, namespace, pretty=pretty) + api_response = api_instance.read_namespaced_cron_job_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->read_namespaced_scheduled_job_status: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->read_namespaced_cron_job_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ScheduledJob | + **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] @@ -1708,12 +1045,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_cron_job** -> V2alpha1CronJob replace_namespaced_cron_job(name, namespace, body, pretty=pretty) +# **read_namespaced_scheduled_job** +> V2alpha1CronJob read_namespaced_scheduled_job(name, namespace, pretty=pretty, exact=exact, export=export) -replace the specified CronJob +read the specified ScheduledJob ### Example ```python @@ -1730,26 +1067,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the CronJob +name = 'name_example' # str | name of the ScheduledJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V2alpha1CronJob() # V2alpha1CronJob | 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.replace_namespaced_cron_job(name, namespace, body, pretty=pretty) + api_response = api_instance.read_namespaced_scheduled_job(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->replace_namespaced_cron_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->read_namespaced_scheduled_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CronJob | + **name** | **str**| name of the ScheduledJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | **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 @@ -1766,12 +1105,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_cron_job_status** -> V2alpha1CronJob replace_namespaced_cron_job_status(name, namespace, body, pretty=pretty) +# **read_namespaced_scheduled_job_status** +> V2alpha1CronJob read_namespaced_scheduled_job_status(name, namespace, pretty=pretty) -replace status of the specified CronJob +read status of the specified ScheduledJob ### Example ```python @@ -1788,25 +1127,23 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the CronJob +name = 'name_example' # str | name of the ScheduledJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V2alpha1CronJob() # V2alpha1CronJob | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_cron_job_status(name, namespace, body, pretty=pretty) + api_response = api_instance.read_namespaced_scheduled_job_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->replace_namespaced_cron_job_status: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->read_namespaced_scheduled_job_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CronJob | + **name** | **str**| name of the ScheduledJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -1824,12 +1161,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_job** -> V2alpha1Job replace_namespaced_job(name, namespace, body, pretty=pretty) +# **replace_namespaced_cron_job** +> V2alpha1CronJob replace_namespaced_cron_job(name, namespace, body, pretty=pretty) -replace the specified Job +replace the specified CronJob ### Example ```python @@ -1846,30 +1183,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the Job +name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V2alpha1Job() # V2alpha1Job | +body = kubernetes.client.V2alpha1CronJob() # V2alpha1CronJob | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_job(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_namespaced_cron_job(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->replace_namespaced_job: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->replace_namespaced_cron_job: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Job | + **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1Job**](V2alpha1Job.md)| | + **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V2alpha1Job**](V2alpha1Job.md) +[**V2alpha1CronJob**](V2alpha1CronJob.md) ### Authorization @@ -1882,12 +1219,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_job_status** -> V2alpha1Job replace_namespaced_job_status(name, namespace, body, pretty=pretty) +# **replace_namespaced_cron_job_status** +> V2alpha1CronJob replace_namespaced_cron_job_status(name, namespace, body, pretty=pretty) -replace status of the specified Job +replace status of the specified CronJob ### Example ```python @@ -1904,30 +1241,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api() -name = 'name_example' # str | name of the Job +name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V2alpha1Job() # V2alpha1Job | +body = kubernetes.client.V2alpha1CronJob() # V2alpha1CronJob | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_job_status(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_namespaced_cron_job_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling BatchV2alpha1Api->replace_namespaced_job_status: %s\n" % e) + print("Exception when calling BatchV2alpha1Api->replace_namespaced_cron_job_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Job | + **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1Job**](V2alpha1Job.md)| | + **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V2alpha1Job**](V2alpha1Job.md) +[**V2alpha1CronJob**](V2alpha1CronJob.md) ### Authorization diff --git a/kubernetes/docs/CertificatesApi.md b/kubernetes/docs/CertificatesApi.md index 2bebfabb07..039f87d85b 100644 --- a/kubernetes/docs/CertificatesApi.md +++ b/kubernetes/docs/CertificatesApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> UnversionedAPIGroup get_api_group() +> V1APIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIGroup**](UnversionedAPIGroup.md) +[**V1APIGroup**](V1APIGroup.md) ### Authorization diff --git a/kubernetes/docs/CertificatesV1alpha1Api.md b/kubernetes/docs/CertificatesV1beta1Api.md similarity index 68% rename from kubernetes/docs/CertificatesV1alpha1Api.md rename to kubernetes/docs/CertificatesV1beta1Api.md index d8f158f2cb..11fef9a3e6 100644 --- a/kubernetes/docs/CertificatesV1alpha1Api.md +++ b/kubernetes/docs/CertificatesV1beta1Api.md @@ -1,23 +1,23 @@ -# kubernetes.client.CertificatesV1alpha1Api +# kubernetes.client.CertificatesV1beta1Api All URIs are relative to *https://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_certificate_signing_request**](CertificatesV1alpha1Api.md#create_certificate_signing_request) | **POST** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | -[**delete_certificate_signing_request**](CertificatesV1alpha1Api.md#delete_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | -[**delete_collection_certificate_signing_request**](CertificatesV1alpha1Api.md#delete_collection_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | -[**get_api_resources**](CertificatesV1alpha1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | -[**list_certificate_signing_request**](CertificatesV1alpha1Api.md#list_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests | -[**patch_certificate_signing_request**](CertificatesV1alpha1Api.md#patch_certificate_signing_request) | **PATCH** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | -[**read_certificate_signing_request**](CertificatesV1alpha1Api.md#read_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | -[**replace_certificate_signing_request**](CertificatesV1alpha1Api.md#replace_certificate_signing_request) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name} | -[**replace_certificate_signing_request_approval**](CertificatesV1alpha1Api.md#replace_certificate_signing_request_approval) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/approval | -[**replace_certificate_signing_request_status**](CertificatesV1alpha1Api.md#replace_certificate_signing_request_status) | **PUT** /apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/status | +[**create_certificate_signing_request**](CertificatesV1beta1Api.md#create_certificate_signing_request) | **POST** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | +[**delete_certificate_signing_request**](CertificatesV1beta1Api.md#delete_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | +[**delete_collection_certificate_signing_request**](CertificatesV1beta1Api.md#delete_collection_certificate_signing_request) | **DELETE** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | +[**get_api_resources**](CertificatesV1beta1Api.md#get_api_resources) | **GET** /apis/certificates.k8s.io/v1beta1/ | +[**list_certificate_signing_request**](CertificatesV1beta1Api.md#list_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | +[**patch_certificate_signing_request**](CertificatesV1beta1Api.md#patch_certificate_signing_request) | **PATCH** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | +[**read_certificate_signing_request**](CertificatesV1beta1Api.md#read_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | +[**replace_certificate_signing_request**](CertificatesV1beta1Api.md#replace_certificate_signing_request) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | +[**replace_certificate_signing_request_approval**](CertificatesV1beta1Api.md#replace_certificate_signing_request_approval) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval | +[**replace_certificate_signing_request_status**](CertificatesV1beta1Api.md#replace_certificate_signing_request_status) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status | # **create_certificate_signing_request** -> V1alpha1CertificateSigningRequest create_certificate_signing_request(body, pretty=pretty) +> V1beta1CertificateSigningRequest create_certificate_signing_request(body, pretty=pretty) @@ -37,27 +37,27 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' # create an instance of the API class -api_instance = kubernetes.client.CertificatesV1alpha1Api() -body = kubernetes.client.V1alpha1CertificateSigningRequest() # V1alpha1CertificateSigningRequest | +api_instance = kubernetes.client.CertificatesV1beta1Api() +body = kubernetes.client.V1beta1CertificateSigningRequest() # V1beta1CertificateSigningRequest | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.create_certificate_signing_request(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CertificatesV1alpha1Api->create_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1beta1Api->create_certificate_signing_request: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md)| | + **body** | [**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) +[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) ### Authorization @@ -71,7 +71,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_certificate_signing_request** -> UnversionedStatus delete_certificate_signing_request(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_certificate_signing_request(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -91,18 +91,19 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' # create an instance of the API class -api_instance = kubernetes.client.CertificatesV1alpha1Api() +api_instance = kubernetes.client.CertificatesV1beta1Api() name = 'name_example' # str | name of the CertificateSigningRequest body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_certificate_signing_request(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_certificate_signing_request(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling CertificatesV1alpha1Api->delete_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1beta1Api->delete_certificate_signing_request: %s\n" % e) ``` ### Parameters @@ -113,11 +114,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -131,7 +133,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_certificate_signing_request** -> UnversionedStatus delete_collection_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -151,11 +153,11 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' # create an instance of the API class -api_instance = kubernetes.client.CertificatesV1alpha1Api() +api_instance = kubernetes.client.CertificatesV1beta1Api() 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -163,7 +165,7 @@ try: api_response = api_instance.delete_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_collection_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1beta1Api->delete_collection_certificate_signing_request: %s\n" % e) ``` ### Parameters @@ -173,13 +175,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -193,7 +195,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_api_resources** -> UnversionedAPIResourceList get_api_resources() +> V1APIResourceList get_api_resources() @@ -213,13 +215,13 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' # create an instance of the API class -api_instance = kubernetes.client.CertificatesV1alpha1Api() +api_instance = kubernetes.client.CertificatesV1beta1Api() try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: - print("Exception when calling CertificatesV1alpha1Api->get_api_resources: %s\n" % e) + print("Exception when calling CertificatesV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -227,7 +229,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization @@ -241,7 +243,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[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_certificate_signing_request** -> V1alpha1CertificateSigningRequestList list_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1CertificateSigningRequestList list_certificate_signing_request(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -261,11 +263,11 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' # create an instance of the API class -api_instance = kubernetes.client.CertificatesV1alpha1Api() +api_instance = kubernetes.client.CertificatesV1beta1Api() 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -273,7 +275,7 @@ try: api_response = api_instance.list_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_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1beta1Api->list_certificate_signing_request: %s\n" % e) ``` ### Parameters @@ -283,13 +285,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1beta1CertificateSigningRequestList**](V1beta1CertificateSigningRequestList.md) ### Authorization @@ -303,7 +305,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_certificate_signing_request** -> V1alpha1CertificateSigningRequest patch_certificate_signing_request(name, body, pretty=pretty) +> V1beta1CertificateSigningRequest patch_certificate_signing_request(name, body, pretty=pretty) @@ -323,16 +325,16 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' # create an instance of the API class -api_instance = kubernetes.client.CertificatesV1alpha1Api() +api_instance = kubernetes.client.CertificatesV1beta1Api() name = 'name_example' # str | name of the CertificateSigningRequest -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.patch_certificate_signing_request(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CertificatesV1alpha1Api->patch_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1beta1Api->patch_certificate_signing_request: %s\n" % e) ``` ### Parameters @@ -340,12 +342,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CertificateSigningRequest | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) +[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) ### Authorization @@ -359,7 +361,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_certificate_signing_request** -> V1alpha1CertificateSigningRequest read_certificate_signing_request(name, pretty=pretty, exact=exact, export=export) +> V1beta1CertificateSigningRequest read_certificate_signing_request(name, pretty=pretty, exact=exact, export=export) @@ -379,17 +381,17 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' # create an instance of the API class -api_instance = kubernetes.client.CertificatesV1alpha1Api() +api_instance = kubernetes.client.CertificatesV1beta1Api() 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) +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_certificate_signing_request(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling CertificatesV1alpha1Api->read_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1beta1Api->read_certificate_signing_request: %s\n" % e) ``` ### Parameters @@ -398,12 +400,12 @@ 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] + **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) +[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) ### Authorization @@ -417,7 +419,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_certificate_signing_request** -> V1alpha1CertificateSigningRequest replace_certificate_signing_request(name, body, pretty=pretty) +> V1beta1CertificateSigningRequest replace_certificate_signing_request(name, body, pretty=pretty) @@ -437,16 +439,16 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' # create an instance of the API class -api_instance = kubernetes.client.CertificatesV1alpha1Api() +api_instance = kubernetes.client.CertificatesV1beta1Api() name = 'name_example' # str | name of the CertificateSigningRequest -body = kubernetes.client.V1alpha1CertificateSigningRequest() # V1alpha1CertificateSigningRequest | +body = kubernetes.client.V1beta1CertificateSigningRequest() # V1beta1CertificateSigningRequest | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.replace_certificate_signing_request(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CertificatesV1alpha1Api->replace_certificate_signing_request: %s\n" % e) + print("Exception when calling CertificatesV1beta1Api->replace_certificate_signing_request: %s\n" % e) ``` ### Parameters @@ -454,12 +456,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CertificateSigningRequest | - **body** | [**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md)| | + **body** | [**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) +[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) ### Authorization @@ -473,7 +475,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_certificate_signing_request_approval** -> V1alpha1CertificateSigningRequest replace_certificate_signing_request_approval(body, name, pretty=pretty) +> V1beta1CertificateSigningRequest replace_certificate_signing_request_approval(name, body, pretty=pretty) @@ -493,29 +495,29 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' # create an instance of the API class -api_instance = kubernetes.client.CertificatesV1alpha1Api() -body = kubernetes.client.V1alpha1CertificateSigningRequest() # V1alpha1CertificateSigningRequest | +api_instance = kubernetes.client.CertificatesV1beta1Api() name = 'name_example' # str | name of the CertificateSigningRequest +body = kubernetes.client.V1beta1CertificateSigningRequest() # V1beta1CertificateSigningRequest | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_certificate_signing_request_approval(body, name, pretty=pretty) + api_response = api_instance.replace_certificate_signing_request_approval(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CertificatesV1alpha1Api->replace_certificate_signing_request_approval: %s\n" % e) + print("Exception when calling CertificatesV1beta1Api->replace_certificate_signing_request_approval: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md)| | **name** | **str**| name of the CertificateSigningRequest | + **body** | [**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) +[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) ### Authorization @@ -529,7 +531,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_certificate_signing_request_status** -> V1alpha1CertificateSigningRequest replace_certificate_signing_request_status(body, name, pretty=pretty) +> V1beta1CertificateSigningRequest replace_certificate_signing_request_status(name, body, pretty=pretty) @@ -549,29 +551,29 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' # create an instance of the API class -api_instance = kubernetes.client.CertificatesV1alpha1Api() -body = kubernetes.client.V1alpha1CertificateSigningRequest() # V1alpha1CertificateSigningRequest | +api_instance = kubernetes.client.CertificatesV1beta1Api() name = 'name_example' # str | name of the CertificateSigningRequest +body = kubernetes.client.V1beta1CertificateSigningRequest() # V1beta1CertificateSigningRequest | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_certificate_signing_request_status(body, name, pretty=pretty) + api_response = api_instance.replace_certificate_signing_request_status(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling CertificatesV1alpha1Api->replace_certificate_signing_request_status: %s\n" % e) + print("Exception when calling CertificatesV1beta1Api->replace_certificate_signing_request_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md)| | **name** | **str**| name of the CertificateSigningRequest | + **body** | [**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1alpha1CertificateSigningRequest**](V1alpha1CertificateSigningRequest.md) +[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) ### Authorization diff --git a/kubernetes/docs/CoreApi.md b/kubernetes/docs/CoreApi.md index a0e62c2eeb..07cc530107 100644 --- a/kubernetes/docs/CoreApi.md +++ b/kubernetes/docs/CoreApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_versions** -> UnversionedAPIVersions get_api_versions() +> V1APIVersions get_api_versions() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIVersions**](UnversionedAPIVersions.md) +[**V1APIVersions**](V1APIVersions.md) ### Authorization diff --git a/kubernetes/docs/CoreV1Api.md b/kubernetes/docs/CoreV1Api.md index 99789bf1d8..33394d31be 100644 --- a/kubernetes/docs/CoreV1Api.md +++ b/kubernetes/docs/CoreV1Api.md @@ -170,6 +170,12 @@ Method | HTTP request | Description [**proxy_options_namespaced_service_with_path**](CoreV1Api.md#proxy_options_namespaced_service_with_path) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | [**proxy_options_node**](CoreV1Api.md#proxy_options_node) | **OPTIONS** /api/v1/proxy/nodes/{name} | [**proxy_options_node_with_path**](CoreV1Api.md#proxy_options_node_with_path) | **OPTIONS** /api/v1/proxy/nodes/{name}/{path} | +[**proxy_patch_namespaced_pod**](CoreV1Api.md#proxy_patch_namespaced_pod) | **PATCH** /api/v1/proxy/namespaces/{namespace}/pods/{name} | +[**proxy_patch_namespaced_pod_with_path**](CoreV1Api.md#proxy_patch_namespaced_pod_with_path) | **PATCH** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | +[**proxy_patch_namespaced_service**](CoreV1Api.md#proxy_patch_namespaced_service) | **PATCH** /api/v1/proxy/namespaces/{namespace}/services/{name} | +[**proxy_patch_namespaced_service_with_path**](CoreV1Api.md#proxy_patch_namespaced_service_with_path) | **PATCH** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | +[**proxy_patch_node**](CoreV1Api.md#proxy_patch_node) | **PATCH** /api/v1/proxy/nodes/{name} | +[**proxy_patch_node_with_path**](CoreV1Api.md#proxy_patch_node_with_path) | **PATCH** /api/v1/proxy/nodes/{name}/{path} | [**proxy_post_namespaced_pod**](CoreV1Api.md#proxy_post_namespaced_pod) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name} | [**proxy_post_namespaced_pod_with_path**](CoreV1Api.md#proxy_post_namespaced_pod_with_path) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | [**proxy_post_namespaced_service**](CoreV1Api.md#proxy_post_namespaced_service) | **POST** /api/v1/proxy/namespaces/{namespace}/services/{name} | @@ -704,7 +710,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_get_namespaced_pod_portforward** -> str connect_get_namespaced_pod_portforward(name, namespace) +> str connect_get_namespaced_pod_portforward(name, namespace, ports=ports) @@ -727,9 +733,10 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +ports = 56 # int | List of ports to forward Required when using WebSockets (optional) try: - api_response = api_instance.connect_get_namespaced_pod_portforward(name, namespace) + api_response = api_instance.connect_get_namespaced_pod_portforward(name, namespace, ports=ports) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_get_namespaced_pod_portforward: %s\n" % e) @@ -741,6 +748,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Pod | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **ports** | **int**| List of ports to forward Required when using WebSockets | [optional] ### Return type @@ -1902,7 +1910,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_post_namespaced_pod_portforward** -> str connect_post_namespaced_pod_portforward(name, namespace) +> str connect_post_namespaced_pod_portforward(name, namespace, ports=ports) @@ -1925,9 +1933,10 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +ports = 56 # int | List of ports to forward Required when using WebSockets (optional) try: - api_response = api_instance.connect_post_namespaced_pod_portforward(name, namespace) + api_response = api_instance.connect_post_namespaced_pod_portforward(name, namespace, ports=ports) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_post_namespaced_pod_portforward: %s\n" % e) @@ -1939,6 +1948,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Pod | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **ports** | **int**| List of ports to forward Required when using WebSockets | [optional] ### Return type @@ -2686,7 +2696,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_binding** -> V1Binding create_namespaced_binding(body, namespace, pretty=pretty) +> V1Binding create_namespaced_binding(namespace, body, pretty=pretty) @@ -2707,12 +2717,12 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -body = kubernetes.client.V1Binding() # V1Binding | namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Binding() # V1Binding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_binding(body, namespace, pretty=pretty) + api_response = api_instance.create_namespaced_binding(namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_binding: %s\n" % e) @@ -2722,8 +2732,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1Binding**](V1Binding.md)| | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Binding**](V1Binding.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2742,7 +2752,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_binding_binding** -> V1Binding create_namespaced_binding_binding(body, name, namespace, pretty=pretty) +> V1Binding create_namespaced_binding_binding(name, namespace, body, pretty=pretty) @@ -2763,13 +2773,13 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -body = kubernetes.client.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 +body = kubernetes.client.V1Binding() # V1Binding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_binding_binding(body, name, namespace, pretty=pretty) + api_response = api_instance.create_namespaced_binding_binding(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_binding_binding: %s\n" % e) @@ -2779,9 +2789,9 @@ except ApiException as e: 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 | + **body** | [**V1Binding**](V1Binding.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2968,7 +2978,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_eviction_eviction** -> V1beta1Eviction create_namespaced_eviction_eviction(body, name, namespace, pretty=pretty) +> V1beta1Eviction create_namespaced_eviction_eviction(name, namespace, body, pretty=pretty) @@ -2989,13 +2999,13 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -body = kubernetes.client.V1beta1Eviction() # V1beta1Eviction | name = 'name_example' # str | name of the Eviction namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1Eviction() # V1beta1Eviction | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_eviction_eviction(body, name, namespace, pretty=pretty) + api_response = api_instance.create_namespaced_eviction_eviction(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_eviction_eviction: %s\n" % e) @@ -3005,9 +3015,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1Eviction**](V1beta1Eviction.md)| | **name** | **str**| name of the Eviction | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Eviction**](V1beta1Eviction.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -3638,7 +3648,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespace** -> UnversionedStatus delete_collection_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespace(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3662,7 +3672,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -3680,13 +3690,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -3700,7 +3710,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_config_map** -> UnversionedStatus delete_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) +> V1Status delete_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) @@ -3725,7 +3735,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -3744,13 +3754,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -3764,7 +3774,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_endpoints** -> UnversionedStatus delete_collection_namespaced_endpoints(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_endpoints(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3789,7 +3799,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -3808,13 +3818,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -3828,7 +3838,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_event** -> UnversionedStatus delete_collection_namespaced_event(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_event(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -3853,7 +3863,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -3872,13 +3882,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -3892,7 +3902,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_limit_range** -> UnversionedStatus delete_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) +> V1Status delete_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) @@ -3917,7 +3927,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -3936,13 +3946,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -3956,7 +3966,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_persistent_volume_claim** -> UnversionedStatus delete_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) +> V1Status delete_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) @@ -3981,7 +3991,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -4000,13 +4010,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -4020,7 +4030,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_pod** -> UnversionedStatus delete_collection_namespaced_pod(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_pod(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4045,7 +4055,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -4064,13 +4074,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -4084,7 +4094,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_pod_template** -> UnversionedStatus delete_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) +> V1Status delete_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) @@ -4109,7 +4119,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -4128,13 +4138,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -4148,7 +4158,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_replication_controller** -> UnversionedStatus delete_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) +> V1Status delete_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) @@ -4173,7 +4183,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -4192,13 +4202,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -4212,7 +4222,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_resource_quota** -> UnversionedStatus delete_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) +> V1Status delete_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) @@ -4237,7 +4247,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -4256,13 +4266,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -4276,7 +4286,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_secret** -> UnversionedStatus delete_collection_namespaced_secret(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_secret(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4301,7 +4311,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -4320,13 +4330,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -4340,7 +4350,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_service_account** -> UnversionedStatus delete_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) +> V1Status delete_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) @@ -4365,7 +4375,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -4384,13 +4394,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -4404,7 +4414,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_node** -> UnversionedStatus delete_collection_node(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_node(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4428,7 +4438,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -4446,13 +4456,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -4466,7 +4476,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_persistent_volume** -> UnversionedStatus delete_collection_persistent_volume(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_persistent_volume(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4490,7 +4500,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -4508,13 +4518,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -4528,7 +4538,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespace** -> UnversionedStatus delete_namespace(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespace(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -4553,10 +4563,11 @@ name = 'name_example' # str | name of the Namespace body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespace(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespace(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespace: %s\n" % e) @@ -4570,11 +4581,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -4588,7 +4600,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_config_map** -> UnversionedStatus delete_namespaced_config_map(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_config_map(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -4614,10 +4626,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_config_map(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_config_map(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_config_map: %s\n" % e) @@ -4632,11 +4645,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -4650,7 +4664,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_endpoints** -> UnversionedStatus delete_namespaced_endpoints(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_endpoints(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -4676,10 +4690,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_endpoints(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_endpoints(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_endpoints: %s\n" % e) @@ -4694,11 +4709,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -4712,7 +4728,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_event** -> UnversionedStatus delete_namespaced_event(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_event(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -4738,10 +4754,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_event(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_event(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_event: %s\n" % e) @@ -4756,11 +4773,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -4774,7 +4792,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_limit_range** -> UnversionedStatus delete_namespaced_limit_range(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_limit_range(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -4800,10 +4818,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_limit_range(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_limit_range(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_limit_range: %s\n" % e) @@ -4818,11 +4837,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -4836,7 +4856,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_persistent_volume_claim** -> UnversionedStatus delete_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -4862,10 +4882,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_persistent_volume_claim: %s\n" % e) @@ -4880,11 +4901,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -4898,7 +4920,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_pod** -> UnversionedStatus delete_namespaced_pod(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_pod(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -4924,10 +4946,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_pod(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_pod(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_pod: %s\n" % e) @@ -4942,11 +4965,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -4960,7 +4984,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_pod_template** -> UnversionedStatus delete_namespaced_pod_template(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_pod_template(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -4986,10 +5010,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_pod_template(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_pod_template(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_pod_template: %s\n" % e) @@ -5004,11 +5029,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -5022,7 +5048,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_replication_controller** -> UnversionedStatus delete_namespaced_replication_controller(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_replication_controller(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -5048,10 +5074,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_replication_controller(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_replication_controller(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_replication_controller: %s\n" % e) @@ -5066,11 +5093,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -5084,7 +5112,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_resource_quota** -> UnversionedStatus delete_namespaced_resource_quota(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_resource_quota(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -5110,10 +5138,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_resource_quota(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_resource_quota(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_resource_quota: %s\n" % e) @@ -5128,11 +5157,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -5146,7 +5176,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_secret** -> UnversionedStatus delete_namespaced_secret(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_secret(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -5172,10 +5202,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_secret(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_secret(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_secret: %s\n" % e) @@ -5190,11 +5221,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -5208,7 +5240,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_service** -> UnversionedStatus delete_namespaced_service(name, namespace, pretty=pretty) +> V1Status delete_namespaced_service(name, namespace, pretty=pretty) @@ -5250,7 +5282,7 @@ Name | Type | Description | Notes ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -5264,7 +5296,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_service_account** -> UnversionedStatus delete_namespaced_service_account(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_service_account(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -5290,10 +5322,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_service_account(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_service_account(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_service_account: %s\n" % e) @@ -5308,11 +5341,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -5326,7 +5360,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_node** -> UnversionedStatus delete_node(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_node(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -5351,10 +5385,11 @@ name = 'name_example' # str | name of the Node body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_node(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_node(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_node: %s\n" % e) @@ -5368,11 +5403,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -5386,7 +5422,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_persistent_volume** -> UnversionedStatus delete_persistent_volume(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_persistent_volume(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -5411,10 +5447,11 @@ name = 'name_example' # str | name of the PersistentVolume body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_persistent_volume(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_persistent_volume(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_persistent_volume: %s\n" % e) @@ -5428,11 +5465,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -5446,7 +5484,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_api_resources** -> UnversionedAPIResourceList get_api_resources() +> V1APIResourceList get_api_resources() @@ -5480,7 +5518,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization @@ -5518,7 +5556,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -5536,7 +5574,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -5580,7 +5618,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -5598,7 +5636,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -5642,7 +5680,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -5660,7 +5698,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -5704,7 +5742,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -5722,7 +5760,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -5766,7 +5804,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -5784,7 +5822,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -5828,7 +5866,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -5846,7 +5884,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -5891,7 +5929,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -5910,7 +5948,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -5955,7 +5993,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -5974,7 +6012,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6019,7 +6057,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6038,7 +6076,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6083,7 +6121,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6102,7 +6140,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6147,7 +6185,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6166,7 +6204,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6211,7 +6249,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6230,7 +6268,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6275,7 +6313,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6294,7 +6332,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6339,7 +6377,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6358,7 +6396,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6403,7 +6441,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6422,7 +6460,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6467,7 +6505,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6486,7 +6524,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6531,7 +6569,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6550,7 +6588,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6595,7 +6633,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6614,7 +6652,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6658,7 +6696,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6676,7 +6714,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6720,7 +6758,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6738,7 +6776,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6782,7 +6820,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6800,7 +6838,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6844,7 +6882,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6862,7 +6900,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6906,7 +6944,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6924,7 +6962,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -6968,7 +7006,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -6986,7 +7024,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -7030,7 +7068,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -7048,7 +7086,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -7092,7 +7130,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -7110,7 +7148,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -7154,7 +7192,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -7172,7 +7210,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -7216,7 +7254,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -7234,7 +7272,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -7276,7 +7314,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Namespace -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7291,7 +7329,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Namespace | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7332,7 +7370,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Namespace -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7347,7 +7385,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Namespace | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7389,7 +7427,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7405,7 +7443,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7447,7 +7485,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7463,7 +7501,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7505,7 +7543,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7521,7 +7559,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7563,7 +7601,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7579,7 +7617,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7621,7 +7659,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7637,7 +7675,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7679,7 +7717,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7695,7 +7733,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7737,7 +7775,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7753,7 +7791,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7795,7 +7833,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7811,7 +7849,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7853,7 +7891,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7869,7 +7907,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7911,7 +7949,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7927,7 +7965,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7969,7 +8007,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7985,7 +8023,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8027,7 +8065,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8043,7 +8081,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8085,7 +8123,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8101,7 +8139,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8143,7 +8181,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8159,7 +8197,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8201,7 +8239,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8217,7 +8255,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8259,7 +8297,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8275,7 +8313,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8317,7 +8355,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8333,7 +8371,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8375,7 +8413,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8391,7 +8429,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8432,7 +8470,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Node -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8447,7 +8485,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Node | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8488,7 +8526,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Node -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8503,7 +8541,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Node | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8544,7 +8582,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the PersistentVolume -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8559,7 +8597,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolume | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8600,7 +8638,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the PersistentVolume -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8615,7 +8653,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolume | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -9937,6 +9975,332 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_patch_namespaced_pod** +> str proxy_patch_namespaced_pod(name, namespace) + + + +proxy PATCH requests to Pod + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.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_patch_namespaced_pod(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_patch_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_patch_namespaced_pod_with_path** +> str proxy_patch_namespaced_pod_with_path(name, namespace, path) + + + +proxy PATCH requests to Pod + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.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_patch_namespaced_pod_with_path(name, namespace, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_patch_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_patch_namespaced_service** +> str proxy_patch_namespaced_service(name, namespace) + + + +proxy PATCH requests to Service + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.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_patch_namespaced_service(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_patch_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_patch_namespaced_service_with_path** +> str proxy_patch_namespaced_service_with_path(name, namespace, path) + + + +proxy PATCH requests to Service + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.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_patch_namespaced_service_with_path(name, namespace, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_patch_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_patch_node** +> str proxy_patch_node(name) + + + +proxy PATCH requests to Node + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +name = 'name_example' # str | name of the Node + +try: + api_response = api_instance.proxy_patch_node(name) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_patch_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_patch_node_with_path** +> str proxy_patch_node_with_path(name, path) + + + +proxy PATCH requests to Node + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.CoreV1Api() +name = 'name_example' # str | name of the Node +path = 'path_example' # str | path to the resource + +try: + api_response = api_instance.proxy_patch_node_with_path(name, path) + pprint(api_response) +except ApiException as e: + print("Exception when calling CoreV1Api->proxy_patch_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_post_namespaced_pod** > str proxy_post_namespaced_pod(name, namespace) @@ -10667,7 +11031,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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) +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: @@ -10683,7 +11047,7 @@ 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] + **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 @@ -10780,7 +11144,7 @@ api_instance = kubernetes.client.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) +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: @@ -10797,7 +11161,7 @@ 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] + **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 @@ -10840,7 +11204,7 @@ api_instance = kubernetes.client.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) +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: @@ -10857,7 +11221,7 @@ 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] + **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 @@ -10900,7 +11264,7 @@ api_instance = kubernetes.client.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) +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: @@ -10917,7 +11281,7 @@ 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] + **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 @@ -10960,7 +11324,7 @@ api_instance = kubernetes.client.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) +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: @@ -10977,7 +11341,7 @@ 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] + **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 @@ -11020,7 +11384,7 @@ api_instance = kubernetes.client.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) +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: @@ -11037,7 +11401,7 @@ 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] + **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 @@ -11136,7 +11500,7 @@ api_instance = kubernetes.client.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) +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: @@ -11153,7 +11517,7 @@ 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] + **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 @@ -11172,7 +11536,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_pod_log** -> str read_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) +> str read_namespaced_pod_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, pretty=pretty, previous=previous, since_seconds=since_seconds, tail_lines=tail_lines, timestamps=timestamps) @@ -11201,12 +11565,11 @@ limit_bytes = 56 # int | If set, the number of bytes to read from the server bef 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_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) + api_response = api_instance.read_namespaced_pod_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, pretty=pretty, previous=previous, since_seconds=since_seconds, tail_lines=tail_lines, timestamps=timestamps) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_pod_log: %s\n" % e) @@ -11224,7 +11587,6 @@ Name | Type | Description | Notes **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] @@ -11324,7 +11686,7 @@ api_instance = kubernetes.client.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) +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: @@ -11341,7 +11703,7 @@ 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] + **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 @@ -11384,7 +11746,7 @@ api_instance = kubernetes.client.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) +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: @@ -11401,7 +11763,7 @@ 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] + **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 @@ -11500,7 +11862,7 @@ api_instance = kubernetes.client.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) +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: @@ -11517,7 +11879,7 @@ 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] + **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 @@ -11672,7 +12034,7 @@ api_instance = kubernetes.client.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) +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: @@ -11689,7 +12051,7 @@ 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] + **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 @@ -11732,7 +12094,7 @@ api_instance = kubernetes.client.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) +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: @@ -11749,7 +12111,7 @@ 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] + **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 @@ -11792,7 +12154,7 @@ api_instance = kubernetes.client.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) +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: @@ -11809,7 +12171,7 @@ 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] + **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 @@ -11907,7 +12269,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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) +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: @@ -11923,7 +12285,7 @@ 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] + **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 @@ -12019,7 +12381,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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) +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: @@ -12035,7 +12397,7 @@ 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] + **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 @@ -12164,7 +12526,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespace_finalize** -> V1Namespace replace_namespace_finalize(body, name, pretty=pretty) +> V1Namespace replace_namespace_finalize(name, body, pretty=pretty) @@ -12185,12 +12547,12 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() -body = kubernetes.client.V1Namespace() # V1Namespace | name = 'name_example' # str | name of the Namespace +body = kubernetes.client.V1Namespace() # V1Namespace | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespace_finalize(body, name, pretty=pretty) + api_response = api_instance.replace_namespace_finalize(name, body, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespace_finalize: %s\n" % e) @@ -12200,8 +12562,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1Namespace**](V1Namespace.md)| | **name** | **str**| name of the Namespace | + **body** | [**V1Namespace**](V1Namespace.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/ExtensionsApi.md b/kubernetes/docs/ExtensionsApi.md index 17652eb61b..5fb2804d89 100644 --- a/kubernetes/docs/ExtensionsApi.md +++ b/kubernetes/docs/ExtensionsApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> UnversionedAPIGroup get_api_group() +> V1APIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIGroup**](UnversionedAPIGroup.md) +[**V1APIGroup**](V1APIGroup.md) ### Authorization diff --git a/kubernetes/docs/ExtensionsV1beta1Api.md b/kubernetes/docs/ExtensionsV1beta1Api.md index c23dae5417..877db1b967 100644 --- a/kubernetes/docs/ExtensionsV1beta1Api.md +++ b/kubernetes/docs/ExtensionsV1beta1Api.md @@ -7,42 +7,36 @@ Method | HTTP request | Description [**create_namespaced_daemon_set**](ExtensionsV1beta1Api.md#create_namespaced_daemon_set) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | [**create_namespaced_deployment**](ExtensionsV1beta1Api.md#create_namespaced_deployment) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | [**create_namespaced_deployment_rollback_rollback**](ExtensionsV1beta1Api.md#create_namespaced_deployment_rollback_rollback) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback | -[**create_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#create_namespaced_horizontal_pod_autoscaler) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | [**create_namespaced_ingress**](ExtensionsV1beta1Api.md#create_namespaced_ingress) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | -[**create_namespaced_job**](ExtensionsV1beta1Api.md#create_namespaced_job) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | [**create_namespaced_network_policy**](ExtensionsV1beta1Api.md#create_namespaced_network_policy) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | [**create_namespaced_replica_set**](ExtensionsV1beta1Api.md#create_namespaced_replica_set) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | +[**create_pod_security_policy**](ExtensionsV1beta1Api.md#create_pod_security_policy) | **POST** /apis/extensions/v1beta1/podsecuritypolicies | [**create_third_party_resource**](ExtensionsV1beta1Api.md#create_third_party_resource) | **POST** /apis/extensions/v1beta1/thirdpartyresources | [**delete_collection_namespaced_daemon_set**](ExtensionsV1beta1Api.md#delete_collection_namespaced_daemon_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | [**delete_collection_namespaced_deployment**](ExtensionsV1beta1Api.md#delete_collection_namespaced_deployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | -[**delete_collection_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#delete_collection_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | [**delete_collection_namespaced_ingress**](ExtensionsV1beta1Api.md#delete_collection_namespaced_ingress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | -[**delete_collection_namespaced_job**](ExtensionsV1beta1Api.md#delete_collection_namespaced_job) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | [**delete_collection_namespaced_network_policy**](ExtensionsV1beta1Api.md#delete_collection_namespaced_network_policy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | [**delete_collection_namespaced_replica_set**](ExtensionsV1beta1Api.md#delete_collection_namespaced_replica_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | +[**delete_collection_pod_security_policy**](ExtensionsV1beta1Api.md#delete_collection_pod_security_policy) | **DELETE** /apis/extensions/v1beta1/podsecuritypolicies | [**delete_collection_third_party_resource**](ExtensionsV1beta1Api.md#delete_collection_third_party_resource) | **DELETE** /apis/extensions/v1beta1/thirdpartyresources | [**delete_namespaced_daemon_set**](ExtensionsV1beta1Api.md#delete_namespaced_daemon_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | [**delete_namespaced_deployment**](ExtensionsV1beta1Api.md#delete_namespaced_deployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | -[**delete_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#delete_namespaced_horizontal_pod_autoscaler) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | [**delete_namespaced_ingress**](ExtensionsV1beta1Api.md#delete_namespaced_ingress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | -[**delete_namespaced_job**](ExtensionsV1beta1Api.md#delete_namespaced_job) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | [**delete_namespaced_network_policy**](ExtensionsV1beta1Api.md#delete_namespaced_network_policy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | [**delete_namespaced_replica_set**](ExtensionsV1beta1Api.md#delete_namespaced_replica_set) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | +[**delete_pod_security_policy**](ExtensionsV1beta1Api.md#delete_pod_security_policy) | **DELETE** /apis/extensions/v1beta1/podsecuritypolicies/{name} | [**delete_third_party_resource**](ExtensionsV1beta1Api.md#delete_third_party_resource) | **DELETE** /apis/extensions/v1beta1/thirdpartyresources/{name} | [**get_api_resources**](ExtensionsV1beta1Api.md#get_api_resources) | **GET** /apis/extensions/v1beta1/ | [**list_daemon_set_for_all_namespaces**](ExtensionsV1beta1Api.md#list_daemon_set_for_all_namespaces) | **GET** /apis/extensions/v1beta1/daemonsets | [**list_deployment_for_all_namespaces**](ExtensionsV1beta1Api.md#list_deployment_for_all_namespaces) | **GET** /apis/extensions/v1beta1/deployments | -[**list_horizontal_pod_autoscaler_for_all_namespaces**](ExtensionsV1beta1Api.md#list_horizontal_pod_autoscaler_for_all_namespaces) | **GET** /apis/extensions/v1beta1/horizontalpodautoscalers | [**list_ingress_for_all_namespaces**](ExtensionsV1beta1Api.md#list_ingress_for_all_namespaces) | **GET** /apis/extensions/v1beta1/ingresses | -[**list_job_for_all_namespaces**](ExtensionsV1beta1Api.md#list_job_for_all_namespaces) | **GET** /apis/extensions/v1beta1/jobs | [**list_namespaced_daemon_set**](ExtensionsV1beta1Api.md#list_namespaced_daemon_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | [**list_namespaced_deployment**](ExtensionsV1beta1Api.md#list_namespaced_deployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | -[**list_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#list_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers | [**list_namespaced_ingress**](ExtensionsV1beta1Api.md#list_namespaced_ingress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | -[**list_namespaced_job**](ExtensionsV1beta1Api.md#list_namespaced_job) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs | [**list_namespaced_network_policy**](ExtensionsV1beta1Api.md#list_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | [**list_namespaced_replica_set**](ExtensionsV1beta1Api.md#list_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | [**list_network_policy_for_all_namespaces**](ExtensionsV1beta1Api.md#list_network_policy_for_all_namespaces) | **GET** /apis/extensions/v1beta1/networkpolicies | +[**list_pod_security_policy**](ExtensionsV1beta1Api.md#list_pod_security_policy) | **GET** /apis/extensions/v1beta1/podsecuritypolicies | [**list_replica_set_for_all_namespaces**](ExtensionsV1beta1Api.md#list_replica_set_for_all_namespaces) | **GET** /apis/extensions/v1beta1/replicasets | [**list_third_party_resource**](ExtensionsV1beta1Api.md#list_third_party_resource) | **GET** /apis/extensions/v1beta1/thirdpartyresources | [**patch_namespaced_daemon_set**](ExtensionsV1beta1Api.md#patch_namespaced_daemon_set) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | @@ -50,51 +44,42 @@ Method | HTTP request | Description [**patch_namespaced_deployment**](ExtensionsV1beta1Api.md#patch_namespaced_deployment) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | [**patch_namespaced_deployment_status**](ExtensionsV1beta1Api.md#patch_namespaced_deployment_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | [**patch_namespaced_deployments_scale**](ExtensionsV1beta1Api.md#patch_namespaced_deployments_scale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -[**patch_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#patch_namespaced_horizontal_pod_autoscaler) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**patch_namespaced_horizontal_pod_autoscaler_status**](ExtensionsV1beta1Api.md#patch_namespaced_horizontal_pod_autoscaler_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | [**patch_namespaced_ingress**](ExtensionsV1beta1Api.md#patch_namespaced_ingress) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | [**patch_namespaced_ingress_status**](ExtensionsV1beta1Api.md#patch_namespaced_ingress_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | -[**patch_namespaced_job**](ExtensionsV1beta1Api.md#patch_namespaced_job) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | -[**patch_namespaced_job_status**](ExtensionsV1beta1Api.md#patch_namespaced_job_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | [**patch_namespaced_network_policy**](ExtensionsV1beta1Api.md#patch_namespaced_network_policy) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | [**patch_namespaced_replica_set**](ExtensionsV1beta1Api.md#patch_namespaced_replica_set) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | [**patch_namespaced_replica_set_status**](ExtensionsV1beta1Api.md#patch_namespaced_replica_set_status) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | [**patch_namespaced_replicasets_scale**](ExtensionsV1beta1Api.md#patch_namespaced_replicasets_scale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | [**patch_namespaced_replicationcontrollers_scale**](ExtensionsV1beta1Api.md#patch_namespaced_replicationcontrollers_scale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +[**patch_pod_security_policy**](ExtensionsV1beta1Api.md#patch_pod_security_policy) | **PATCH** /apis/extensions/v1beta1/podsecuritypolicies/{name} | [**patch_third_party_resource**](ExtensionsV1beta1Api.md#patch_third_party_resource) | **PATCH** /apis/extensions/v1beta1/thirdpartyresources/{name} | [**read_namespaced_daemon_set**](ExtensionsV1beta1Api.md#read_namespaced_daemon_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | [**read_namespaced_daemon_set_status**](ExtensionsV1beta1Api.md#read_namespaced_daemon_set_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | [**read_namespaced_deployment**](ExtensionsV1beta1Api.md#read_namespaced_deployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | [**read_namespaced_deployment_status**](ExtensionsV1beta1Api.md#read_namespaced_deployment_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | [**read_namespaced_deployments_scale**](ExtensionsV1beta1Api.md#read_namespaced_deployments_scale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -[**read_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#read_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**read_namespaced_horizontal_pod_autoscaler_status**](ExtensionsV1beta1Api.md#read_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | [**read_namespaced_ingress**](ExtensionsV1beta1Api.md#read_namespaced_ingress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | [**read_namespaced_ingress_status**](ExtensionsV1beta1Api.md#read_namespaced_ingress_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | -[**read_namespaced_job**](ExtensionsV1beta1Api.md#read_namespaced_job) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | -[**read_namespaced_job_status**](ExtensionsV1beta1Api.md#read_namespaced_job_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | [**read_namespaced_network_policy**](ExtensionsV1beta1Api.md#read_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | [**read_namespaced_replica_set**](ExtensionsV1beta1Api.md#read_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | [**read_namespaced_replica_set_status**](ExtensionsV1beta1Api.md#read_namespaced_replica_set_status) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | [**read_namespaced_replicasets_scale**](ExtensionsV1beta1Api.md#read_namespaced_replicasets_scale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | [**read_namespaced_replicationcontrollers_scale**](ExtensionsV1beta1Api.md#read_namespaced_replicationcontrollers_scale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +[**read_pod_security_policy**](ExtensionsV1beta1Api.md#read_pod_security_policy) | **GET** /apis/extensions/v1beta1/podsecuritypolicies/{name} | [**read_third_party_resource**](ExtensionsV1beta1Api.md#read_third_party_resource) | **GET** /apis/extensions/v1beta1/thirdpartyresources/{name} | [**replace_namespaced_daemon_set**](ExtensionsV1beta1Api.md#replace_namespaced_daemon_set) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | [**replace_namespaced_daemon_set_status**](ExtensionsV1beta1Api.md#replace_namespaced_daemon_set_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | [**replace_namespaced_deployment**](ExtensionsV1beta1Api.md#replace_namespaced_deployment) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | [**replace_namespaced_deployment_status**](ExtensionsV1beta1Api.md#replace_namespaced_deployment_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | [**replace_namespaced_deployments_scale**](ExtensionsV1beta1Api.md#replace_namespaced_deployments_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -[**replace_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#replace_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**replace_namespaced_horizontal_pod_autoscaler_status**](ExtensionsV1beta1Api.md#replace_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | [**replace_namespaced_ingress**](ExtensionsV1beta1Api.md#replace_namespaced_ingress) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | [**replace_namespaced_ingress_status**](ExtensionsV1beta1Api.md#replace_namespaced_ingress_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | -[**replace_namespaced_job**](ExtensionsV1beta1Api.md#replace_namespaced_job) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name} | -[**replace_namespaced_job_status**](ExtensionsV1beta1Api.md#replace_namespaced_job_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status | [**replace_namespaced_network_policy**](ExtensionsV1beta1Api.md#replace_namespaced_network_policy) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | [**replace_namespaced_replica_set**](ExtensionsV1beta1Api.md#replace_namespaced_replica_set) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | [**replace_namespaced_replica_set_status**](ExtensionsV1beta1Api.md#replace_namespaced_replica_set_status) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | [**replace_namespaced_replicasets_scale**](ExtensionsV1beta1Api.md#replace_namespaced_replicasets_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | [**replace_namespaced_replicationcontrollers_scale**](ExtensionsV1beta1Api.md#replace_namespaced_replicationcontrollers_scale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | +[**replace_pod_security_policy**](ExtensionsV1beta1Api.md#replace_pod_security_policy) | **PUT** /apis/extensions/v1beta1/podsecuritypolicies/{name} | [**replace_third_party_resource**](ExtensionsV1beta1Api.md#replace_third_party_resource) | **PUT** /apis/extensions/v1beta1/thirdpartyresources/{name} | @@ -155,7 +140,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_deployment** -> V1beta1Deployment create_namespaced_deployment(namespace, body, pretty=pretty) +> ExtensionsV1beta1Deployment create_namespaced_deployment(namespace, body, pretty=pretty) @@ -177,7 +162,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1Deployment() # V1beta1Deployment | +body = kubernetes.client.ExtensionsV1beta1Deployment() # ExtensionsV1beta1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -192,12 +177,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1Deployment**](V1beta1Deployment.md)| | + **body** | [**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Deployment**](V1beta1Deployment.md) +[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) ### Authorization @@ -211,7 +196,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_deployment_rollback_rollback** -> V1beta1DeploymentRollback create_namespaced_deployment_rollback_rollback(body, name, namespace, pretty=pretty) +> ExtensionsV1beta1DeploymentRollback create_namespaced_deployment_rollback_rollback(name, namespace, body, pretty=pretty) @@ -232,13 +217,13 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -body = kubernetes.client.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 +body = kubernetes.client.ExtensionsV1beta1DeploymentRollback() # ExtensionsV1beta1DeploymentRollback | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_namespaced_deployment_rollback_rollback(body, name, namespace, pretty=pretty) + api_response = api_instance.create_namespaced_deployment_rollback_rollback(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->create_namespaced_deployment_rollback_rollback: %s\n" % e) @@ -248,70 +233,14 @@ except ApiException as e: 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 | + **body** | [**ExtensionsV1beta1DeploymentRollback**](ExtensionsV1beta1DeploymentRollback.md)| | **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_namespaced_horizontal_pod_autoscaler** -> V1beta1HorizontalPodAutoscaler create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty) - - - -create a HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1HorizontalPodAutoscaler() # V1beta1HorizontalPodAutoscaler | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_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) +[**ExtensionsV1beta1DeploymentRollback**](ExtensionsV1beta1DeploymentRollback.md) ### Authorization @@ -380,62 +309,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_job** -> V1beta1Job create_namespaced_job(namespace, body, pretty=pretty) - - - -create a Job - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1Job() # V1beta1Job | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_namespaced_job(namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_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_namespaced_network_policy** > V1beta1NetworkPolicy create_namespaced_network_policy(namespace, body, pretty=pretty) @@ -548,12 +421,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_third_party_resource** -> V1beta1ThirdPartyResource create_third_party_resource(body, pretty=pretty) +# **create_pod_security_policy** +> V1beta1PodSecurityPolicy create_pod_security_policy(body, pretty=pretty) -create a ThirdPartyResource +create a PodSecurityPolicy ### Example ```python @@ -570,26 +443,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -body = kubernetes.client.V1beta1ThirdPartyResource() # V1beta1ThirdPartyResource | +body = kubernetes.client.V1beta1PodSecurityPolicy() # V1beta1PodSecurityPolicy | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.create_third_party_resource(body, pretty=pretty) + api_response = api_instance.create_pod_security_policy(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_third_party_resource: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_pod_security_policy: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md)| | + **body** | [**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) +[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) ### Authorization @@ -602,12 +475,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_daemon_set** -> UnversionedStatus delete_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) +# **create_third_party_resource** +> V1beta1ThirdPartyResource create_third_party_resource(body, pretty=pretty) -delete collection of DaemonSet +create a ThirdPartyResource ### Example ```python @@ -624,36 +497,26 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1ThirdPartyResource() # V1beta1ThirdPartyResource | 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_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) + api_response = api_instance.create_third_party_resource(body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_daemon_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->create_third_party_resource: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md)| | **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) +[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) ### Authorization @@ -666,12 +529,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_deployment** -> UnversionedStatus delete_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_namespaced_daemon_set** +> V1Status delete_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 Deployment +delete collection of DaemonSet ### Example ```python @@ -692,15 +555,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_collection_namespaced_deployment(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_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_collection_namespaced_deployment: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -711,13 +574,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -730,12 +593,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_horizontal_pod_autoscaler** -> UnversionedStatus delete_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_namespaced_deployment** +> V1Status delete_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 HorizontalPodAutoscaler +delete collection of Deployment ### Example ```python @@ -756,15 +619,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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) + api_response = api_instance.delete_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_collection_namespaced_horizontal_pod_autoscaler: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -775,13 +638,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -795,7 +658,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_ingress** -> UnversionedStatus delete_collection_namespaced_ingress(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_ingress(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -820,7 +683,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -839,13 +702,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -858,12 +721,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_job** -> UnversionedStatus delete_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_namespaced_network_policy** +> V1Status delete_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 Job +delete collection of NetworkPolicy ### Example ```python @@ -884,15 +747,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_collection_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.delete_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_collection_namespaced_job: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -903,13 +766,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -922,12 +785,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_network_policy** -> UnversionedStatus delete_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_namespaced_replica_set** +> V1Status delete_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 NetworkPolicy +delete collection of ReplicaSet ### Example ```python @@ -948,15 +811,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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) + api_response = api_instance.delete_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_collection_namespaced_network_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -967,13 +830,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -986,12 +849,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_replica_set** -> UnversionedStatus delete_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_pod_security_policy** +> V1Status delete_collection_pod_security_policy(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) -delete collection of ReplicaSet +delete collection of PodSecurityPolicy ### Example ```python @@ -1008,36 +871,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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) + api_response = api_instance.delete_collection_pod_security_policy(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_collection_namespaced_replica_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_collection_pod_security_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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -1051,7 +912,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_third_party_resource** -> UnversionedStatus delete_collection_third_party_resource(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_third_party_resource(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -1075,7 +936,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -1093,13 +954,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -1113,7 +974,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_daemon_set** -> UnversionedStatus delete_namespaced_daemon_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_daemon_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1139,10 +1000,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_daemon_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_daemon_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_daemon_set: %s\n" % e) @@ -1157,11 +1019,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1175,7 +1038,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_deployment** -> UnversionedStatus delete_namespaced_deployment(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_deployment(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1201,10 +1064,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_deployment(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_deployment(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_deployment: %s\n" % e) @@ -1219,73 +1083,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] - -### 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_namespaced_horizontal_pod_autoscaler** -> UnversionedStatus delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) - - - -delete a HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.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 = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -grace_period_seconds = 56 # 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 = true # 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) - -try: - api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_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] - **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1299,7 +1102,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_ingress** -> UnversionedStatus delete_namespaced_ingress(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_ingress(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1325,10 +1128,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_ingress(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_ingress(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_ingress: %s\n" % e) @@ -1343,11 +1147,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1360,12 +1165,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_job** -> UnversionedStatus delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +# **delete_namespaced_network_policy** +> V1Status delete_namespaced_network_policy(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -delete a Job +delete a NetworkPolicy ### Example ```python @@ -1382,34 +1187,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Job +name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_job(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_network_policy(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_job: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_network_policy: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Job | + **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] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1422,12 +1229,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_network_policy** -> UnversionedStatus delete_namespaced_network_policy(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +# **delete_namespaced_replica_set** +> V1Status delete_namespaced_replica_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -delete a NetworkPolicy +delete a ReplicaSet ### Example ```python @@ -1444,34 +1251,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the NetworkPolicy +name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_network_policy(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_replica_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_network_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_replica_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the NetworkPolicy | + **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] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1484,12 +1293,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_replica_set** -> UnversionedStatus delete_namespaced_replica_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +# **delete_pod_security_policy** +> V1Status delete_pod_security_policy(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) -delete a ReplicaSet +delete a PodSecurityPolicy ### Example ```python @@ -1506,34 +1315,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the ReplicaSet -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +name = 'name_example' # str | name of the PodSecurityPolicy body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_replica_set(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_pod_security_policy(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_replica_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->delete_pod_security_policy: %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 | + **name** | **str**| name of the PodSecurityPolicy | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1547,7 +1356,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_third_party_resource** -> UnversionedStatus delete_third_party_resource(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_third_party_resource(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -1572,10 +1381,11 @@ name = 'name_example' # str | name of the ThirdPartyResource body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_third_party_resource(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_third_party_resource(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_third_party_resource: %s\n" % e) @@ -1589,11 +1399,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1607,7 +1418,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_api_resources** -> UnversionedAPIResourceList get_api_resources() +> V1APIResourceList get_api_resources() @@ -1641,7 +1452,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization @@ -1679,7 +1490,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -1697,7 +1508,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -1717,7 +1528,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_deployment_for_all_namespaces** -> V1beta1DeploymentList list_deployment_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> ExtensionsV1beta1DeploymentList list_deployment_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -1741,7 +1552,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -1759,13 +1570,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**ExtensionsV1beta1DeploymentList**](ExtensionsV1beta1DeploymentList.md) ### Authorization @@ -1778,12 +1589,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_horizontal_pod_autoscaler_for_all_namespaces** -> V1beta1HorizontalPodAutoscalerList list_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_ingress_for_all_namespaces** +> V1beta1IngressList list_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 HorizontalPodAutoscaler +list or watch objects of kind Ingress ### Example ```python @@ -1803,15 +1614,15 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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) + api_response = api_instance.list_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_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->list_ingress_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1821,13 +1632,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1beta1IngressList**](V1beta1IngressList.md) ### Authorization @@ -1840,12 +1651,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_ingress_for_all_namespaces** -> V1beta1IngressList list_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_namespaced_daemon_set** +> V1beta1DaemonSetList list_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 Ingress +list or watch objects of kind DaemonSet ### Example ```python @@ -1862,34 +1673,36 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.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) -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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_ingress_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_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_ingress_for_all_namespaces: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->list_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] - **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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1beta1DaemonSetList**](V1beta1DaemonSetList.md) ### Authorization @@ -1902,138 +1715,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_job_for_all_namespaces** -> V1beta1JobList list_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_namespaced_deployment** +> ExtensionsV1beta1DeploymentList list_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 Job - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.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_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_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_namespaced_daemon_set** -> V1beta1DaemonSetList list_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 kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.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_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_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_namespaced_deployment** -> V1beta1DeploymentList list_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 +list or watch objects of kind Deployment ### Example ```python @@ -2054,7 +1741,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -2073,77 +1760,13 @@ 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 - -[**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_namespaced_horizontal_pod_autoscaler** -> V1beta1HorizontalPodAutoscalerList list_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 kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.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_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_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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**ExtensionsV1beta1DeploymentList**](ExtensionsV1beta1DeploymentList.md) ### Authorization @@ -2182,7 +1805,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -2201,7 +1824,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -2220,12 +1843,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_job** -> V1beta1JobList list_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_network_policy** +> V1beta1NetworkPolicyList list_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 Job +list or watch objects of kind NetworkPolicy ### Example ```python @@ -2246,15 +1869,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_namespaced_job(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_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_namespaced_job: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->list_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -2265,13 +1888,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1beta1NetworkPolicyList**](V1beta1NetworkPolicyList.md) ### Authorization @@ -2284,12 +1907,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_network_policy** -> V1beta1NetworkPolicyList list_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_namespaced_replica_set** +> V1beta1ReplicaSetList list_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 NetworkPolicy +list or watch objects of kind ReplicaSet ### Example ```python @@ -2310,15 +1933,15 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_namespaced_network_policy(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_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_namespaced_network_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->list_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -2329,13 +1952,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1beta1ReplicaSetList**](V1beta1ReplicaSetList.md) ### Authorization @@ -2348,12 +1971,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_replica_set** -> V1beta1ReplicaSetList list_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_network_policy_for_all_namespaces** +> V1beta1NetworkPolicyList list_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 ReplicaSet +list or watch objects of kind NetworkPolicy ### Example ```python @@ -2370,36 +1993,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_namespaced_replica_set(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_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_namespaced_replica_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->list_network_policy_for_all_namespaces: %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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1beta1NetworkPolicyList**](V1beta1NetworkPolicyList.md) ### Authorization @@ -2412,12 +2033,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_network_policy_for_all_namespaces** -> V1beta1NetworkPolicyList list_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_pod_security_policy** +> V1beta1PodSecurityPolicyList list_pod_security_policy(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 +list or watch objects of kind PodSecurityPolicy ### Example ```python @@ -2434,34 +2055,34 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.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) -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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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) + api_response = api_instance.list_pod_security_policy(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_network_policy_for_all_namespaces: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->list_pod_security_policy: %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] - **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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1beta1PodSecurityPolicyList**](V1beta1PodSecurityPolicyList.md) ### Authorization @@ -2499,7 +2120,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -2517,7 +2138,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -2561,7 +2182,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -2579,7 +2200,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -2622,7 +2243,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -2638,7 +2259,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2656,418 +2277,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_daemon_set_status** -> V1beta1DaemonSet patch_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 kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_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_namespaced_deployment** -> V1beta1Deployment patch_namespaced_deployment(name, namespace, body, pretty=pretty) - - - -partially update the specified Deployment - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_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_namespaced_deployment_status** -> V1beta1Deployment patch_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 kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_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_namespaced_deployments_scale** -> V1beta1Scale patch_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 kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_deployments_scale(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_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_namespaced_horizontal_pod_autoscaler** -> V1beta1HorizontalPodAutoscaler patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) - - - -partially update the specified HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_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_namespaced_horizontal_pod_autoscaler_status** -> V1beta1HorizontalPodAutoscaler patch_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 kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_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_namespaced_ingress** -> V1beta1Ingress patch_namespaced_ingress(name, namespace, body, pretty=pretty) - - - -partially update the specified Ingress - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.patch_namespaced_ingress(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_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_namespaced_ingress_status** -> V1beta1Ingress patch_namespaced_ingress_status(name, namespace, body, pretty=pretty) +# **patch_namespaced_daemon_set_status** +> V1beta1DaemonSet patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) -partially update status of the specified Ingress +partially update status of the specified DaemonSet ### Example ```python @@ -3084,30 +2299,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Ingress +name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_ingress_status(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_ingress_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_daemon_set_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Ingress | + **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Ingress**](V1beta1Ingress.md) +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) ### Authorization @@ -3120,12 +2335,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_job** -> V1beta1Job patch_namespaced_job(name, namespace, body, pretty=pretty) +# **patch_namespaced_deployment** +> ExtensionsV1beta1Deployment patch_namespaced_deployment(name, namespace, body, pretty=pretty) -partially update the specified Job +partially update the specified Deployment ### Example ```python @@ -3142,30 +2357,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Job +name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_job(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_job: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployment: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Job | + **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Job**](V1beta1Job.md) +[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) ### Authorization @@ -3178,12 +2393,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_job_status** -> V1beta1Job patch_namespaced_job_status(name, namespace, body, pretty=pretty) +# **patch_namespaced_deployment_status** +> ExtensionsV1beta1Deployment patch_namespaced_deployment_status(name, namespace, body, pretty=pretty) -partially update status of the specified Job +partially update status of the specified Deployment ### Example ```python @@ -3200,30 +2415,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Job +name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_job_status(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_job_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployment_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Job | + **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Job**](V1beta1Job.md) +[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) ### Authorization @@ -3236,12 +2451,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_network_policy** -> V1beta1NetworkPolicy patch_namespaced_network_policy(name, namespace, body, pretty=pretty) +# **patch_namespaced_deployments_scale** +> ExtensionsV1beta1Scale patch_namespaced_deployments_scale(name, namespace, body, pretty=pretty) -partially update the specified NetworkPolicy +partially update scale of the specified Scale ### Example ```python @@ -3258,30 +2473,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the NetworkPolicy +name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_network_policy(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_deployments_scale(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_network_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployments_scale: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the NetworkPolicy | + **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) +[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) ### Authorization @@ -3294,12 +2509,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_replica_set** -> V1beta1ReplicaSet patch_namespaced_replica_set(name, namespace, body, pretty=pretty) +# **patch_namespaced_ingress** +> V1beta1Ingress patch_namespaced_ingress(name, namespace, body, pretty=pretty) -partially update the specified ReplicaSet +partially update the specified Ingress ### Example ```python @@ -3316,30 +2531,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the ReplicaSet +name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_replica_set(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_ingress(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replica_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_ingress: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ReplicaSet | + **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) +[**V1beta1Ingress**](V1beta1Ingress.md) ### Authorization @@ -3352,12 +2567,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_replica_set_status** -> V1beta1ReplicaSet patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty) +# **patch_namespaced_ingress_status** +> V1beta1Ingress patch_namespaced_ingress_status(name, namespace, body, pretty=pretty) -partially update status of the specified ReplicaSet +partially update status of the specified Ingress ### Example ```python @@ -3374,30 +2589,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the ReplicaSet +name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_ingress_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replica_set_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_ingress_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ReplicaSet | + **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) +[**V1beta1Ingress**](V1beta1Ingress.md) ### Authorization @@ -3410,12 +2625,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_replicasets_scale** -> V1beta1Scale patch_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) +# **patch_namespaced_network_policy** +> V1beta1NetworkPolicy patch_namespaced_network_policy(name, namespace, body, pretty=pretty) -partially update scale of the specified Scale +partially update the specified NetworkPolicy ### Example ```python @@ -3432,30 +2647,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Scale +name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_network_policy(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replicasets_scale: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_network_policy: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Scale | + **name** | **str**| name of the NetworkPolicy | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Scale**](V1beta1Scale.md) +[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) ### Authorization @@ -3468,12 +2683,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_replicationcontrollers_scale** -> V1beta1Scale patch_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) +# **patch_namespaced_replica_set** +> V1beta1ReplicaSet patch_namespaced_replica_set(name, namespace, body, pretty=pretty) -partially update scale of the specified Scale +partially update the specified ReplicaSet ### Example ```python @@ -3490,30 +2705,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Scale +name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) + api_response = api_instance.patch_namespaced_replica_set(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replicationcontrollers_scale: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replica_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Scale | + **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Scale**](V1beta1Scale.md) +[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) ### Authorization @@ -3526,12 +2741,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_third_party_resource** -> V1beta1ThirdPartyResource patch_third_party_resource(name, body, pretty=pretty) +# **patch_namespaced_replica_set_status** +> V1beta1ReplicaSet patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty) -partially update the specified ThirdPartyResource +partially update status of the specified ReplicaSet ### Example ```python @@ -3548,28 +2763,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the ThirdPartyResource -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +name = 'name_example' # str | name of the ReplicaSet +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.patch_third_party_resource(name, body, pretty=pretty) + api_response = api_instance.patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_third_party_resource: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replica_set_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ThirdPartyResource | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **name** | **str**| name of the ReplicaSet | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) +[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) ### Authorization @@ -3582,12 +2799,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_daemon_set** -> V1beta1DaemonSet read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) +# **patch_namespaced_replicasets_scale** +> ExtensionsV1beta1Scale patch_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) -read the specified DaemonSet +partially update scale of the specified Scale ### Example ```python @@ -3604,32 +2821,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the DaemonSet +name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | 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_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) + api_response = api_instance.patch_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_daemon_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replicasets_scale: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DaemonSet | + **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | **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) +[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) ### Authorization @@ -3637,17 +2852,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **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_namespaced_daemon_set_status** -> V1beta1DaemonSet read_namespaced_daemon_set_status(name, namespace, pretty=pretty) +# **patch_namespaced_replicationcontrollers_scale** +> ExtensionsV1beta1Scale patch_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) -read status of the specified DaemonSet +partially update scale of the specified Scale ### Example ```python @@ -3664,28 +2879,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the DaemonSet +name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.read_namespaced_daemon_set_status(name, namespace, pretty=pretty) + api_response = api_instance.patch_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_daemon_set_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replicationcontrollers_scale: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DaemonSet | + **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1DaemonSet**](V1beta1DaemonSet.md) +[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) ### Authorization @@ -3693,17 +2910,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **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_namespaced_deployment** -> V1beta1Deployment read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) +# **patch_pod_security_policy** +> V1beta1PodSecurityPolicy patch_pod_security_policy(name, body, pretty=pretty) -read the specified Deployment +partially update the specified PodSecurityPolicy ### Example ```python @@ -3720,32 +2937,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Deployment -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +name = 'name_example' # str | name of the PodSecurityPolicy +body = kubernetes.client.V1Patch() # V1Patch | 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_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) + api_response = api_instance.patch_pod_security_policy(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployment: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_pod_security_policy: %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 | + **name** | **str**| name of the PodSecurityPolicy | + **body** | [**V1Patch**](V1Patch.md)| | **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) +[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) ### Authorization @@ -3753,17 +2966,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **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_namespaced_deployment_status** -> V1beta1Deployment read_namespaced_deployment_status(name, namespace, pretty=pretty) +# **patch_third_party_resource** +> V1beta1ThirdPartyResource patch_third_party_resource(name, body, pretty=pretty) -read status of the specified Deployment +partially update the specified ThirdPartyResource ### Example ```python @@ -3780,28 +2993,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Deployment -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +name = 'name_example' # str | name of the ThirdPartyResource +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) + api_response = api_instance.patch_third_party_resource(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployment_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->patch_third_party_resource: %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 | + **name** | **str**| name of the ThirdPartyResource | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Deployment**](V1beta1Deployment.md) +[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) ### Authorization @@ -3809,17 +3022,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **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_namespaced_deployments_scale** -> V1beta1Scale read_namespaced_deployments_scale(name, namespace, pretty=pretty) +# **read_namespaced_daemon_set** +> V1beta1DaemonSet read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) -read scale of the specified Scale +read the specified DaemonSet ### Example ```python @@ -3836,28 +3049,32 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Scale +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_namespaced_deployments_scale(name, namespace, pretty=pretty) + api_response = api_instance.read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployments_scale: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_daemon_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Scale | + **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 -[**V1beta1Scale**](V1beta1Scale.md) +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) ### Authorization @@ -3870,12 +3087,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_horizontal_pod_autoscaler** -> V1beta1HorizontalPodAutoscaler read_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) +# **read_namespaced_daemon_set_status** +> V1beta1DaemonSet read_namespaced_daemon_set_status(name, namespace, pretty=pretty) -read the specified HorizontalPodAutoscaler +read status of the specified DaemonSet ### Example ```python @@ -3892,32 +3109,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the HorizontalPodAutoscaler +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_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) + api_response = api_instance.read_namespaced_daemon_set_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_horizontal_pod_autoscaler: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_daemon_set_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the HorizontalPodAutoscaler | + **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 -[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) ### Authorization @@ -3930,12 +3143,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_horizontal_pod_autoscaler_status** -> V1beta1HorizontalPodAutoscaler read_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) +# **read_namespaced_deployment** +> ExtensionsV1beta1Deployment read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) -read status of the specified HorizontalPodAutoscaler +read the specified Deployment ### Example ```python @@ -3952,28 +3165,32 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the HorizontalPodAutoscaler +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_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) + api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployment: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the HorizontalPodAutoscaler | + **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 -[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) +[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) ### Authorization @@ -3986,12 +3203,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_ingress** -> V1beta1Ingress read_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) +# **read_namespaced_deployment_status** +> ExtensionsV1beta1Deployment read_namespaced_deployment_status(name, namespace, pretty=pretty) -read the specified Ingress +read status of the specified Deployment ### Example ```python @@ -4008,32 +3225,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Ingress +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_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) + api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_ingress: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployment_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Ingress | + **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 -[**V1beta1Ingress**](V1beta1Ingress.md) +[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) ### Authorization @@ -4046,12 +3259,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_ingress_status** -> V1beta1Ingress read_namespaced_ingress_status(name, namespace, pretty=pretty) +# **read_namespaced_deployments_scale** +> ExtensionsV1beta1Scale read_namespaced_deployments_scale(name, namespace, pretty=pretty) -read status of the specified Ingress +read scale of the specified Scale ### Example ```python @@ -4068,28 +3281,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Ingress +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_namespaced_ingress_status(name, namespace, pretty=pretty) + api_response = api_instance.read_namespaced_deployments_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_ingress_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployments_scale: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Ingress | + **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 -[**V1beta1Ingress**](V1beta1Ingress.md) +[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) ### Authorization @@ -4102,12 +3315,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_job** -> V1beta1Job read_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) +# **read_namespaced_ingress** +> V1beta1Ingress read_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) -read the specified Job +read the specified Ingress ### Example ```python @@ -4124,32 +3337,32 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Job +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) +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_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) + api_response = api_instance.read_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_job: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_ingress: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Job | + **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] + **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) +[**V1beta1Ingress**](V1beta1Ingress.md) ### Authorization @@ -4162,12 +3375,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_job_status** -> V1beta1Job read_namespaced_job_status(name, namespace, pretty=pretty) +# **read_namespaced_ingress_status** +> V1beta1Ingress read_namespaced_ingress_status(name, namespace, pretty=pretty) -read status of the specified Job +read status of the specified Ingress ### Example ```python @@ -4184,28 +3397,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Job +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_namespaced_job_status(name, namespace, pretty=pretty) + api_response = api_instance.read_namespaced_ingress_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_job_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_ingress_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Job | + **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 -[**V1beta1Job**](V1beta1Job.md) +[**V1beta1Ingress**](V1beta1Ingress.md) ### Authorization @@ -4243,7 +3456,7 @@ api_instance = kubernetes.client.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) +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: @@ -4260,7 +3473,7 @@ 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] + **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 @@ -4303,7 +3516,7 @@ api_instance = kubernetes.client.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) +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: @@ -4320,7 +3533,7 @@ 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] + **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 @@ -4395,7 +3608,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_replicasets_scale** -> V1beta1Scale read_namespaced_replicasets_scale(name, namespace, pretty=pretty) +> ExtensionsV1beta1Scale read_namespaced_replicasets_scale(name, namespace, pretty=pretty) @@ -4437,7 +3650,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1Scale**](V1beta1Scale.md) +[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) ### Authorization @@ -4451,7 +3664,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_replicationcontrollers_scale** -> V1beta1Scale read_namespaced_replicationcontrollers_scale(name, namespace, pretty=pretty) +> ExtensionsV1beta1Scale read_namespaced_replicationcontrollers_scale(name, namespace, pretty=pretty) @@ -4493,7 +3706,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1Scale**](V1beta1Scale.md) +[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) ### Authorization @@ -4506,12 +3719,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_third_party_resource** -> V1beta1ThirdPartyResource read_third_party_resource(name, pretty=pretty, exact=exact, export=export) +# **read_pod_security_policy** +> V1beta1PodSecurityPolicy read_pod_security_policy(name, pretty=pretty, exact=exact, export=export) -read the specified ThirdPartyResource +read the specified PodSecurityPolicy ### Example ```python @@ -4528,30 +3741,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the ThirdPartyResource +name = 'name_example' # str | name of the PodSecurityPolicy 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) +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_third_party_resource(name, pretty=pretty, exact=exact, export=export) + api_response = api_instance.read_pod_security_policy(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_third_party_resource: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_pod_security_policy: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ThirdPartyResource | + **name** | **str**| name of the PodSecurityPolicy | **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] + **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) +[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) ### Authorization @@ -4564,12 +3777,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_daemon_set** -> V1beta1DaemonSet replace_namespaced_daemon_set(name, namespace, body, pretty=pretty) +# **read_third_party_resource** +> V1beta1ThirdPartyResource read_third_party_resource(name, pretty=pretty, exact=exact, export=export) -replace the specified DaemonSet +read the specified ThirdPartyResource ### Example ```python @@ -4586,30 +3799,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.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 = kubernetes.client.V1beta1DaemonSet() # V1beta1DaemonSet | +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.replace_namespaced_daemon_set(name, namespace, body, pretty=pretty) + api_response = api_instance.read_third_party_resource(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_daemon_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->read_third_party_resource: %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)| | + **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 -[**V1beta1DaemonSet**](V1beta1DaemonSet.md) +[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) ### Authorization @@ -4622,12 +3835,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_daemon_set_status** -> V1beta1DaemonSet replace_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) +# **replace_namespaced_daemon_set** +> V1beta1DaemonSet replace_namespaced_daemon_set(name, namespace, body, pretty=pretty) -replace status of the specified DaemonSet +replace the specified DaemonSet ### Example ```python @@ -4650,10 +3863,10 @@ body = kubernetes.client.V1beta1DaemonSet() # V1beta1DaemonSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_namespaced_daemon_set(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_daemon_set_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -4680,12 +3893,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_deployment** -> V1beta1Deployment replace_namespaced_deployment(name, namespace, body, pretty=pretty) +# **replace_namespaced_daemon_set_status** +> V1beta1DaemonSet replace_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) -replace the specified Deployment +replace status of the specified DaemonSet ### Example ```python @@ -4702,30 +3915,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Deployment +name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1Deployment() # V1beta1Deployment | +body = kubernetes.client.V1beta1DaemonSet() # V1beta1DaemonSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_namespaced_daemon_set_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_deployment: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_daemon_set_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Deployment | + **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1Deployment**](V1beta1Deployment.md)| | + **body** | [**V1beta1DaemonSet**](V1beta1DaemonSet.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Deployment**](V1beta1Deployment.md) +[**V1beta1DaemonSet**](V1beta1DaemonSet.md) ### Authorization @@ -4738,12 +3951,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_deployment_status** -> V1beta1Deployment replace_namespaced_deployment_status(name, namespace, body, pretty=pretty) +# **replace_namespaced_deployment** +> ExtensionsV1beta1Deployment replace_namespaced_deployment(name, namespace, body, pretty=pretty) -replace status of the specified Deployment +replace the specified Deployment ### Example ```python @@ -4762,14 +3975,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.V1beta1Deployment() # V1beta1Deployment | +body = kubernetes.client.ExtensionsV1beta1Deployment() # ExtensionsV1beta1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_deployment_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -4778,70 +3991,12 @@ 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_namespaced_deployments_scale** -> V1beta1Scale replace_namespaced_deployments_scale(name, namespace, body, pretty=pretty) - - - -replace scale of the specified Scale - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.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 = kubernetes.client.V1beta1Scale() # V1beta1Scale | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_namespaced_deployments_scale(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_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)| | + **body** | [**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Scale**](V1beta1Scale.md) +[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) ### Authorization @@ -4854,12 +4009,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_horizontal_pod_autoscaler** -> V1beta1HorizontalPodAutoscaler replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) +# **replace_namespaced_deployment_status** +> ExtensionsV1beta1Deployment replace_namespaced_deployment_status(name, namespace, body, pretty=pretty) -replace the specified HorizontalPodAutoscaler +replace status of the specified Deployment ### Example ```python @@ -4876,30 +4031,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the HorizontalPodAutoscaler +name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1HorizontalPodAutoscaler() # V1beta1HorizontalPodAutoscaler | +body = kubernetes.client.ExtensionsV1beta1Deployment() # ExtensionsV1beta1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_horizontal_pod_autoscaler: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_deployment_status: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the HorizontalPodAutoscaler | + **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md)| | + **body** | [**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) +[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) ### Authorization @@ -4912,12 +4067,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_horizontal_pod_autoscaler_status** -> V1beta1HorizontalPodAutoscaler replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) +# **replace_namespaced_deployments_scale** +> ExtensionsV1beta1Scale replace_namespaced_deployments_scale(name, namespace, body, pretty=pretty) -replace status of the specified HorizontalPodAutoscaler +replace scale of the specified Scale ### Example ```python @@ -4934,30 +4089,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the HorizontalPodAutoscaler +name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1HorizontalPodAutoscaler() # V1beta1HorizontalPodAutoscaler | +body = kubernetes.client.ExtensionsV1beta1Scale() # ExtensionsV1beta1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_namespaced_deployments_scale(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_deployments_scale: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the HorizontalPodAutoscaler | + **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md)| | + **body** | [**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1HorizontalPodAutoscaler**](V1beta1HorizontalPodAutoscaler.md) +[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) ### Authorization @@ -5086,70 +4241,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_job** -> V1beta1Job replace_namespaced_job(name, namespace, body, pretty=pretty) - - - -replace the specified Job - -### Example -```python -from __future__ import print_statement -import time -import kubernetes.client -from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = kubernetes.client.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 = kubernetes.client.V1beta1Job() # V1beta1Job | -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.replace_namespaced_job(name, namespace, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_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_namespaced_job_status** -> V1beta1Job replace_namespaced_job_status(name, namespace, body, pretty=pretty) +# **replace_namespaced_network_policy** +> V1beta1NetworkPolicy replace_namespaced_network_policy(name, namespace, body, pretty=pretty) -replace status of the specified Job +replace the specified NetworkPolicy ### Example ```python @@ -5166,30 +4263,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Job +name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1Job() # V1beta1Job | +body = kubernetes.client.V1beta1NetworkPolicy() # V1beta1NetworkPolicy | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_job_status(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_namespaced_network_policy(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_job_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_network_policy: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Job | + **name** | **str**| name of the NetworkPolicy | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1Job**](V1beta1Job.md)| | + **body** | [**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Job**](V1beta1Job.md) +[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) ### Authorization @@ -5202,12 +4299,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_network_policy** -> V1beta1NetworkPolicy replace_namespaced_network_policy(name, namespace, body, pretty=pretty) +# **replace_namespaced_replica_set** +> V1beta1ReplicaSet replace_namespaced_replica_set(name, namespace, body, pretty=pretty) -replace the specified NetworkPolicy +replace the specified ReplicaSet ### Example ```python @@ -5224,30 +4321,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the NetworkPolicy +name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1NetworkPolicy() # V1beta1NetworkPolicy | +body = kubernetes.client.V1beta1ReplicaSet() # V1beta1ReplicaSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_network_policy(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_namespaced_replica_set(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_network_policy: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replica_set: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the NetworkPolicy | + **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md)| | + **body** | [**V1beta1ReplicaSet**](V1beta1ReplicaSet.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) +[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) ### Authorization @@ -5260,12 +4357,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_replica_set** -> V1beta1ReplicaSet replace_namespaced_replica_set(name, namespace, body, pretty=pretty) +# **replace_namespaced_replica_set_status** +> V1beta1ReplicaSet replace_namespaced_replica_set_status(name, namespace, body, pretty=pretty) -replace the specified ReplicaSet +replace status of the specified ReplicaSet ### Example ```python @@ -5288,10 +4385,10 @@ body = kubernetes.client.V1beta1ReplicaSet() # V1beta1ReplicaSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_replica_set(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_namespaced_replica_set_status(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replica_set: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replica_set_status: %s\n" % e) ``` ### Parameters @@ -5318,12 +4415,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_replica_set_status** -> V1beta1ReplicaSet replace_namespaced_replica_set_status(name, namespace, body, pretty=pretty) +# **replace_namespaced_replicasets_scale** +> ExtensionsV1beta1Scale replace_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) -replace status of the specified ReplicaSet +replace scale of the specified Scale ### Example ```python @@ -5340,30 +4437,30 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the ReplicaSet +name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1beta1ReplicaSet() # V1beta1ReplicaSet | +body = kubernetes.client.ExtensionsV1beta1Scale() # ExtensionsV1beta1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_replica_set_status(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replica_set_status: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replicasets_scale: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ReplicaSet | + **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1ReplicaSet**](V1beta1ReplicaSet.md)| | + **body** | [**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) +[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) ### Authorization @@ -5376,8 +4473,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_replicasets_scale** -> V1beta1Scale replace_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) +# **replace_namespaced_replicationcontrollers_scale** +> ExtensionsV1beta1Scale replace_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) @@ -5400,14 +4497,14 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.V1beta1Scale() # V1beta1Scale | +body = kubernetes.client.ExtensionsV1beta1Scale() # ExtensionsV1beta1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_replicasets_scale(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replicasets_scale: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replicationcontrollers_scale: %s\n" % e) ``` ### Parameters @@ -5416,12 +4513,12 @@ 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)| | + **body** | [**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Scale**](V1beta1Scale.md) +[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) ### Authorization @@ -5434,12 +4531,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_replicationcontrollers_scale** -> V1beta1Scale replace_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) +# **replace_pod_security_policy** +> V1beta1PodSecurityPolicy replace_pod_security_policy(name, body, pretty=pretty) -replace scale of the specified Scale +replace the specified PodSecurityPolicy ### Example ```python @@ -5456,30 +4553,28 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.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 = kubernetes.client.V1beta1Scale() # V1beta1Scale | +name = 'name_example' # str | name of the PodSecurityPolicy +body = kubernetes.client.V1beta1PodSecurityPolicy() # V1beta1PodSecurityPolicy | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: - api_response = api_instance.replace_namespaced_replicationcontrollers_scale(name, namespace, body, pretty=pretty) + api_response = api_instance.replace_pod_security_policy(name, body, pretty=pretty) pprint(api_response) except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replicationcontrollers_scale: %s\n" % e) + print("Exception when calling ExtensionsV1beta1Api->replace_pod_security_policy: %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)| | + **name** | **str**| name of the PodSecurityPolicy | + **body** | [**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1Scale**](V1beta1Scale.md) +[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) ### Authorization diff --git a/kubernetes/docs/ExtensionsV1beta1Deployment.md b/kubernetes/docs/ExtensionsV1beta1Deployment.md new file mode 100644 index 0000000000..a5dc8b1b36 --- /dev/null +++ b/kubernetes/docs/ExtensionsV1beta1Deployment.md @@ -0,0 +1,14 @@ +# ExtensionsV1beta1Deployment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] +**spec** | [**ExtensionsV1beta1DeploymentSpec**](ExtensionsV1beta1DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] +**status** | [**ExtensionsV1beta1DeploymentStatus**](ExtensionsV1beta1DeploymentStatus.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/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md b/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md new file mode 100644 index 0000000000..030435b326 --- /dev/null +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md @@ -0,0 +1,15 @@ +# ExtensionsV1beta1DeploymentCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_transition_time** | [**V1Time**](V1Time.md) | Last time the condition transitioned from one status to another. | [optional] +**last_update_time** | [**V1Time**](V1Time.md) | The last time this condition was updated. | [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 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/kubernetes/docs/V1beta1HorizontalPodAutoscalerList.md b/kubernetes/docs/ExtensionsV1beta1DeploymentList.md similarity index 76% rename from kubernetes/docs/V1beta1HorizontalPodAutoscalerList.md rename to kubernetes/docs/ExtensionsV1beta1DeploymentList.md index d6a486fc9a..97579db74c 100644 --- a/kubernetes/docs/V1beta1HorizontalPodAutoscalerList.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentList.md @@ -1,12 +1,12 @@ -# V1beta1HorizontalPodAutoscalerList +# ExtensionsV1beta1DeploymentList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1beta1HorizontalPodAutoscaler]**](V1beta1HorizontalPodAutoscaler.md) | list of horizontal pod autoscaler objects. | +**items** | [**list[ExtensionsV1beta1Deployment]**](ExtensionsV1beta1Deployment.md) | Items is the list of Deployments. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md b/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md new file mode 100644 index 0000000000..a8c3ae8aeb --- /dev/null +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md @@ -0,0 +1,14 @@ +# ExtensionsV1beta1DeploymentRollback + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**name** | **str** | Required: This must match the Name of a deployment. | +**rollback_to** | [**ExtensionsV1beta1RollbackConfig**](ExtensionsV1beta1RollbackConfig.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/kubernetes/docs/V1beta1DeploymentSpec.md b/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md similarity index 73% rename from kubernetes/docs/V1beta1DeploymentSpec.md rename to kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md index 0e4d4ebe86..8d08b0f7d4 100644 --- a/kubernetes/docs/V1beta1DeploymentSpec.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md @@ -1,4 +1,4 @@ -# V1beta1DeploymentSpec +# ExtensionsV1beta1DeploymentSpec ## Properties Name | Type | Description | Notes @@ -8,9 +8,9 @@ Name | Type | Description | Notes **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. | [optional] **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] +**rollback_to** | [**ExtensionsV1beta1RollbackConfig**](ExtensionsV1beta1RollbackConfig.md) | The config this deployment is rolling back to. Will be cleared after rollback is done. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | [optional] +**strategy** | [**ExtensionsV1beta1DeploymentStrategy**](ExtensionsV1beta1DeploymentStrategy.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/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md b/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md new file mode 100644 index 0000000000..0d367220ae --- /dev/null +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md @@ -0,0 +1,16 @@ +# ExtensionsV1beta1DeploymentStatus + +## 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[ExtensionsV1beta1DeploymentCondition]**](ExtensionsV1beta1DeploymentCondition.md) | Represents the latest available observations of a deployment's current state. | [optional] +**observed_generation** | **int** | The generation observed by the deployment controller. | [optional] +**ready_replicas** | **int** | Total number of ready pods targeted by this deployment. | [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/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md b/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md new file mode 100644 index 0000000000..336f836a85 --- /dev/null +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md @@ -0,0 +1,11 @@ +# ExtensionsV1beta1DeploymentStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rolling_update** | [**ExtensionsV1beta1RollingUpdateDeployment**](ExtensionsV1beta1RollingUpdateDeployment.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/kubernetes/docs/V1beta1CPUTargetUtilization.md b/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md similarity index 59% rename from kubernetes/docs/V1beta1CPUTargetUtilization.md rename to kubernetes/docs/ExtensionsV1beta1RollbackConfig.md index d5fb486e8f..b55f8fd54f 100644 --- a/kubernetes/docs/V1beta1CPUTargetUtilization.md +++ b/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md @@ -1,9 +1,9 @@ -# V1beta1CPUTargetUtilization +# ExtensionsV1beta1RollbackConfig ## 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. | +**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/kubernetes/docs/V1beta1RollingUpdateDeployment.md b/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md similarity index 71% rename from kubernetes/docs/V1beta1RollingUpdateDeployment.md rename to kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md index e6ce057803..ea25d8a78a 100644 --- a/kubernetes/docs/V1beta1RollingUpdateDeployment.md +++ b/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md @@ -1,10 +1,10 @@ -# V1beta1RollingUpdateDeployment +# ExtensionsV1beta1RollingUpdateDeployment ## 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] +**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 down. 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/kubernetes/docs/V1beta1HorizontalPodAutoscaler.md b/kubernetes/docs/ExtensionsV1beta1Scale.md similarity index 62% rename from kubernetes/docs/V1beta1HorizontalPodAutoscaler.md rename to kubernetes/docs/ExtensionsV1beta1Scale.md index 82a1c39ce7..29c7cfe110 100644 --- a/kubernetes/docs/V1beta1HorizontalPodAutoscaler.md +++ b/kubernetes/docs/ExtensionsV1beta1Scale.md @@ -1,13 +1,13 @@ -# V1beta1HorizontalPodAutoscaler +# ExtensionsV1beta1Scale ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**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] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. | [optional] +**spec** | [**ExtensionsV1beta1ScaleSpec**](ExtensionsV1beta1ScaleSpec.md) | defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] +**status** | [**ExtensionsV1beta1ScaleStatus**](ExtensionsV1beta1ScaleStatus.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/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md b/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md new file mode 100644 index 0000000000..832e3a2db8 --- /dev/null +++ b/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md @@ -0,0 +1,10 @@ +# ExtensionsV1beta1ScaleSpec + +## 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/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md b/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md new file mode 100644 index 0000000000..968a35101e --- /dev/null +++ b/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md @@ -0,0 +1,12 @@ +# ExtensionsV1beta1ScaleStatus + +## 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 kubernetes.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/kubernetes/docs/PolicyApi.md b/kubernetes/docs/PolicyApi.md index 924f1ed75c..aec5f83f9d 100644 --- a/kubernetes/docs/PolicyApi.md +++ b/kubernetes/docs/PolicyApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> UnversionedAPIGroup get_api_group() +> V1APIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIGroup**](UnversionedAPIGroup.md) +[**V1APIGroup**](V1APIGroup.md) ### Authorization diff --git a/kubernetes/docs/PolicyV1beta1Api.md b/kubernetes/docs/PolicyV1beta1Api.md index 5ed1eeaa5e..c0dd863f0c 100644 --- a/kubernetes/docs/PolicyV1beta1Api.md +++ b/kubernetes/docs/PolicyV1beta1Api.md @@ -75,7 +75,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_pod_disruption_budget** -> UnversionedStatus delete_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) +> V1Status delete_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) @@ -100,7 +100,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -119,13 +119,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -139,7 +139,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_pod_disruption_budget** -> UnversionedStatus delete_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -165,10 +165,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling PolicyV1beta1Api->delete_namespaced_pod_disruption_budget: %s\n" % e) @@ -183,11 +184,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -201,7 +203,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_api_resources** -> UnversionedAPIResourceList get_api_resources() +> V1APIResourceList get_api_resources() @@ -235,7 +237,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization @@ -274,7 +276,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -293,7 +295,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -337,7 +339,7 @@ api_instance = kubernetes.client.PolicyV1beta1Api() 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -355,7 +357,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -398,7 +400,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.PolicyV1beta1Api() name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -414,7 +416,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -456,7 +458,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.PolicyV1beta1Api() name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -472,7 +474,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -515,7 +517,7 @@ api_instance = kubernetes.client.PolicyV1beta1Api() 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) +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: @@ -532,7 +534,7 @@ 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] + **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 diff --git a/kubernetes/docs/RbacAuthorizationApi.md b/kubernetes/docs/RbacAuthorizationApi.md index c218c69ecf..c7686fea00 100644 --- a/kubernetes/docs/RbacAuthorizationApi.md +++ b/kubernetes/docs/RbacAuthorizationApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> UnversionedAPIGroup get_api_group() +> V1APIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIGroup**](UnversionedAPIGroup.md) +[**V1APIGroup**](V1APIGroup.md) ### Authorization diff --git a/kubernetes/docs/RbacAuthorizationV1alpha1Api.md b/kubernetes/docs/RbacAuthorizationV1alpha1Api.md index 2b4e731d0e..52c3547c8d 100644 --- a/kubernetes/docs/RbacAuthorizationV1alpha1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1alpha1Api.md @@ -258,7 +258,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_cluster_role** -> UnversionedStatus delete_cluster_role(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_cluster_role(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -283,10 +283,11 @@ name = 'name_example' # str | name of the ClusterRole body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_cluster_role(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_cluster_role(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->delete_cluster_role: %s\n" % e) @@ -300,11 +301,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -318,7 +320,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_cluster_role_binding** -> UnversionedStatus delete_cluster_role_binding(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_cluster_role_binding(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -343,10 +345,11 @@ name = 'name_example' # str | name of the ClusterRoleBinding body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_cluster_role_binding(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_cluster_role_binding(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->delete_cluster_role_binding: %s\n" % e) @@ -360,11 +363,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -378,7 +382,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_cluster_role** -> UnversionedStatus delete_collection_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_cluster_role(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -402,7 +406,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -420,13 +424,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -440,7 +444,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_cluster_role_binding** -> UnversionedStatus delete_collection_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_cluster_role_binding(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -464,7 +468,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -482,13 +486,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -502,7 +506,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_role** -> UnversionedStatus delete_collection_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -527,7 +531,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -546,13 +550,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -566,7 +570,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_namespaced_role_binding** -> UnversionedStatus delete_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) +> V1Status delete_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) @@ -591,7 +595,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -610,13 +614,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -630,7 +634,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_role** -> UnversionedStatus delete_namespaced_role(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_role(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -656,10 +660,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_role(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_role(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->delete_namespaced_role: %s\n" % e) @@ -674,11 +679,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -692,7 +698,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_namespaced_role_binding** -> UnversionedStatus delete_namespaced_role_binding(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_namespaced_role_binding(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -718,10 +724,11 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_namespaced_role_binding(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_namespaced_role_binding(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->delete_namespaced_role_binding: %s\n" % e) @@ -736,11 +743,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -754,7 +762,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_api_resources** -> UnversionedAPIResourceList get_api_resources() +> V1APIResourceList get_api_resources() @@ -788,7 +796,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization @@ -826,7 +834,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -844,7 +852,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -888,7 +896,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -906,7 +914,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -951,7 +959,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -970,7 +978,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -1015,7 +1023,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for 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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -1034,7 +1042,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -1078,7 +1086,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -1096,7 +1104,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -1140,7 +1148,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -1158,7 +1166,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -1200,7 +1208,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() name = 'name_example' # str | name of the ClusterRole -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -1215,7 +1223,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRole | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -1256,7 +1264,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() name = 'name_example' # str | name of the ClusterRoleBinding -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -1271,7 +1279,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRoleBinding | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -1313,7 +1321,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -1329,7 +1337,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -1371,7 +1379,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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 = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -1387,7 +1395,7 @@ 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)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/RbacAuthorizationV1beta1Api.md b/kubernetes/docs/RbacAuthorizationV1beta1Api.md new file mode 100644 index 0000000000..9285ccdc21 --- /dev/null +++ b/kubernetes/docs/RbacAuthorizationV1beta1Api.md @@ -0,0 +1,1863 @@ +# kubernetes.client.RbacAuthorizationV1beta1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_cluster_role**](RbacAuthorizationV1beta1Api.md#create_cluster_role) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | +[**create_cluster_role_binding**](RbacAuthorizationV1beta1Api.md#create_cluster_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | +[**create_namespaced_role**](RbacAuthorizationV1beta1Api.md#create_namespaced_role) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | +[**create_namespaced_role_binding**](RbacAuthorizationV1beta1Api.md#create_namespaced_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | +[**delete_cluster_role**](RbacAuthorizationV1beta1Api.md#delete_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | +[**delete_cluster_role_binding**](RbacAuthorizationV1beta1Api.md#delete_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | +[**delete_collection_cluster_role**](RbacAuthorizationV1beta1Api.md#delete_collection_cluster_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | +[**delete_collection_cluster_role_binding**](RbacAuthorizationV1beta1Api.md#delete_collection_cluster_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | +[**delete_collection_namespaced_role**](RbacAuthorizationV1beta1Api.md#delete_collection_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | +[**delete_collection_namespaced_role_binding**](RbacAuthorizationV1beta1Api.md#delete_collection_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | +[**delete_namespaced_role**](RbacAuthorizationV1beta1Api.md#delete_namespaced_role) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | +[**delete_namespaced_role_binding**](RbacAuthorizationV1beta1Api.md#delete_namespaced_role_binding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | +[**get_api_resources**](RbacAuthorizationV1beta1Api.md#get_api_resources) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/ | +[**list_cluster_role**](RbacAuthorizationV1beta1Api.md#list_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | +[**list_cluster_role_binding**](RbacAuthorizationV1beta1Api.md#list_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | +[**list_namespaced_role**](RbacAuthorizationV1beta1Api.md#list_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | +[**list_namespaced_role_binding**](RbacAuthorizationV1beta1Api.md#list_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | +[**list_role_binding_for_all_namespaces**](RbacAuthorizationV1beta1Api.md#list_role_binding_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/rolebindings | +[**list_role_for_all_namespaces**](RbacAuthorizationV1beta1Api.md#list_role_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/roles | +[**patch_cluster_role**](RbacAuthorizationV1beta1Api.md#patch_cluster_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | +[**patch_cluster_role_binding**](RbacAuthorizationV1beta1Api.md#patch_cluster_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | +[**patch_namespaced_role**](RbacAuthorizationV1beta1Api.md#patch_namespaced_role) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | +[**patch_namespaced_role_binding**](RbacAuthorizationV1beta1Api.md#patch_namespaced_role_binding) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | +[**read_cluster_role**](RbacAuthorizationV1beta1Api.md#read_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | +[**read_cluster_role_binding**](RbacAuthorizationV1beta1Api.md#read_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | +[**read_namespaced_role**](RbacAuthorizationV1beta1Api.md#read_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | +[**read_namespaced_role_binding**](RbacAuthorizationV1beta1Api.md#read_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | +[**replace_cluster_role**](RbacAuthorizationV1beta1Api.md#replace_cluster_role) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | +[**replace_cluster_role_binding**](RbacAuthorizationV1beta1Api.md#replace_cluster_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | +[**replace_namespaced_role**](RbacAuthorizationV1beta1Api.md#replace_namespaced_role) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | +[**replace_namespaced_role_binding**](RbacAuthorizationV1beta1Api.md#replace_namespaced_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | + + +# **create_cluster_role** +> V1beta1ClusterRole create_cluster_role(body, pretty=pretty) + + + +create a ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +body = kubernetes.client.V1beta1ClusterRole() # V1beta1ClusterRole | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_cluster_role(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->create_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1ClusterRole**](V1beta1ClusterRole.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ClusterRole**](V1beta1ClusterRole.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_cluster_role_binding** +> V1beta1ClusterRoleBinding create_cluster_role_binding(body, pretty=pretty) + + + +create a ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +body = kubernetes.client.V1beta1ClusterRoleBinding() # V1beta1ClusterRoleBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_cluster_role_binding(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->create_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.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_namespaced_role** +> V1beta1Role create_namespaced_role(namespace, body, pretty=pretty) + + + +create a Role + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1Role() # V1beta1Role | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_role(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->create_namespaced_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1beta1Role**](V1beta1Role.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Role**](V1beta1Role.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_namespaced_role_binding** +> V1beta1RoleBinding create_namespaced_role_binding(namespace, body, pretty=pretty) + + + +create a RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1RoleBinding() # V1beta1RoleBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_role_binding(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->create_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** | [**V1beta1RoleBinding**](V1beta1RoleBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1RoleBinding**](V1beta1RoleBinding.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_cluster_role** +> V1Status delete_cluster_role(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +delete a ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +name = 'name_example' # str | name of the ClusterRole +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # 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 = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) + +try: + api_response = api_instance.delete_cluster_role(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->delete_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] + **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**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + +### Return type + +[**V1Status**](V1Status.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_cluster_role_binding** +> V1Status delete_cluster_role_binding(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +delete a ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +name = 'name_example' # str | name of the ClusterRoleBinding +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # 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 = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) + +try: + api_response = api_instance.delete_cluster_role_binding(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->delete_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] + **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**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + +### Return type + +[**V1Status**](V1Status.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_collection_cluster_role** +> V1Status delete_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 RbacAuthorizationV1beta1Api->delete_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1Status**](V1Status.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_collection_cluster_role_binding** +> V1Status delete_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 RbacAuthorizationV1beta1Api->delete_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1Status**](V1Status.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_collection_namespaced_role** +> V1Status delete_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 RbacAuthorizationV1beta1Api->delete_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1Status**](V1Status.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_collection_namespaced_role_binding** +> V1Status delete_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 RbacAuthorizationV1beta1Api->delete_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1Status**](V1Status.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_namespaced_role** +> V1Status delete_namespaced_role(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +delete a Role + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +name = 'name_example' # str | name of the Role +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # 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 = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) + +try: + api_response = api_instance.delete_namespaced_role(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->delete_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] + **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**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + +### Return type + +[**V1Status**](V1Status.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_namespaced_role_binding** +> V1Status delete_namespaced_role_binding(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +delete a RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +name = 'name_example' # str | name of the RoleBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # 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 = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) + +try: + api_response = api_instance.delete_namespaced_role_binding(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->delete_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] + **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**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + +### Return type + +[**V1Status**](V1Status.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_api_resources** +> V1APIResourceList get_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() + +try: + api_response = api_instance.get_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->get_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.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_cluster_role** +> V1beta1ClusterRoleList list_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 RbacAuthorizationV1beta1Api->list_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1beta1ClusterRoleList**](V1beta1ClusterRoleList.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_cluster_role_binding** +> V1beta1ClusterRoleBindingList list_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 RbacAuthorizationV1beta1Api->list_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1beta1ClusterRoleBindingList**](V1beta1ClusterRoleBindingList.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_namespaced_role** +> V1beta1RoleList list_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 RbacAuthorizationV1beta1Api->list_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1beta1RoleList**](V1beta1RoleList.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_namespaced_role_binding** +> V1beta1RoleBindingList list_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 RbacAuthorizationV1beta1Api->list_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1beta1RoleBindingList**](V1beta1RoleBindingList.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_role_binding_for_all_namespaces** +> V1beta1RoleBindingList list_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 RbacAuthorizationV1beta1Api->list_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1beta1RoleBindingList**](V1beta1RoleBindingList.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_role_for_all_namespaces** +> V1beta1RoleList list_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 RbacAuthorizationV1beta1Api->list_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1beta1RoleList**](V1beta1RoleList.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_cluster_role** +> V1beta1ClusterRole patch_cluster_role(name, body, pretty=pretty) + + + +partially update the specified ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +name = 'name_example' # str | name of the ClusterRole +body = kubernetes.client.V1Patch() # V1Patch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_cluster_role(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->patch_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRole | + **body** | [**V1Patch**](V1Patch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ClusterRole**](V1beta1ClusterRole.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_cluster_role_binding** +> V1beta1ClusterRoleBinding patch_cluster_role_binding(name, body, pretty=pretty) + + + +partially update the specified ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +name = 'name_example' # str | name of the ClusterRoleBinding +body = kubernetes.client.V1Patch() # V1Patch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_cluster_role_binding(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->patch_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRoleBinding | + **body** | [**V1Patch**](V1Patch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.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_namespaced_role** +> V1beta1Role patch_namespaced_role(name, namespace, body, pretty=pretty) + + + +partially update the specified Role + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +name = 'name_example' # str | name of the Role +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_role(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->patch_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** | [**V1Patch**](V1Patch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Role**](V1beta1Role.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_namespaced_role_binding** +> V1beta1RoleBinding patch_namespaced_role_binding(name, namespace, body, pretty=pretty) + + + +partially update the specified RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +name = 'name_example' # str | name of the RoleBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_role_binding(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->patch_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** | [**V1Patch**](V1Patch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1RoleBinding**](V1beta1RoleBinding.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_cluster_role** +> V1beta1ClusterRole read_cluster_role(name, pretty=pretty) + + + +read the specified ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +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_cluster_role(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->read_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 + +[**V1beta1ClusterRole**](V1beta1ClusterRole.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_cluster_role_binding** +> V1beta1ClusterRoleBinding read_cluster_role_binding(name, pretty=pretty) + + + +read the specified ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +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_cluster_role_binding(name, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->read_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 + +[**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.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_namespaced_role** +> V1beta1Role read_namespaced_role(name, namespace, pretty=pretty) + + + +read the specified Role + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +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_namespaced_role(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->read_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 + +[**V1beta1Role**](V1beta1Role.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_namespaced_role_binding** +> V1beta1RoleBinding read_namespaced_role_binding(name, namespace, pretty=pretty) + + + +read the specified RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +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_namespaced_role_binding(name, namespace, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->read_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 + +[**V1beta1RoleBinding**](V1beta1RoleBinding.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_cluster_role** +> V1beta1ClusterRole replace_cluster_role(name, body, pretty=pretty) + + + +replace the specified ClusterRole + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +name = 'name_example' # str | name of the ClusterRole +body = kubernetes.client.V1beta1ClusterRole() # V1beta1ClusterRole | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_cluster_role(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->replace_cluster_role: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRole | + **body** | [**V1beta1ClusterRole**](V1beta1ClusterRole.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ClusterRole**](V1beta1ClusterRole.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_cluster_role_binding** +> V1beta1ClusterRoleBinding replace_cluster_role_binding(name, body, pretty=pretty) + + + +replace the specified ClusterRoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +name = 'name_example' # str | name of the ClusterRoleBinding +body = kubernetes.client.V1beta1ClusterRoleBinding() # V1beta1ClusterRoleBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_cluster_role_binding(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->replace_cluster_role_binding: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the ClusterRoleBinding | + **body** | [**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.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_namespaced_role** +> V1beta1Role replace_namespaced_role(name, namespace, body, pretty=pretty) + + + +replace the specified Role + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +name = 'name_example' # str | name of the Role +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1Role() # V1beta1Role | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_role(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->replace_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** | [**V1beta1Role**](V1beta1Role.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1Role**](V1beta1Role.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_namespaced_role_binding** +> V1beta1RoleBinding replace_namespaced_role_binding(name, namespace, body, pretty=pretty) + + + +replace the specified RoleBinding + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() +name = 'name_example' # str | name of the RoleBinding +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1beta1RoleBinding() # V1beta1RoleBinding | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_role_binding(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->replace_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** | [**V1beta1RoleBinding**](V1beta1RoleBinding.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1beta1RoleBinding**](V1beta1RoleBinding.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) + diff --git a/kubernetes/docs/SettingsApi.md b/kubernetes/docs/SettingsApi.md new file mode 100644 index 0000000000..1f0768819c --- /dev/null +++ b/kubernetes/docs/SettingsApi.md @@ -0,0 +1,57 @@ +# kubernetes.client.SettingsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_api_group**](SettingsApi.md#get_api_group) | **GET** /apis/settings.k8s.io/ | + + +# **get_api_group** +> V1APIGroup get_api_group() + + + +get information of a group + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.SettingsApi() + +try: + api_response = api_instance.get_api_group() + pprint(api_response) +except ApiException as e: + print("Exception when calling SettingsApi->get_api_group: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIGroup**](V1APIGroup.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/kubernetes/docs/SettingsV1alpha1Api.md b/kubernetes/docs/SettingsV1alpha1Api.md new file mode 100644 index 0000000000..d29bbd0aa9 --- /dev/null +++ b/kubernetes/docs/SettingsV1alpha1Api.md @@ -0,0 +1,551 @@ +# kubernetes.client.SettingsV1alpha1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_namespaced_pod_preset**](SettingsV1alpha1Api.md#create_namespaced_pod_preset) | **POST** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | +[**delete_collection_namespaced_pod_preset**](SettingsV1alpha1Api.md#delete_collection_namespaced_pod_preset) | **DELETE** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | +[**delete_namespaced_pod_preset**](SettingsV1alpha1Api.md#delete_namespaced_pod_preset) | **DELETE** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | +[**get_api_resources**](SettingsV1alpha1Api.md#get_api_resources) | **GET** /apis/settings.k8s.io/v1alpha1/ | +[**list_namespaced_pod_preset**](SettingsV1alpha1Api.md#list_namespaced_pod_preset) | **GET** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | +[**list_pod_preset_for_all_namespaces**](SettingsV1alpha1Api.md#list_pod_preset_for_all_namespaces) | **GET** /apis/settings.k8s.io/v1alpha1/podpresets | +[**patch_namespaced_pod_preset**](SettingsV1alpha1Api.md#patch_namespaced_pod_preset) | **PATCH** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | +[**read_namespaced_pod_preset**](SettingsV1alpha1Api.md#read_namespaced_pod_preset) | **GET** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | +[**replace_namespaced_pod_preset**](SettingsV1alpha1Api.md#replace_namespaced_pod_preset) | **PUT** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | + + +# **create_namespaced_pod_preset** +> V1alpha1PodPreset create_namespaced_pod_preset(namespace, body, pretty=pretty) + + + +create a PodPreset + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.SettingsV1alpha1Api() +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1alpha1PodPreset() # V1alpha1PodPreset | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_namespaced_pod_preset(namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->create_namespaced_pod_preset: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1PodPreset**](V1alpha1PodPreset.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1PodPreset**](V1alpha1PodPreset.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_collection_namespaced_pod_preset** +> V1Status delete_collection_namespaced_pod_preset(namespace, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +delete collection of PodPreset + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.SettingsV1alpha1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_collection_namespaced_pod_preset(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 SettingsV1alpha1Api->delete_collection_namespaced_pod_preset: %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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1Status**](V1Status.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_namespaced_pod_preset** +> V1Status delete_namespaced_pod_preset(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +delete a PodPreset + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.SettingsV1alpha1Api() +name = 'name_example' # str | name of the PodPreset +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # 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 = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) + +try: + api_response = api_instance.delete_namespaced_pod_preset(name, namespace, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->delete_namespaced_pod_preset: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodPreset | + **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] + **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**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + +### Return type + +[**V1Status**](V1Status.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_api_resources** +> V1APIResourceList get_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.SettingsV1alpha1Api() + +try: + api_response = api_instance.get_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->get_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.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_namespaced_pod_preset** +> V1alpha1PodPresetList list_namespaced_pod_preset(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 PodPreset + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.SettingsV1alpha1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_namespaced_pod_preset(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 SettingsV1alpha1Api->list_namespaced_pod_preset: %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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1alpha1PodPresetList**](V1alpha1PodPresetList.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_pod_preset_for_all_namespaces** +> V1alpha1PodPresetList list_pod_preset_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 PodPreset + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.SettingsV1alpha1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_pod_preset_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 SettingsV1alpha1Api->list_pod_preset_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1alpha1PodPresetList**](V1alpha1PodPresetList.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_namespaced_pod_preset** +> V1alpha1PodPreset patch_namespaced_pod_preset(name, namespace, body, pretty=pretty) + + + +partially update the specified PodPreset + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.SettingsV1alpha1Api() +name = 'name_example' # str | name of the PodPreset +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1Patch() # V1Patch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_namespaced_pod_preset(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->patch_namespaced_pod_preset: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodPreset | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1Patch**](V1Patch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1PodPreset**](V1alpha1PodPreset.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_namespaced_pod_preset** +> V1alpha1PodPreset read_namespaced_pod_preset(name, namespace, pretty=pretty, exact=exact, export=export) + + + +read the specified PodPreset + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.SettingsV1alpha1Api() +name = 'name_example' # str | name of the PodPreset +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_namespaced_pod_preset(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->read_namespaced_pod_preset: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodPreset | + **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 + +[**V1alpha1PodPreset**](V1alpha1PodPreset.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_namespaced_pod_preset** +> V1alpha1PodPreset replace_namespaced_pod_preset(name, namespace, body, pretty=pretty) + + + +replace the specified PodPreset + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.SettingsV1alpha1Api() +name = 'name_example' # str | name of the PodPreset +namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +body = kubernetes.client.V1alpha1PodPreset() # V1alpha1PodPreset | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_namespaced_pod_preset(name, namespace, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->replace_namespaced_pod_preset: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the PodPreset | + **namespace** | **str**| object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1PodPreset**](V1alpha1PodPreset.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1alpha1PodPreset**](V1alpha1PodPreset.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) + diff --git a/kubernetes/docs/StorageApi.md b/kubernetes/docs/StorageApi.md index 6694d121f1..ac4a2b8d9c 100644 --- a/kubernetes/docs/StorageApi.md +++ b/kubernetes/docs/StorageApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_api_group** -> UnversionedAPIGroup get_api_group() +> V1APIGroup get_api_group() @@ -42,7 +42,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIGroup**](UnversionedAPIGroup.md) +[**V1APIGroup**](V1APIGroup.md) ### Authorization diff --git a/kubernetes/docs/StorageV1Api.md b/kubernetes/docs/StorageV1Api.md new file mode 100644 index 0000000000..19172d7374 --- /dev/null +++ b/kubernetes/docs/StorageV1Api.md @@ -0,0 +1,474 @@ +# kubernetes.client.StorageV1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_storage_class**](StorageV1Api.md#create_storage_class) | **POST** /apis/storage.k8s.io/v1/storageclasses | +[**delete_collection_storage_class**](StorageV1Api.md#delete_collection_storage_class) | **DELETE** /apis/storage.k8s.io/v1/storageclasses | +[**delete_storage_class**](StorageV1Api.md#delete_storage_class) | **DELETE** /apis/storage.k8s.io/v1/storageclasses/{name} | +[**get_api_resources**](StorageV1Api.md#get_api_resources) | **GET** /apis/storage.k8s.io/v1/ | +[**list_storage_class**](StorageV1Api.md#list_storage_class) | **GET** /apis/storage.k8s.io/v1/storageclasses | +[**patch_storage_class**](StorageV1Api.md#patch_storage_class) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | +[**read_storage_class**](StorageV1Api.md#read_storage_class) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | +[**replace_storage_class**](StorageV1Api.md#replace_storage_class) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | + + +# **create_storage_class** +> V1StorageClass create_storage_class(body, pretty=pretty) + + + +create a StorageClass + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.StorageV1Api() +body = kubernetes.client.V1StorageClass() # V1StorageClass | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.create_storage_class(body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1Api->create_storage_class: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1StorageClass**](V1StorageClass.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1StorageClass**](V1StorageClass.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_collection_storage_class** +> V1Status delete_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.StorageV1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 StorageV1Api->delete_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1Status**](V1Status.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_class** +> V1Status delete_storage_class(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +delete a StorageClass + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.StorageV1Api() +name = 'name_example' # str | name of the StorageClass +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +grace_period_seconds = 56 # 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 = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) + +try: + api_response = api_instance.delete_storage_class(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1Api->delete_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] + **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**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] + +### Return type + +[**V1Status**](V1Status.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_api_resources** +> V1APIResourceList get_api_resources() + + + +get available resources + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.StorageV1Api() + +try: + api_response = api_instance.get_api_resources() + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1Api->get_api_resources: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.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_class** +> V1StorageClassList list_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 kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.StorageV1Api() +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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_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 StorageV1Api->list_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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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 + +[**V1StorageClassList**](V1StorageClassList.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_class** +> V1StorageClass patch_storage_class(name, body, pretty=pretty) + + + +partially update the specified StorageClass + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.StorageV1Api() +name = 'name_example' # str | name of the StorageClass +body = kubernetes.client.V1Patch() # V1Patch | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.patch_storage_class(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1Api->patch_storage_class: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StorageClass | + **body** | [**V1Patch**](V1Patch.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1StorageClass**](V1StorageClass.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_class** +> V1StorageClass read_storage_class(name, pretty=pretty, exact=exact, export=export) + + + +read the specified StorageClass + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.StorageV1Api() +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_class(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1Api->read_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 + +[**V1StorageClass**](V1StorageClass.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_class** +> V1StorageClass replace_storage_class(name, body, pretty=pretty) + + + +replace the specified StorageClass + +### Example +```python +from __future__ import print_statement +import time +import kubernetes.client +from kubernetes.client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: BearerToken +kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' + +# create an instance of the API class +api_instance = kubernetes.client.StorageV1Api() +name = 'name_example' # str | name of the StorageClass +body = kubernetes.client.V1StorageClass() # V1StorageClass | +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) + +try: + api_response = api_instance.replace_storage_class(name, body, pretty=pretty) + pprint(api_response) +except ApiException as e: + print("Exception when calling StorageV1Api->replace_storage_class: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| name of the StorageClass | + **body** | [**V1StorageClass**](V1StorageClass.md)| | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + +### Return type + +[**V1StorageClass**](V1StorageClass.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) + diff --git a/kubernetes/docs/StorageV1beta1Api.md b/kubernetes/docs/StorageV1beta1Api.md index 50b07c8066..427f9f460c 100644 --- a/kubernetes/docs/StorageV1beta1Api.md +++ b/kubernetes/docs/StorageV1beta1Api.md @@ -69,7 +69,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_collection_storage_class** -> UnversionedStatus delete_collection_storage_class(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_storage_class(pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -93,7 +93,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -111,13 +111,13 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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) +[**V1Status**](V1Status.md) ### Authorization @@ -131,7 +131,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_class** -> UnversionedStatus delete_storage_class(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) +> V1Status delete_storage_class(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -156,10 +156,11 @@ name = 'name_example' # str | name of the StorageClass body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # 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 = true # 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) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) try: - api_response = api_instance.delete_storage_class(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents) + api_response = api_instance.delete_storage_class(name, body, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1beta1Api->delete_storage_class: %s\n" % e) @@ -173,11 +174,12 @@ Name | Type | Description | Notes **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **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] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] ### Return type -[**UnversionedStatus**](UnversionedStatus.md) +[**V1Status**](V1Status.md) ### Authorization @@ -191,7 +193,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[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_api_resources** -> UnversionedAPIResourceList get_api_resources() +> V1APIResourceList get_api_resources() @@ -225,7 +227,7 @@ This endpoint does not need any parameter. ### Return type -[**UnversionedAPIResourceList**](UnversionedAPIResourceList.md) +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization @@ -263,7 +265,7 @@ api_instance = kubernetes.client.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) +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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (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) @@ -281,7 +283,7 @@ 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] + **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. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [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] @@ -323,7 +325,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api() name = 'name_example' # str | name of the StorageClass -body = kubernetes.client.UnversionedPatch() # UnversionedPatch | +body = kubernetes.client.V1Patch() # V1Patch | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -338,7 +340,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StorageClass | - **body** | [**UnversionedPatch**](UnversionedPatch.md)| | + **body** | [**V1Patch**](V1Patch.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -380,7 +382,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.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) +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: @@ -396,7 +398,7 @@ 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] + **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 diff --git a/kubernetes/docs/UnversionedAPIGroup.md b/kubernetes/docs/UnversionedAPIGroup.md deleted file mode 100644 index b62de6d344..0000000000 --- a/kubernetes/docs/UnversionedAPIGroup.md +++ /dev/null @@ -1,15 +0,0 @@ -# UnversionedAPIGroup - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**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 kubernetes.client CIDR to server address that is serving this group. This is to help kubernetes.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, kubernetes.clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the kubernetes.client can match. For example: the master will return an internal IP CIDR only, if the kubernetes.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 kubernetes.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/kubernetes/docs/V1APIGroup.md b/kubernetes/docs/V1APIGroup.md new file mode 100644 index 0000000000..3157f06550 --- /dev/null +++ b/kubernetes/docs/V1APIGroup.md @@ -0,0 +1,15 @@ +# V1APIGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**name** | **str** | name is the name of the group. | +**preferred_version** | [**V1GroupVersionForDiscovery**](V1GroupVersionForDiscovery.md) | preferredVersion is the version preferred by the API server, which probably is the storage version. | [optional] +**server_address_by_client_cid_rs** | [**list[V1ServerAddressByClientCIDR]**](V1ServerAddressByClientCIDR.md) | a map of kubernetes.client CIDR to server address that is serving this group. This is to help kubernetes.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, kubernetes.clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the kubernetes.client can match. For example: the master will return an internal IP CIDR only, if the kubernetes.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 kubernetes.client IP. | +**versions** | [**list[V1GroupVersionForDiscovery]**](V1GroupVersionForDiscovery.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/kubernetes/docs/UnversionedAPIGroupList.md b/kubernetes/docs/V1APIGroupList.md similarity index 87% rename from kubernetes/docs/UnversionedAPIGroupList.md rename to kubernetes/docs/V1APIGroupList.md index d854a146f2..19094584ff 100644 --- a/kubernetes/docs/UnversionedAPIGroupList.md +++ b/kubernetes/docs/V1APIGroupList.md @@ -1,10 +1,10 @@ -# UnversionedAPIGroupList +# V1APIGroupList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**groups** | [**list[UnversionedAPIGroup]**](UnversionedAPIGroup.md) | groups is a list of APIGroup. | +**groups** | [**list[V1APIGroup]**](V1APIGroup.md) | groups is a list of APIGroup. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. 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/kubernetes/docs/UnversionedAPIResource.md b/kubernetes/docs/V1APIResource.md similarity index 65% rename from kubernetes/docs/UnversionedAPIResource.md rename to kubernetes/docs/V1APIResource.md index b1774241a6..ef648d9ffd 100644 --- a/kubernetes/docs/UnversionedAPIResource.md +++ b/kubernetes/docs/V1APIResource.md @@ -1,4 +1,4 @@ -# UnversionedAPIResource +# V1APIResource ## Properties Name | Type | Description | Notes @@ -6,6 +6,8 @@ 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. | +**short_names** | **list[str]** | shortNames is a list of suggested short names of the resource. | [optional] +**verbs** | **list[str]** | verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) | [[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/kubernetes/docs/UnversionedAPIResourceList.md b/kubernetes/docs/V1APIResourceList.md similarity index 84% rename from kubernetes/docs/UnversionedAPIResourceList.md rename to kubernetes/docs/V1APIResourceList.md index 1ce2b12848..d07fc617c5 100644 --- a/kubernetes/docs/UnversionedAPIResourceList.md +++ b/kubernetes/docs/V1APIResourceList.md @@ -1,4 +1,4 @@ -# UnversionedAPIResourceList +# V1APIResourceList ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **group_version** | **str** | groupVersion is the group and version this APIResourceList is for. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**resources** | [**list[UnversionedAPIResource]**](UnversionedAPIResource.md) | resources contains the name of the resources and if they are namespaced. | +**resources** | [**list[V1APIResource]**](V1APIResource.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/kubernetes/docs/UnversionedAPIVersions.md b/kubernetes/docs/V1APIVersions.md similarity index 53% rename from kubernetes/docs/UnversionedAPIVersions.md rename to kubernetes/docs/V1APIVersions.md index 2db4eff049..1e596820f3 100644 --- a/kubernetes/docs/UnversionedAPIVersions.md +++ b/kubernetes/docs/V1APIVersions.md @@ -1,11 +1,11 @@ -# UnversionedAPIVersions +# V1APIVersions ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**server_address_by_client_cid_rs** | [**list[UnversionedServerAddressByClientCIDR]**](UnversionedServerAddressByClientCIDR.md) | a map of kubernetes.client CIDR to server address that is serving this group. This is to help kubernetes.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, kubernetes.clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the kubernetes.client can match. For example: the master will return an internal IP CIDR only, if the kubernetes.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 kubernetes.client IP. | +**server_address_by_client_cid_rs** | [**list[V1ServerAddressByClientCIDR]**](V1ServerAddressByClientCIDR.md) | a map of kubernetes.client CIDR to server address that is serving this group. This is to help kubernetes.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, kubernetes.clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the kubernetes.client can match. For example: the master will return an internal IP CIDR only, if the kubernetes.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 kubernetes.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/kubernetes/docs/V1Affinity.md b/kubernetes/docs/V1Affinity.md new file mode 100644 index 0000000000..14dfb61142 --- /dev/null +++ b/kubernetes/docs/V1Affinity.md @@ -0,0 +1,12 @@ +# V1Affinity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**node_affinity** | [**V1NodeAffinity**](V1NodeAffinity.md) | Describes node affinity scheduling rules for the pod. | [optional] +**pod_affinity** | [**V1PodAffinity**](V1PodAffinity.md) | Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). | [optional] +**pod_anti_affinity** | [**V1PodAntiAffinity**](V1PodAntiAffinity.md) | Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). | [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/kubernetes/docs/V1ComponentStatusList.md b/kubernetes/docs/V1ComponentStatusList.md index 9c7102390c..2f2077f96e 100644 --- a/kubernetes/docs/V1ComponentStatusList.md +++ b/kubernetes/docs/V1ComponentStatusList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ComponentStatus]**](V1ComponentStatus.md) | List of ComponentStatus objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1ConfigMapEnvSource.md b/kubernetes/docs/V1ConfigMapEnvSource.md new file mode 100644 index 0000000000..37fe9b964e --- /dev/null +++ b/kubernetes/docs/V1ConfigMapEnvSource.md @@ -0,0 +1,11 @@ +# V1ConfigMapEnvSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**optional** | **bool** | Specify whether the ConfigMap must be defined | [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/kubernetes/docs/V1ConfigMapKeySelector.md b/kubernetes/docs/V1ConfigMapKeySelector.md index 1983b68526..a424306c4d 100644 --- a/kubernetes/docs/V1ConfigMapKeySelector.md +++ b/kubernetes/docs/V1ConfigMapKeySelector.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **str** | The key to select. | **name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**optional** | **bool** | Specify whether the ConfigMap or it's key must be defined | [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/kubernetes/docs/V1ConfigMapList.md b/kubernetes/docs/V1ConfigMapList.md index aa7f3f80da..66b65917c3 100644 --- a/kubernetes/docs/V1ConfigMapList.md +++ b/kubernetes/docs/V1ConfigMapList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ConfigMap]**](V1ConfigMap.md) | Items is the list of ConfigMaps. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1ConfigMapProjection.md b/kubernetes/docs/V1ConfigMapProjection.md new file mode 100644 index 0000000000..5f088e1441 --- /dev/null +++ b/kubernetes/docs/V1ConfigMapProjection.md @@ -0,0 +1,12 @@ +# V1ConfigMapProjection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] +**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**optional** | **bool** | Specify whether the ConfigMap or it's keys must be defined | [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/kubernetes/docs/V1ConfigMapVolumeSource.md b/kubernetes/docs/V1ConfigMapVolumeSource.md index 7cadfedf59..5b62b5265c 100644 --- a/kubernetes/docs/V1ConfigMapVolumeSource.md +++ b/kubernetes/docs/V1ConfigMapVolumeSource.md @@ -4,8 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_mode** | **int** | Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] +**items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] **name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**optional** | **bool** | Specify whether the ConfigMap or it's keys must be defined | [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/kubernetes/docs/V1Container.md b/kubernetes/docs/V1Container.md index 341b590ef6..bd104469a6 100644 --- a/kubernetes/docs/V1Container.md +++ b/kubernetes/docs/V1Container.md @@ -6,6 +6,7 @@ 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] +**env_from** | [**list[V1EnvFromSource]**](V1EnvFromSource.md) | List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. 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] @@ -17,7 +18,8 @@ Name | Type | Description | Notes **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 kubernetes.client attaches to stdin, and then remains open and accepts data until the kubernetes.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] +**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. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. | [optional] +**termination_message_policy** | **str** | Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. 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] diff --git a/kubernetes/docs/V1ContainerStateRunning.md b/kubernetes/docs/V1ContainerStateRunning.md index 9db0dac670..55cfecfcad 100644 --- a/kubernetes/docs/V1ContainerStateRunning.md +++ b/kubernetes/docs/V1ContainerStateRunning.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**started_at** | [**UnversionedTime**](UnversionedTime.md) | Time at which the container was last (re-)started | [optional] +**started_at** | [**V1Time**](V1Time.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/kubernetes/docs/V1ContainerStateTerminated.md b/kubernetes/docs/V1ContainerStateTerminated.md index aa2a1d2673..ec0a8d3750 100644 --- a/kubernetes/docs/V1ContainerStateTerminated.md +++ b/kubernetes/docs/V1ContainerStateTerminated.md @@ -5,11 +5,11 @@ 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] +**finished_at** | [**V1Time**](V1Time.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] +**started_at** | [**V1Time**](V1Time.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/kubernetes/docs/V1DeleteOptions.md b/kubernetes/docs/V1DeleteOptions.md index 1f3ee9ce5c..e9ab3bfcbd 100644 --- a/kubernetes/docs/V1DeleteOptions.md +++ b/kubernetes/docs/V1DeleteOptions.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **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] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [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] +**orphan_dependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [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] +**propagation_policy** | **str** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default 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/kubernetes/docs/V1DownwardAPIProjection.md b/kubernetes/docs/V1DownwardAPIProjection.md new file mode 100644 index 0000000000..733b095b65 --- /dev/null +++ b/kubernetes/docs/V1DownwardAPIProjection.md @@ -0,0 +1,10 @@ +# V1DownwardAPIProjection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1DownwardAPIVolumeFile]**](V1DownwardAPIVolumeFile.md) | Items is a list of DownwardAPIVolume file | [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/kubernetes/docs/V1EndpointsList.md b/kubernetes/docs/V1EndpointsList.md index 9ca43ef423..3629a9a903 100644 --- a/kubernetes/docs/V1EndpointsList.md +++ b/kubernetes/docs/V1EndpointsList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Endpoints]**](V1Endpoints.md) | List of endpoints. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1EnvFromSource.md b/kubernetes/docs/V1EnvFromSource.md new file mode 100644 index 0000000000..4bd03faed8 --- /dev/null +++ b/kubernetes/docs/V1EnvFromSource.md @@ -0,0 +1,12 @@ +# V1EnvFromSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config_map_ref** | [**V1ConfigMapEnvSource**](V1ConfigMapEnvSource.md) | The ConfigMap to select from | [optional] +**prefix** | **str** | An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. | [optional] +**secret_ref** | [**V1SecretEnvSource**](V1SecretEnvSource.md) | The Secret to select from | [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/kubernetes/docs/V1Event.md b/kubernetes/docs/V1Event.md index bcb8e2671f..6a00bfb9f9 100644 --- a/kubernetes/docs/V1Event.md +++ b/kubernetes/docs/V1Event.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **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] +**first_timestamp** | [**V1Time**](V1Time.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. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**last_timestamp** | [**UnversionedTime**](UnversionedTime.md) | The time at which the most recent occurrence of this event was recorded. | [optional] +**last_timestamp** | [**V1Time**](V1Time.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] diff --git a/kubernetes/docs/V1EventList.md b/kubernetes/docs/V1EventList.md index 16574820ee..637e0ddb08 100644 --- a/kubernetes/docs/V1EventList.md +++ b/kubernetes/docs/V1EventList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Event]**](V1Event.md) | List of events | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/UnversionedGroupVersionForDiscovery.md b/kubernetes/docs/V1GroupVersionForDiscovery.md similarity index 93% rename from kubernetes/docs/UnversionedGroupVersionForDiscovery.md rename to kubernetes/docs/V1GroupVersionForDiscovery.md index 6c2902edf5..c163d7a973 100644 --- a/kubernetes/docs/UnversionedGroupVersionForDiscovery.md +++ b/kubernetes/docs/V1GroupVersionForDiscovery.md @@ -1,4 +1,4 @@ -# UnversionedGroupVersionForDiscovery +# V1GroupVersionForDiscovery ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerList.md b/kubernetes/docs/V1HorizontalPodAutoscalerList.md index 8aaf8ee10e..147da50293 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerList.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1HorizontalPodAutoscaler]**](V1HorizontalPodAutoscaler.md) | list of horizontal pod autoscaler objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md index e48da32108..6cbf2cb787 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md @@ -6,7 +6,7 @@ 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] +**last_scale_time** | [**V1Time**](V1Time.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/kubernetes/docs/V1ISCSIVolumeSource.md b/kubernetes/docs/V1ISCSIVolumeSource.md index dd3b74b852..33f1ae4c34 100644 --- a/kubernetes/docs/V1ISCSIVolumeSource.md +++ b/kubernetes/docs/V1ISCSIVolumeSource.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **iqn** | **str** | Target iSCSI Qualified Name. | **iscsi_interface** | **str** | Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. | [optional] **lun** | **int** | iSCSI target lun number. | +**portals** | **list[str]** | iSCSI target portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | [optional] **read_only** | **bool** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. | [optional] **target_portal** | **str** | iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | diff --git a/kubernetes/docs/V1JobCondition.md b/kubernetes/docs/V1JobCondition.md index 254e909de8..3b9443fc2c 100644 --- a/kubernetes/docs/V1JobCondition.md +++ b/kubernetes/docs/V1JobCondition.md @@ -3,8 +3,8 @@ ## 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] +**last_probe_time** | [**V1Time**](V1Time.md) | Last time the condition was checked. | [optional] +**last_transition_time** | [**V1Time**](V1Time.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. | diff --git a/kubernetes/docs/V1JobList.md b/kubernetes/docs/V1JobList.md index 9268e0909c..c080e04b80 100644 --- a/kubernetes/docs/V1JobList.md +++ b/kubernetes/docs/V1JobList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Job]**](V1Job.md) | Items is the list of Job. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1JobSpec.md b/kubernetes/docs/V1JobSpec.md index 7776712fb8..ecc0e7df37 100644 --- a/kubernetes/docs/V1JobSpec.md +++ b/kubernetes/docs/V1JobSpec.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **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] +**selector** | [**V1LabelSelector**](V1LabelSelector.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/kubernetes/docs/V1JobStatus.md b/kubernetes/docs/V1JobStatus.md index cc93cb52bb..1af4ba65e1 100644 --- a/kubernetes/docs/V1JobStatus.md +++ b/kubernetes/docs/V1JobStatus.md @@ -4,10 +4,10 @@ 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] +**completion_time** | [**V1Time**](V1Time.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] +**start_time** | [**V1Time**](V1Time.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/kubernetes/docs/UnversionedLabelSelector.md b/kubernetes/docs/V1LabelSelector.md similarity index 71% rename from kubernetes/docs/UnversionedLabelSelector.md rename to kubernetes/docs/V1LabelSelector.md index 3d6ec56bac..bb3c52d257 100644 --- a/kubernetes/docs/UnversionedLabelSelector.md +++ b/kubernetes/docs/V1LabelSelector.md @@ -1,9 +1,9 @@ -# UnversionedLabelSelector +# V1LabelSelector ## 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_expressions** | [**list[V1LabelSelectorRequirement]**](V1LabelSelectorRequirement.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/kubernetes/docs/UnversionedLabelSelectorRequirement.md b/kubernetes/docs/V1LabelSelectorRequirement.md similarity index 95% rename from kubernetes/docs/UnversionedLabelSelectorRequirement.md rename to kubernetes/docs/V1LabelSelectorRequirement.md index 6251f8c96e..a9f94cbed1 100644 --- a/kubernetes/docs/UnversionedLabelSelectorRequirement.md +++ b/kubernetes/docs/V1LabelSelectorRequirement.md @@ -1,4 +1,4 @@ -# UnversionedLabelSelectorRequirement +# V1LabelSelectorRequirement ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1LimitRangeList.md b/kubernetes/docs/V1LimitRangeList.md index 6c9dd311ad..b130d6aa1b 100644 --- a/kubernetes/docs/V1LimitRangeList.md +++ b/kubernetes/docs/V1LimitRangeList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **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 | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/UnversionedListMeta.md b/kubernetes/docs/V1ListMeta.md similarity index 97% rename from kubernetes/docs/UnversionedListMeta.md rename to kubernetes/docs/V1ListMeta.md index cd4419b107..80a77afb84 100644 --- a/kubernetes/docs/UnversionedListMeta.md +++ b/kubernetes/docs/V1ListMeta.md @@ -1,4 +1,4 @@ -# UnversionedListMeta +# V1ListMeta ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1LocalSubjectAccessReview.md b/kubernetes/docs/V1LocalSubjectAccessReview.md new file mode 100644 index 0000000000..f17690ec7d --- /dev/null +++ b/kubernetes/docs/V1LocalSubjectAccessReview.md @@ -0,0 +1,14 @@ +# V1LocalSubjectAccessReview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.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** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.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/kubernetes/docs/V1NamespaceList.md b/kubernetes/docs/V1NamespaceList.md index f48ebd54b7..c54f2b385b 100644 --- a/kubernetes/docs/V1NamespaceList.md +++ b/kubernetes/docs/V1NamespaceList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Namespace]**](V1Namespace.md) | Items is the list of Namespace objects in the list. More info: http://kubernetes.io/docs/user-guide/namespaces | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1NodeAffinity.md b/kubernetes/docs/V1NodeAffinity.md new file mode 100644 index 0000000000..71f35d0b82 --- /dev/null +++ b/kubernetes/docs/V1NodeAffinity.md @@ -0,0 +1,11 @@ +# V1NodeAffinity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_during_scheduling_ignored_during_execution** | [**list[V1PreferredSchedulingTerm]**](V1PreferredSchedulingTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. | [optional] +**required_during_scheduling_ignored_during_execution** | [**V1NodeSelector**](V1NodeSelector.md) | If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its 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/kubernetes/docs/V1NodeCondition.md b/kubernetes/docs/V1NodeCondition.md index a2c30f52a4..bcf8858587 100644 --- a/kubernetes/docs/V1NodeCondition.md +++ b/kubernetes/docs/V1NodeCondition.md @@ -3,8 +3,8 @@ ## 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] +**last_heartbeat_time** | [**V1Time**](V1Time.md) | Last time we got an update on a given condition. | [optional] +**last_transition_time** | [**V1Time**](V1Time.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. | diff --git a/kubernetes/docs/V1NodeList.md b/kubernetes/docs/V1NodeList.md index e959267c48..ce40105fa6 100644 --- a/kubernetes/docs/V1NodeList.md +++ b/kubernetes/docs/V1NodeList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Node]**](V1Node.md) | List of nodes | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1NodeSelector.md b/kubernetes/docs/V1NodeSelector.md new file mode 100644 index 0000000000..e9af80870b --- /dev/null +++ b/kubernetes/docs/V1NodeSelector.md @@ -0,0 +1,10 @@ +# V1NodeSelector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**node_selector_terms** | [**list[V1NodeSelectorTerm]**](V1NodeSelectorTerm.md) | Required. A list of node selector terms. The terms are ORed. | + +[[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/kubernetes/docs/V1NodeSelectorRequirement.md b/kubernetes/docs/V1NodeSelectorRequirement.md new file mode 100644 index 0000000000..0495e44897 --- /dev/null +++ b/kubernetes/docs/V1NodeSelectorRequirement.md @@ -0,0 +1,12 @@ +# V1NodeSelectorRequirement + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | The label key that the selector applies to. | +**operator** | **str** | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. | +**values** | **list[str]** | 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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. 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/kubernetes/docs/V1NodeSelectorTerm.md b/kubernetes/docs/V1NodeSelectorTerm.md new file mode 100644 index 0000000000..e030c3ac15 --- /dev/null +++ b/kubernetes/docs/V1NodeSelectorTerm.md @@ -0,0 +1,10 @@ +# V1NodeSelectorTerm + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**match_expressions** | [**list[V1NodeSelectorRequirement]**](V1NodeSelectorRequirement.md) | Required. A list of node selector requirements. The requirements are ANDed. | + +[[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/kubernetes/docs/V1NodeSpec.md b/kubernetes/docs/V1NodeSpec.md index 20445bd2ee..cceceef752 100644 --- a/kubernetes/docs/V1NodeSpec.md +++ b/kubernetes/docs/V1NodeSpec.md @@ -6,7 +6,8 @@ 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] +**taints** | [**list[V1Taint]**](V1Taint.md) | If specified, the node's taints. | [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/kubernetes/docs/V1NonResourceAttributes.md b/kubernetes/docs/V1NonResourceAttributes.md new file mode 100644 index 0000000000..95135d5790 --- /dev/null +++ b/kubernetes/docs/V1NonResourceAttributes.md @@ -0,0 +1,11 @@ +# V1NonResourceAttributes + +## 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/kubernetes/docs/V1ObjectMeta.md b/kubernetes/docs/V1ObjectMeta.md index 6eabc093c5..1d441ea7b1 100644 --- a/kubernetes/docs/V1ObjectMeta.md +++ b/kubernetes/docs/V1ObjectMeta.md @@ -5,9 +5,9 @@ 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] +**creation_timestamp** | [**V1Time**](V1Time.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 kubernetes.client. The resource is expected to 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. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. 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] +**deletion_timestamp** | [**V1Time**](V1Time.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 kubernetes.client. The resource is expected to 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. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. 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 kubernetes.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 kubernetes.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] diff --git a/kubernetes/docs/V1OwnerReference.md b/kubernetes/docs/V1OwnerReference.md index db9ba818c4..18aa401516 100644 --- a/kubernetes/docs/V1OwnerReference.md +++ b/kubernetes/docs/V1OwnerReference.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | API version of the referent. | +**block_owner_deletion** | **bool** | If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. | [optional] **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 | diff --git a/kubernetes/docs/V1PersistentVolumeClaimList.md b/kubernetes/docs/V1PersistentVolumeClaimList.md index 5365a34a33..3d8bf90c6e 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimList.md +++ b/kubernetes/docs/V1PersistentVolumeClaimList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1PersistentVolumeClaim]**](V1PersistentVolumeClaim.md) | A list of persistent volume claims. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1PersistentVolumeClaimSpec.md b/kubernetes/docs/V1PersistentVolumeClaimSpec.md index eae09b134f..4a96ecb6bc 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimSpec.md +++ b/kubernetes/docs/V1PersistentVolumeClaimSpec.md @@ -5,7 +5,8 @@ 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] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] +**storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1 | [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/kubernetes/docs/V1PersistentVolumeList.md b/kubernetes/docs/V1PersistentVolumeList.md index 674f3be98a..1e123b03c2 100644 --- a/kubernetes/docs/V1PersistentVolumeList.md +++ b/kubernetes/docs/V1PersistentVolumeList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1PersistentVolume]**](V1PersistentVolume.md) | List of persistent volumes. More info: http://kubernetes.io/docs/user-guide/persistent-volumes | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1PersistentVolumeSpec.md b/kubernetes/docs/V1PersistentVolumeSpec.md index 0359439d62..fd859f9165 100644 --- a/kubernetes/docs/V1PersistentVolumeSpec.md +++ b/kubernetes/docs/V1PersistentVolumeSpec.md @@ -21,8 +21,11 @@ Name | Type | Description | Notes **nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#nfs | [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] **photon_persistent_disk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine | [optional] +**portworx_volume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | PortworxVolume represents a portworx volume attached and mounted on kubelets host machine | [optional] **quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | Quobyte represents a Quobyte mount on the host that shares a pod's lifetime | [optional] **rbd** | [**V1RBDVolumeSource**](V1RBDVolumeSource.md) | RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md | [optional] +**scale_io** | [**V1ScaleIOVolumeSource**](V1ScaleIOVolumeSource.md) | ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. | [optional] +**storage_class_name** | **str** | Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. | [optional] **vsphere_volume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine | [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/kubernetes/docs/V1PodAffinity.md b/kubernetes/docs/V1PodAffinity.md new file mode 100644 index 0000000000..a60e91ec43 --- /dev/null +++ b/kubernetes/docs/V1PodAffinity.md @@ -0,0 +1,11 @@ +# V1PodAffinity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_during_scheduling_ignored_during_execution** | [**list[V1WeightedPodAffinityTerm]**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] +**required_during_scheduling_ignored_during_execution** | [**list[V1PodAffinityTerm]**](V1PodAffinityTerm.md) | NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [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/kubernetes/docs/V1PodAffinityTerm.md b/kubernetes/docs/V1PodAffinityTerm.md new file mode 100644 index 0000000000..0ed3bda497 --- /dev/null +++ b/kubernetes/docs/V1PodAffinityTerm.md @@ -0,0 +1,12 @@ +# V1PodAffinityTerm + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**label_selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over a set of resources, in this case pods. | [optional] +**namespaces** | **list[str]** | namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" | [optional] +**topology_key** | **str** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed. | [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/kubernetes/docs/V1PodAntiAffinity.md b/kubernetes/docs/V1PodAntiAffinity.md new file mode 100644 index 0000000000..411476d283 --- /dev/null +++ b/kubernetes/docs/V1PodAntiAffinity.md @@ -0,0 +1,11 @@ +# V1PodAntiAffinity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferred_during_scheduling_ignored_during_execution** | [**list[V1WeightedPodAffinityTerm]**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] +**required_during_scheduling_ignored_during_execution** | [**list[V1PodAffinityTerm]**](V1PodAffinityTerm.md) | NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [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/kubernetes/docs/V1PodCondition.md b/kubernetes/docs/V1PodCondition.md index 45d03e3ef5..8400661ae7 100644 --- a/kubernetes/docs/V1PodCondition.md +++ b/kubernetes/docs/V1PodCondition.md @@ -3,8 +3,8 @@ ## 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] +**last_probe_time** | [**V1Time**](V1Time.md) | Last time we probed the condition. | [optional] +**last_transition_time** | [**V1Time**](V1Time.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 | diff --git a/kubernetes/docs/V1PodList.md b/kubernetes/docs/V1PodList.md index 3a5b708ef0..c647a61b4d 100644 --- a/kubernetes/docs/V1PodList.md +++ b/kubernetes/docs/V1PodList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Pod]**](V1Pod.md) | List of pods. More info: http://kubernetes.io/docs/user-guide/pods | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1PodSpec.md b/kubernetes/docs/V1PodSpec.md index 1cd52d6299..9488b7a5af 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -4,21 +4,26 @@ 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] +**affinity** | [**V1Affinity**](V1Affinity.md) | If specified, the pod's scheduling constraints | [optional] +**automount_service_account_token** | **bool** | AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. | [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] +**dns_policy** | **str** | Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. | [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] +**init_containers** | [**list[V1Container]**](V1Container.md) | List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers | [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] +**scheduler_name** | **str** | If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. | [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] +**tolerations** | [**list[V1Toleration]**](V1Toleration.md) | If specified, the pod's tolerations. | [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/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index 161cf18dcf..0768fefa48 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -6,11 +6,13 @@ 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] +**init_container_statuses** | [**list[V1ContainerStatus]**](V1ContainerStatus.md) | The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses | [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] +**qos_class** | **str** | The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md | [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] +**start_time** | [**V1Time**](V1Time.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/kubernetes/docs/V1PodTemplateList.md b/kubernetes/docs/V1PodTemplateList.md index 1809758680..c26ec53c5c 100644 --- a/kubernetes/docs/V1PodTemplateList.md +++ b/kubernetes/docs/V1PodTemplateList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1PodTemplate]**](V1PodTemplate.md) | List of pod templates | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1PortworxVolumeSource.md b/kubernetes/docs/V1PortworxVolumeSource.md new file mode 100644 index 0000000000..fb86663b30 --- /dev/null +++ b/kubernetes/docs/V1PortworxVolumeSource.md @@ -0,0 +1,12 @@ +# V1PortworxVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fs_type** | **str** | FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] +**read_only** | **bool** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] +**volume_id** | **str** | VolumeID uniquely identifies a Portworx 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/kubernetes/docs/V1PreferredSchedulingTerm.md b/kubernetes/docs/V1PreferredSchedulingTerm.md new file mode 100644 index 0000000000..92f5b35984 --- /dev/null +++ b/kubernetes/docs/V1PreferredSchedulingTerm.md @@ -0,0 +1,11 @@ +# V1PreferredSchedulingTerm + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preference** | [**V1NodeSelectorTerm**](V1NodeSelectorTerm.md) | A node selector term, associated with the corresponding weight. | +**weight** | **int** | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. | + +[[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/kubernetes/docs/V1ProjectedVolumeSource.md b/kubernetes/docs/V1ProjectedVolumeSource.md new file mode 100644 index 0000000000..d1c708a93b --- /dev/null +++ b/kubernetes/docs/V1ProjectedVolumeSource.md @@ -0,0 +1,11 @@ +# V1ProjectedVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default_mode** | **int** | Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**sources** | [**list[V1VolumeProjection]**](V1VolumeProjection.md) | list of volume projections | + +[[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/kubernetes/docs/V1ReplicationControllerCondition.md b/kubernetes/docs/V1ReplicationControllerCondition.md index 8dcfd1d3b1..668ddf80e2 100644 --- a/kubernetes/docs/V1ReplicationControllerCondition.md +++ b/kubernetes/docs/V1ReplicationControllerCondition.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_transition_time** | [**UnversionedTime**](UnversionedTime.md) | The last time the condition transitioned from one status to another. | [optional] +**last_transition_time** | [**V1Time**](V1Time.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. | diff --git a/kubernetes/docs/V1ReplicationControllerList.md b/kubernetes/docs/V1ReplicationControllerList.md index 49f062e505..5fc56fa62e 100644 --- a/kubernetes/docs/V1ReplicationControllerList.md +++ b/kubernetes/docs/V1ReplicationControllerList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ReplicationController]**](V1ReplicationController.md) | List of replication controllers. More info: http://kubernetes.io/docs/user-guide/replication-controller | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1ResourceAttributes.md b/kubernetes/docs/V1ResourceAttributes.md new file mode 100644 index 0000000000..c6573c9a45 --- /dev/null +++ b/kubernetes/docs/V1ResourceAttributes.md @@ -0,0 +1,16 @@ +# V1ResourceAttributes + +## 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/kubernetes/docs/V1ResourceQuotaList.md b/kubernetes/docs/V1ResourceQuotaList.md index 3684a77590..e94847de5e 100644 --- a/kubernetes/docs/V1ResourceQuotaList.md +++ b/kubernetes/docs/V1ResourceQuotaList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **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 | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1ScaleIOVolumeSource.md b/kubernetes/docs/V1ScaleIOVolumeSource.md new file mode 100644 index 0000000000..ebd3a0d19a --- /dev/null +++ b/kubernetes/docs/V1ScaleIOVolumeSource.md @@ -0,0 +1,19 @@ +# V1ScaleIOVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] +**gateway** | **str** | The host address of the ScaleIO API Gateway. | +**protection_domain** | **str** | The name of the Protection Domain for the configured storage (defaults to \"default\"). | [optional] +**read_only** | **bool** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] +**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. | +**ssl_enabled** | **bool** | Flag to enable/disable SSL communication with Gateway, default false | [optional] +**storage_mode** | **str** | Indicates whether the storage for a volume should be thick or thin (defaults to \"thin\"). | [optional] +**storage_pool** | **str** | The Storage Pool associated with the protection domain (defaults to \"default\"). | [optional] +**system** | **str** | The name of the storage system as configured in ScaleIO. | +**volume_name** | **str** | The name of a volume already created in the ScaleIO system that is associated with this volume source. | [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/kubernetes/docs/V1SecretEnvSource.md b/kubernetes/docs/V1SecretEnvSource.md new file mode 100644 index 0000000000..ccaefe3e71 --- /dev/null +++ b/kubernetes/docs/V1SecretEnvSource.md @@ -0,0 +1,11 @@ +# V1SecretEnvSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**optional** | **bool** | Specify whether the Secret must be defined | [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/kubernetes/docs/V1SecretKeySelector.md b/kubernetes/docs/V1SecretKeySelector.md index ef697d2149..78a999528a 100644 --- a/kubernetes/docs/V1SecretKeySelector.md +++ b/kubernetes/docs/V1SecretKeySelector.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **str** | The key of the secret to select from. Must be a valid secret key. | **name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**optional** | **bool** | Specify whether the Secret or it's key must be defined | [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/kubernetes/docs/V1SecretList.md b/kubernetes/docs/V1SecretList.md index 6d5889fb20..92bc393732 100644 --- a/kubernetes/docs/V1SecretList.md +++ b/kubernetes/docs/V1SecretList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Secret]**](V1Secret.md) | Items is a list of secret objects. More info: http://kubernetes.io/docs/user-guide/secrets | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1SecretProjection.md b/kubernetes/docs/V1SecretProjection.md new file mode 100644 index 0000000000..2749efbd19 --- /dev/null +++ b/kubernetes/docs/V1SecretProjection.md @@ -0,0 +1,12 @@ +# V1SecretProjection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] +**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**optional** | **bool** | Specify whether the Secret or its key must be defined | [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/kubernetes/docs/V1SecretVolumeSource.md b/kubernetes/docs/V1SecretVolumeSource.md index e7bb6294be..51f7880b84 100644 --- a/kubernetes/docs/V1SecretVolumeSource.md +++ b/kubernetes/docs/V1SecretVolumeSource.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_mode** | **int** | Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] +**items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] +**optional** | **bool** | Specify whether the Secret or it's keys must be defined | [optional] **secret_name** | **str** | Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#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/kubernetes/docs/V1SelfSubjectAccessReview.md b/kubernetes/docs/V1SelfSubjectAccessReview.md new file mode 100644 index 0000000000..df22763596 --- /dev/null +++ b/kubernetes/docs/V1SelfSubjectAccessReview.md @@ -0,0 +1,14 @@ +# V1SelfSubjectAccessReview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1SelfSubjectAccessReviewSpec**](V1SelfSubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. user and groups must be empty | +**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.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/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md b/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md new file mode 100644 index 0000000000..886bd7c110 --- /dev/null +++ b/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md @@ -0,0 +1,11 @@ +# V1SelfSubjectAccessReviewSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**non_resource_attributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] +**resource_attributes** | [**V1ResourceAttributes**](V1ResourceAttributes.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/kubernetes/docs/UnversionedServerAddressByClientCIDR.md b/kubernetes/docs/V1ServerAddressByClientCIDR.md similarity index 93% rename from kubernetes/docs/UnversionedServerAddressByClientCIDR.md rename to kubernetes/docs/V1ServerAddressByClientCIDR.md index 42a2ad23fb..93c0a8c3df 100644 --- a/kubernetes/docs/UnversionedServerAddressByClientCIDR.md +++ b/kubernetes/docs/V1ServerAddressByClientCIDR.md @@ -1,4 +1,4 @@ -# UnversionedServerAddressByClientCIDR +# V1ServerAddressByClientCIDR ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1ServiceAccount.md b/kubernetes/docs/V1ServiceAccount.md index 7952a35148..8756f7d9fc 100644 --- a/kubernetes/docs/V1ServiceAccount.md +++ b/kubernetes/docs/V1ServiceAccount.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**automount_service_account_token** | **bool** | AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. | [optional] **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] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] diff --git a/kubernetes/docs/V1ServiceAccountList.md b/kubernetes/docs/V1ServiceAccountList.md index 8e3f806cf0..b1e78283b6 100644 --- a/kubernetes/docs/V1ServiceAccountList.md +++ b/kubernetes/docs/V1ServiceAccountList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ServiceAccount]**](V1ServiceAccount.md) | List of ServiceAccounts. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1ServiceList.md b/kubernetes/docs/V1ServiceList.md index b34c9c30a2..f937803db8 100644 --- a/kubernetes/docs/V1ServiceList.md +++ b/kubernetes/docs/V1ServiceList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Service]**](V1Service.md) | List of services | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1ServiceSpec.md b/kubernetes/docs/V1ServiceSpec.md index 042e757b93..fd3584d634 100644 --- a/kubernetes/docs/V1ServiceSpec.md +++ b/kubernetes/docs/V1ServiceSpec.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **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 kubernetes.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 | +**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 | [optional] **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 kubernetes.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] diff --git a/kubernetes/docs/UnversionedStatus.md b/kubernetes/docs/V1Status.md similarity index 74% rename from kubernetes/docs/UnversionedStatus.md rename to kubernetes/docs/V1Status.md index 695436c9c8..7fdb35bfd3 100644 --- a/kubernetes/docs/UnversionedStatus.md +++ b/kubernetes/docs/V1Status.md @@ -1,14 +1,14 @@ -# UnversionedStatus +# V1Status ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **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] +**details** | [**V1StatusDetails**](V1StatusDetails.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] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [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] +**metadata** | [**V1ListMeta**](V1ListMeta.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] diff --git a/kubernetes/docs/UnversionedStatusCause.md b/kubernetes/docs/V1StatusCause.md similarity index 97% rename from kubernetes/docs/UnversionedStatusCause.md rename to kubernetes/docs/V1StatusCause.md index a614c121ca..56cb6faf4f 100644 --- a/kubernetes/docs/UnversionedStatusCause.md +++ b/kubernetes/docs/V1StatusCause.md @@ -1,4 +1,4 @@ -# UnversionedStatusCause +# V1StatusCause ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/UnversionedStatusDetails.md b/kubernetes/docs/V1StatusDetails.md similarity index 78% rename from kubernetes/docs/UnversionedStatusDetails.md rename to kubernetes/docs/V1StatusDetails.md index c497dace63..cd931dbbcf 100644 --- a/kubernetes/docs/UnversionedStatusDetails.md +++ b/kubernetes/docs/V1StatusDetails.md @@ -1,9 +1,9 @@ -# UnversionedStatusDetails +# V1StatusDetails ## 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] +**causes** | [**list[V1StatusCause]**](V1StatusCause.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] diff --git a/kubernetes/docs/V1beta1Job.md b/kubernetes/docs/V1StorageClass.md similarity index 70% rename from kubernetes/docs/V1beta1Job.md rename to kubernetes/docs/V1StorageClass.md index 79bfb6aeb9..dea78a10c1 100644 --- a/kubernetes/docs/V1beta1Job.md +++ b/kubernetes/docs/V1StorageClass.md @@ -1,4 +1,4 @@ -# V1beta1Job +# V1StorageClass ## Properties Name | Type | Description | Notes @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] **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] +**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/kubernetes/docs/V1StorageClassList.md b/kubernetes/docs/V1StorageClassList.md new file mode 100644 index 0000000000..dd0df0e60a --- /dev/null +++ b/kubernetes/docs/V1StorageClassList.md @@ -0,0 +1,13 @@ +# V1StorageClassList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1StorageClass]**](V1StorageClass.md) | Items is the list of StorageClasses | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1alpha1CertificateSigningRequest.md b/kubernetes/docs/V1SubjectAccessReview.md similarity index 72% rename from kubernetes/docs/V1alpha1CertificateSigningRequest.md rename to kubernetes/docs/V1SubjectAccessReview.md index a80df7c9e5..0e0c218e58 100644 --- a/kubernetes/docs/V1alpha1CertificateSigningRequest.md +++ b/kubernetes/docs/V1SubjectAccessReview.md @@ -1,4 +1,4 @@ -# V1alpha1CertificateSigningRequest +# V1SubjectAccessReview ## Properties Name | Type | Description | Notes @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] **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] +**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated | +**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.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/kubernetes/docs/V1SubjectAccessReviewSpec.md b/kubernetes/docs/V1SubjectAccessReviewSpec.md new file mode 100644 index 0000000000..6227219201 --- /dev/null +++ b/kubernetes/docs/V1SubjectAccessReviewSpec.md @@ -0,0 +1,14 @@ +# V1SubjectAccessReviewSpec + +## 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] +**groups** | **list[str]** | Groups is the groups you're testing for. | [optional] +**non_resource_attributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] +**resource_attributes** | [**V1ResourceAttributes**](V1ResourceAttributes.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 \"Groups\", 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/kubernetes/docs/V1SubjectAccessReviewStatus.md b/kubernetes/docs/V1SubjectAccessReviewStatus.md new file mode 100644 index 0000000000..e07f01bca4 --- /dev/null +++ b/kubernetes/docs/V1SubjectAccessReviewStatus.md @@ -0,0 +1,12 @@ +# V1SubjectAccessReviewStatus + +## 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/kubernetes/docs/V1Taint.md b/kubernetes/docs/V1Taint.md new file mode 100644 index 0000000000..e60bb88ff3 --- /dev/null +++ b/kubernetes/docs/V1Taint.md @@ -0,0 +1,13 @@ +# V1Taint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**effect** | **str** | Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. | +**key** | **str** | Required. The taint key to be applied to a node. | +**time_added** | [**V1Time**](V1Time.md) | TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. | [optional] +**value** | **str** | Required. The taint value corresponding to the taint key. | [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/kubernetes/docs/UnversionedTime.md b/kubernetes/docs/V1Time.md similarity index 93% rename from kubernetes/docs/UnversionedTime.md rename to kubernetes/docs/V1Time.md index 6d8243c2a5..63a5fb595d 100644 --- a/kubernetes/docs/UnversionedTime.md +++ b/kubernetes/docs/V1Time.md @@ -1,4 +1,4 @@ -# UnversionedTime +# V1Time ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1TokenReview.md b/kubernetes/docs/V1TokenReview.md new file mode 100644 index 0000000000..ab2280ede5 --- /dev/null +++ b/kubernetes/docs/V1TokenReview.md @@ -0,0 +1,14 @@ +# V1TokenReview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1TokenReviewSpec**](V1TokenReviewSpec.md) | Spec holds information about the request being evaluated | +**status** | [**V1TokenReviewStatus**](V1TokenReviewStatus.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/kubernetes/docs/V1TokenReviewSpec.md b/kubernetes/docs/V1TokenReviewSpec.md new file mode 100644 index 0000000000..64d47196ee --- /dev/null +++ b/kubernetes/docs/V1TokenReviewSpec.md @@ -0,0 +1,10 @@ +# V1TokenReviewSpec + +## 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/kubernetes/docs/V1TokenReviewStatus.md b/kubernetes/docs/V1TokenReviewStatus.md new file mode 100644 index 0000000000..8626e50c09 --- /dev/null +++ b/kubernetes/docs/V1TokenReviewStatus.md @@ -0,0 +1,12 @@ +# V1TokenReviewStatus + +## 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** | [**V1UserInfo**](V1UserInfo.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/kubernetes/docs/V1Toleration.md b/kubernetes/docs/V1Toleration.md new file mode 100644 index 0000000000..1650f88e05 --- /dev/null +++ b/kubernetes/docs/V1Toleration.md @@ -0,0 +1,14 @@ +# V1Toleration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**effect** | **str** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. | [optional] +**key** | **str** | Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. | [optional] +**operator** | **str** | Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. | [optional] +**toleration_seconds** | **int** | TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. | [optional] +**value** | **str** | Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. | [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/kubernetes/docs/V1UserInfo.md b/kubernetes/docs/V1UserInfo.md new file mode 100644 index 0000000000..cd430d9c33 --- /dev/null +++ b/kubernetes/docs/V1UserInfo.md @@ -0,0 +1,13 @@ +# V1UserInfo + +## 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/kubernetes/docs/V1Volume.md b/kubernetes/docs/V1Volume.md index 84bce8f82b..2f31b46559 100644 --- a/kubernetes/docs/V1Volume.md +++ b/kubernetes/docs/V1Volume.md @@ -23,8 +23,11 @@ Name | Type | Description | Notes **nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://kubernetes.io/docs/user-guide/volumes#nfs | [optional] **persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims | [optional] **photon_persistent_disk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine | [optional] +**portworx_volume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | PortworxVolume represents a portworx volume attached and mounted on kubelets host machine | [optional] +**projected** | [**V1ProjectedVolumeSource**](V1ProjectedVolumeSource.md) | Items for all in one resources secrets, configmaps, and downward API | [optional] **quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | Quobyte represents a Quobyte mount on the host that shares a pod's lifetime | [optional] **rbd** | [**V1RBDVolumeSource**](V1RBDVolumeSource.md) | RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md | [optional] +**scale_io** | [**V1ScaleIOVolumeSource**](V1ScaleIOVolumeSource.md) | ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. | [optional] **secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | Secret represents a secret that should populate this volume. More info: http://kubernetes.io/docs/user-guide/volumes#secrets | [optional] **vsphere_volume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine | [optional] diff --git a/kubernetes/docs/V1VolumeProjection.md b/kubernetes/docs/V1VolumeProjection.md new file mode 100644 index 0000000000..10f724c53b --- /dev/null +++ b/kubernetes/docs/V1VolumeProjection.md @@ -0,0 +1,12 @@ +# V1VolumeProjection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config_map** | [**V1ConfigMapProjection**](V1ConfigMapProjection.md) | information about the configMap data to project | [optional] +**downward_api** | [**V1DownwardAPIProjection**](V1DownwardAPIProjection.md) | information about the downwardAPI data to project | [optional] +**secret** | [**V1SecretProjection**](V1SecretProjection.md) | information about the secret data to project | [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/kubernetes/docs/VersionedEvent.md b/kubernetes/docs/V1WatchEvent.md similarity index 77% rename from kubernetes/docs/VersionedEvent.md rename to kubernetes/docs/V1WatchEvent.md index 022cfd400b..33f02c744b 100644 --- a/kubernetes/docs/VersionedEvent.md +++ b/kubernetes/docs/V1WatchEvent.md @@ -1,9 +1,9 @@ -# VersionedEvent +# V1WatchEvent ## 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. | +**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: *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/kubernetes/docs/V1WeightedPodAffinityTerm.md b/kubernetes/docs/V1WeightedPodAffinityTerm.md new file mode 100644 index 0000000000..9d92fe5533 --- /dev/null +++ b/kubernetes/docs/V1WeightedPodAffinityTerm.md @@ -0,0 +1,11 @@ +# V1WeightedPodAffinityTerm + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pod_affinity_term** | [**V1PodAffinityTerm**](V1PodAffinityTerm.md) | Required. A pod affinity term, associated with the corresponding weight. | +**weight** | **int** | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. | + +[[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/kubernetes/docs/V1alpha1CertificateSigningRequestSpec.md b/kubernetes/docs/V1alpha1CertificateSigningRequestSpec.md deleted file mode 100644 index 17e56a4e5a..0000000000 --- a/kubernetes/docs/V1alpha1CertificateSigningRequestSpec.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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/kubernetes/docs/V1alpha1ClusterRoleBindingList.md b/kubernetes/docs/V1alpha1ClusterRoleBindingList.md index 947afcc558..67f86087ce 100644 --- a/kubernetes/docs/V1alpha1ClusterRoleBindingList.md +++ b/kubernetes/docs/V1alpha1ClusterRoleBindingList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1ClusterRoleBinding]**](V1alpha1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1alpha1ClusterRoleList.md b/kubernetes/docs/V1alpha1ClusterRoleList.md index 38d322bd74..9f30ba899e 100644 --- a/kubernetes/docs/V1alpha1ClusterRoleList.md +++ b/kubernetes/docs/V1alpha1ClusterRoleList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1ClusterRole]**](V1alpha1ClusterRole.md) | Items is a list of ClusterRoles | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1alpha1CertificateSigningRequestList.md b/kubernetes/docs/V1alpha1PodPreset.md similarity index 81% rename from kubernetes/docs/V1alpha1CertificateSigningRequestList.md rename to kubernetes/docs/V1alpha1PodPreset.md index b2366c235b..c5edc03c52 100644 --- a/kubernetes/docs/V1alpha1CertificateSigningRequestList.md +++ b/kubernetes/docs/V1alpha1PodPreset.md @@ -1,12 +1,12 @@ -# V1alpha1CertificateSigningRequestList +# V1alpha1PodPreset ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1CertificateSigningRequest]**](V1alpha1CertificateSigningRequest.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1PodPresetSpec**](V1alpha1PodPresetSpec.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/kubernetes/docs/V1alpha1PodPresetList.md b/kubernetes/docs/V1alpha1PodPresetList.md new file mode 100644 index 0000000000..c074c272f4 --- /dev/null +++ b/kubernetes/docs/V1alpha1PodPresetList.md @@ -0,0 +1,13 @@ +# V1alpha1PodPresetList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1alpha1PodPreset]**](V1alpha1PodPreset.md) | Items is a list of schema objects. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1alpha1PodPresetSpec.md b/kubernetes/docs/V1alpha1PodPresetSpec.md new file mode 100644 index 0000000000..3cb473b35b --- /dev/null +++ b/kubernetes/docs/V1alpha1PodPresetSpec.md @@ -0,0 +1,14 @@ +# V1alpha1PodPresetSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**env** | [**list[V1EnvVar]**](V1EnvVar.md) | Env defines the collection of EnvVar to inject into containers. | [optional] +**env_from** | [**list[V1EnvFromSource]**](V1EnvFromSource.md) | EnvFrom defines the collection of EnvFromSource to inject into containers. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over a set of resources, in this case pods. Required. | [optional] +**volume_mounts** | [**list[V1VolumeMount]**](V1VolumeMount.md) | VolumeMounts defines the collection of VolumeMount to inject into containers. | [optional] +**volumes** | [**list[V1Volume]**](V1Volume.md) | Volumes defines the collection of Volume to inject into 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/kubernetes/docs/V1alpha1PolicyRule.md b/kubernetes/docs/V1alpha1PolicyRule.md index 90071a660d..abd917604e 100644 --- a/kubernetes/docs/V1alpha1PolicyRule.md +++ b/kubernetes/docs/V1alpha1PolicyRule.md @@ -4,7 +4,6 @@ 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] diff --git a/kubernetes/docs/V1alpha1RoleBindingList.md b/kubernetes/docs/V1alpha1RoleBindingList.md index 1f0a15ce3b..9d80052c51 100644 --- a/kubernetes/docs/V1alpha1RoleBindingList.md +++ b/kubernetes/docs/V1alpha1RoleBindingList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1RoleBinding]**](V1alpha1RoleBinding.md) | Items is a list of RoleBindings | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1alpha1RoleList.md b/kubernetes/docs/V1alpha1RoleList.md index 69c04e108d..2dc5d70c3f 100644 --- a/kubernetes/docs/V1alpha1RoleList.md +++ b/kubernetes/docs/V1alpha1RoleList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1Role]**](V1alpha1Role.md) | Items is a list of Roles | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1alpha1Subject.md b/kubernetes/docs/V1alpha1Subject.md index 97adfa0929..7365b08849 100644 --- a/kubernetes/docs/V1alpha1Subject.md +++ b/kubernetes/docs/V1alpha1Subject.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion holds the API group and version of the referenced object. | [optional] +**api_version** | **str** | APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. | [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] diff --git a/kubernetes/docs/V1beta1CertificateSigningRequest.md b/kubernetes/docs/V1beta1CertificateSigningRequest.md new file mode 100644 index 0000000000..a803a7c713 --- /dev/null +++ b/kubernetes/docs/V1beta1CertificateSigningRequest.md @@ -0,0 +1,14 @@ +# V1beta1CertificateSigningRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1CertificateSigningRequestSpec**](V1beta1CertificateSigningRequestSpec.md) | The certificate request itself and any additional information. | [optional] +**status** | [**V1beta1CertificateSigningRequestStatus**](V1beta1CertificateSigningRequestStatus.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/kubernetes/docs/V1alpha1CertificateSigningRequestCondition.md b/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md similarity index 75% rename from kubernetes/docs/V1alpha1CertificateSigningRequestCondition.md rename to kubernetes/docs/V1beta1CertificateSigningRequestCondition.md index f61c988338..6d43435421 100644 --- a/kubernetes/docs/V1alpha1CertificateSigningRequestCondition.md +++ b/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md @@ -1,9 +1,9 @@ -# V1alpha1CertificateSigningRequestCondition +# V1beta1CertificateSigningRequestCondition ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_update_time** | [**UnversionedTime**](UnversionedTime.md) | timestamp for the last update to this condition | [optional] +**last_update_time** | [**V1Time**](V1Time.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. | diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestList.md b/kubernetes/docs/V1beta1CertificateSigningRequestList.md new file mode 100644 index 0000000000..3a0d36f398 --- /dev/null +++ b/kubernetes/docs/V1beta1CertificateSigningRequestList.md @@ -0,0 +1,13 @@ +# V1beta1CertificateSigningRequestList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1beta1CertificateSigningRequest]**](V1beta1CertificateSigningRequest.md) | | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md b/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md new file mode 100644 index 0000000000..dcb459f23b --- /dev/null +++ b/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md @@ -0,0 +1,15 @@ +# V1beta1CertificateSigningRequestSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**extra** | **dict(str, list[str])** | Extra information about the requesting user. See user.Info interface for details. | [optional] +**groups** | **list[str]** | Group information about the requesting user. See user.Info interface for details. | [optional] +**request** | **str** | Base64-encoded PKCS#10 CSR data | +**uid** | **str** | UID information about the requesting user. See user.Info interface for details. | [optional] +**usages** | **list[str]** | allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 | [optional] +**username** | **str** | Information about the requesting user. 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/kubernetes/docs/V1alpha1CertificateSigningRequestStatus.md b/kubernetes/docs/V1beta1CertificateSigningRequestStatus.md similarity index 62% rename from kubernetes/docs/V1alpha1CertificateSigningRequestStatus.md rename to kubernetes/docs/V1beta1CertificateSigningRequestStatus.md index 4067df5759..608f41afd1 100644 --- a/kubernetes/docs/V1alpha1CertificateSigningRequestStatus.md +++ b/kubernetes/docs/V1beta1CertificateSigningRequestStatus.md @@ -1,10 +1,10 @@ -# V1alpha1CertificateSigningRequestStatus +# V1beta1CertificateSigningRequestStatus ## 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] +**conditions** | [**list[V1beta1CertificateSigningRequestCondition]**](V1beta1CertificateSigningRequestCondition.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/kubernetes/docs/V1beta1ClusterRole.md b/kubernetes/docs/V1beta1ClusterRole.md new file mode 100644 index 0000000000..cb9b6bf063 --- /dev/null +++ b/kubernetes/docs/V1beta1ClusterRole.md @@ -0,0 +1,13 @@ +# V1beta1ClusterRole + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**rules** | [**list[V1beta1PolicyRule]**](V1beta1PolicyRule.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/kubernetes/docs/V1beta1ClusterRoleBinding.md b/kubernetes/docs/V1beta1ClusterRoleBinding.md new file mode 100644 index 0000000000..b4ff9456c2 --- /dev/null +++ b/kubernetes/docs/V1beta1ClusterRoleBinding.md @@ -0,0 +1,14 @@ +# V1beta1ClusterRoleBinding + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**role_ref** | [**V1beta1RoleRef**](V1beta1RoleRef.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[V1beta1Subject]**](V1beta1Subject.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/kubernetes/docs/V1beta1ClusterRoleBindingList.md b/kubernetes/docs/V1beta1ClusterRoleBindingList.md new file mode 100644 index 0000000000..140ad17075 --- /dev/null +++ b/kubernetes/docs/V1beta1ClusterRoleBindingList.md @@ -0,0 +1,13 @@ +# V1beta1ClusterRoleBindingList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1beta1ClusterRoleBinding]**](V1beta1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1beta1ClusterRoleList.md b/kubernetes/docs/V1beta1ClusterRoleList.md new file mode 100644 index 0000000000..4d87d7a83f --- /dev/null +++ b/kubernetes/docs/V1beta1ClusterRoleList.md @@ -0,0 +1,13 @@ +# V1beta1ClusterRoleList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1beta1ClusterRole]**](V1beta1ClusterRole.md) | Items is a list of ClusterRoles | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1beta1DaemonSet.md b/kubernetes/docs/V1beta1DaemonSet.md index b8726309e9..d7e9ee6832 100644 --- a/kubernetes/docs/V1beta1DaemonSet.md +++ b/kubernetes/docs/V1beta1DaemonSet.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] **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] +**spec** | [**V1beta1DaemonSetSpec**](V1beta1DaemonSetSpec.md) | 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) | 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/kubernetes/docs/V1beta1DaemonSetList.md b/kubernetes/docs/V1beta1DaemonSetList.md index 4d211ea31b..5e3d359827 100644 --- a/kubernetes/docs/V1beta1DaemonSetList.md +++ b/kubernetes/docs/V1beta1DaemonSetList.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1beta1DaemonSet]**](V1beta1DaemonSet.md) | Items is a list of daemon sets. | +**items** | [**list[V1beta1DaemonSet]**](V1beta1DaemonSet.md) | A list of daemon sets. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1beta1DaemonSetSpec.md b/kubernetes/docs/V1beta1DaemonSetSpec.md index bef9931535..591237d6b4 100644 --- a/kubernetes/docs/V1beta1DaemonSetSpec.md +++ b/kubernetes/docs/V1beta1DaemonSetSpec.md @@ -3,8 +3,11 @@ ## 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 | +**min_ready_seconds** | **int** | The minimum number of seconds for which a newly created DaemonSet 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] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | 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) | An 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 | +**template_generation** | **int** | A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. | [optional] +**update_strategy** | [**V1beta1DaemonSetUpdateStrategy**](V1beta1DaemonSetUpdateStrategy.md) | An update strategy to replace existing DaemonSet pods with new 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/kubernetes/docs/V1beta1DaemonSetStatus.md b/kubernetes/docs/V1beta1DaemonSetStatus.md index 2691652a38..333c0a380c 100644 --- a/kubernetes/docs/V1beta1DaemonSetStatus.md +++ b/kubernetes/docs/V1beta1DaemonSetStatus.md @@ -3,10 +3,14 @@ ## 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. | +**current_number_scheduled** | **int** | 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** | 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_available** | **int** | The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) | [optional] +**number_misscheduled** | **int** | 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** | The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. | +**number_unavailable** | **int** | The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) | [optional] +**observed_generation** | **int** | The most recent generation observed by the daemon set controller. | [optional] +**updated_number_scheduled** | **int** | The total number of nodes that are running updated daemon 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/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md b/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md new file mode 100644 index 0000000000..de6a768309 --- /dev/null +++ b/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md @@ -0,0 +1,11 @@ +# V1beta1DaemonSetUpdateStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rolling_update** | [**V1beta1RollingUpdateDaemonSet**](V1beta1RollingUpdateDaemonSet.md) | Rolling update config params. Present only if type = \"RollingUpdate\". | [optional] +**type** | **str** | Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. | [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/kubernetes/docs/V1beta1FSGroupStrategyOptions.md b/kubernetes/docs/V1beta1FSGroupStrategyOptions.md new file mode 100644 index 0000000000..a1fcc73e1c --- /dev/null +++ b/kubernetes/docs/V1beta1FSGroupStrategyOptions.md @@ -0,0 +1,11 @@ +# V1beta1FSGroupStrategyOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ranges** | [**list[V1beta1IDRange]**](V1beta1IDRange.md) | Ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. | [optional] +**rule** | **str** | Rule is the strategy that will dictate what FSGroup is used in the SecurityContext. | [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/kubernetes/docs/V1beta1HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V1beta1HorizontalPodAutoscalerSpec.md deleted file mode 100644 index 80724f32c5..0000000000 --- a/kubernetes/docs/V1beta1HorizontalPodAutoscalerSpec.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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/kubernetes/docs/V1beta1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V1beta1HorizontalPodAutoscalerStatus.md deleted file mode 100644 index b5c043590b..0000000000 --- a/kubernetes/docs/V1beta1HorizontalPodAutoscalerStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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/kubernetes/docs/V1beta1HostPortRange.md b/kubernetes/docs/V1beta1HostPortRange.md new file mode 100644 index 0000000000..4903306222 --- /dev/null +++ b/kubernetes/docs/V1beta1HostPortRange.md @@ -0,0 +1,11 @@ +# V1beta1HostPortRange + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | **int** | max is the end of the range, inclusive. | +**min** | **int** | min is the start of the range, inclusive. | + +[[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/kubernetes/docs/V1beta1IDRange.md b/kubernetes/docs/V1beta1IDRange.md new file mode 100644 index 0000000000..75c32a6ec4 --- /dev/null +++ b/kubernetes/docs/V1beta1IDRange.md @@ -0,0 +1,11 @@ +# V1beta1IDRange + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | **int** | Max is the end of the range, inclusive. | +**min** | **int** | Min is the start of the range, inclusive. | + +[[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/kubernetes/docs/V1beta1IngressList.md b/kubernetes/docs/V1beta1IngressList.md index 0a0a3eaf7b..c551280104 100644 --- a/kubernetes/docs/V1beta1IngressList.md +++ b/kubernetes/docs/V1beta1IngressList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1Ingress]**](V1beta1Ingress.md) | Items is the list of Ingress. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1beta1JobCondition.md b/kubernetes/docs/V1beta1JobCondition.md deleted file mode 100644 index e3982d8365..0000000000 --- a/kubernetes/docs/V1beta1JobCondition.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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/kubernetes/docs/V1beta1JobList.md b/kubernetes/docs/V1beta1JobList.md deleted file mode 100644 index 73b7207e49..0000000000 --- a/kubernetes/docs/V1beta1JobList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V1beta1JobList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V1beta1Job]**](V1beta1Job.md) | Items is the list of Job. | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**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/kubernetes/docs/V1beta1JobSpec.md b/kubernetes/docs/V1beta1JobSpec.md deleted file mode 100644 index 23f2d2b9f2..0000000000 --- a/kubernetes/docs/V1beta1JobSpec.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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/kubernetes/docs/V1beta1JobStatus.md b/kubernetes/docs/V1beta1JobStatus.md deleted file mode 100644 index 95220fad9b..0000000000 --- a/kubernetes/docs/V1beta1JobStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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/kubernetes/docs/V1beta1NetworkPolicyList.md b/kubernetes/docs/V1beta1NetworkPolicyList.md index b2902d94ae..0fa9dd0fab 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyList.md +++ b/kubernetes/docs/V1beta1NetworkPolicyList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1NetworkPolicy]**](V1beta1NetworkPolicy.md) | Items is a list of schema objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1beta1NetworkPolicyPeer.md b/kubernetes/docs/V1beta1NetworkPolicyPeer.md index 7bd9e4718e..c3229c1b29 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyPeer.md +++ b/kubernetes/docs/V1beta1NetworkPolicyPeer.md @@ -3,8 +3,8 @@ ## 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] +**namespace_selector** | [**V1LabelSelector**](V1LabelSelector.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** | [**V1LabelSelector**](V1LabelSelector.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/kubernetes/docs/V1beta1NetworkPolicySpec.md b/kubernetes/docs/V1beta1NetworkPolicySpec.md index 7b92764a07..e93b40538f 100644 --- a/kubernetes/docs/V1beta1NetworkPolicySpec.md +++ b/kubernetes/docs/V1beta1NetworkPolicySpec.md @@ -4,7 +4,7 @@ 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. | +**pod_selector** | [**V1LabelSelector**](V1LabelSelector.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/kubernetes/docs/V1beta1PodDisruptionBudgetList.md b/kubernetes/docs/V1beta1PodDisruptionBudgetList.md index 5992128147..a0b6c3203a 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetList.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1PodDisruptionBudget]**](V1beta1PodDisruptionBudget.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md b/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md index 70c26f4856..07d8d488ac 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md @@ -4,7 +4,7 @@ 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] +**selector** | [**V1LabelSelector**](V1LabelSelector.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/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md b/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md index 1945e75525..5cbf8f4032 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **current_healthy** | **int** | current number of healthy pods | **desired_healthy** | **int** | minimum desired number of healthy pods | -**disrupted_pods** | [**dict(str, UnversionedTime)**](UnversionedTime.md) | DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. | +**disrupted_pods** | [**dict(str, V1Time)**](V1Time.md) | DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. | **disruptions_allowed** | **int** | Number of pod disruptions that are currently allowed. | **expected_pods** | **int** | total number of pods counted by this disruption budget | **observed_generation** | **int** | Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation. | [optional] diff --git a/kubernetes/docs/V1beta1PodSecurityPolicy.md b/kubernetes/docs/V1beta1PodSecurityPolicy.md new file mode 100644 index 0000000000..45bb161f7d --- /dev/null +++ b/kubernetes/docs/V1beta1PodSecurityPolicy.md @@ -0,0 +1,13 @@ +# V1beta1PodSecurityPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V1beta1PodSecurityPolicySpec**](V1beta1PodSecurityPolicySpec.md) | spec defines the policy enforced. | [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/kubernetes/docs/V1beta1PodSecurityPolicyList.md b/kubernetes/docs/V1beta1PodSecurityPolicyList.md new file mode 100644 index 0000000000..da762d937d --- /dev/null +++ b/kubernetes/docs/V1beta1PodSecurityPolicyList.md @@ -0,0 +1,13 @@ +# V1beta1PodSecurityPolicyList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1beta1PodSecurityPolicy]**](V1beta1PodSecurityPolicy.md) | Items is a list of schema objects. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1beta1PodSecurityPolicySpec.md b/kubernetes/docs/V1beta1PodSecurityPolicySpec.md new file mode 100644 index 0000000000..625d29d015 --- /dev/null +++ b/kubernetes/docs/V1beta1PodSecurityPolicySpec.md @@ -0,0 +1,23 @@ +# V1beta1PodSecurityPolicySpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed_capabilities** | **list[str]** | AllowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities. | [optional] +**default_add_capabilities** | **list[str]** | DefaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities. | [optional] +**fs_group** | [**V1beta1FSGroupStrategyOptions**](V1beta1FSGroupStrategyOptions.md) | FSGroup is the strategy that will dictate what fs group is used by the SecurityContext. | +**host_ipc** | **bool** | hostIPC determines if the policy allows the use of HostIPC in the pod spec. | [optional] +**host_network** | **bool** | hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. | [optional] +**host_pid** | **bool** | hostPID determines if the policy allows the use of HostPID in the pod spec. | [optional] +**host_ports** | [**list[V1beta1HostPortRange]**](V1beta1HostPortRange.md) | hostPorts determines which host port ranges are allowed to be exposed. | [optional] +**privileged** | **bool** | privileged determines if a pod can request to be run as privileged. | [optional] +**read_only_root_filesystem** | **bool** | ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. | [optional] +**required_drop_capabilities** | **list[str]** | RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. | [optional] +**run_as_user** | [**V1beta1RunAsUserStrategyOptions**](V1beta1RunAsUserStrategyOptions.md) | runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. | +**se_linux** | [**V1beta1SELinuxStrategyOptions**](V1beta1SELinuxStrategyOptions.md) | seLinux is the strategy that will dictate the allowable labels that may be set. | +**supplemental_groups** | [**V1beta1SupplementalGroupsStrategyOptions**](V1beta1SupplementalGroupsStrategyOptions.md) | SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. | +**volumes** | **list[str]** | volumes is a white list of allowed volume plugins. Empty indicates that all plugins may 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/kubernetes/docs/V1beta1PolicyRule.md b/kubernetes/docs/V1beta1PolicyRule.md new file mode 100644 index 0000000000..6409966468 --- /dev/null +++ b/kubernetes/docs/V1beta1PolicyRule.md @@ -0,0 +1,14 @@ +# V1beta1PolicyRule + +## 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] +**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 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/kubernetes/docs/V1beta1ReplicaSetCondition.md b/kubernetes/docs/V1beta1ReplicaSetCondition.md index 9886590450..17d11943fc 100644 --- a/kubernetes/docs/V1beta1ReplicaSetCondition.md +++ b/kubernetes/docs/V1beta1ReplicaSetCondition.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_transition_time** | [**UnversionedTime**](UnversionedTime.md) | The last time the condition transitioned from one status to another. | [optional] +**last_transition_time** | [**V1Time**](V1Time.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. | diff --git a/kubernetes/docs/V1beta1ReplicaSetList.md b/kubernetes/docs/V1beta1ReplicaSetList.md index c02c862ab8..dc3b031cc4 100644 --- a/kubernetes/docs/V1beta1ReplicaSetList.md +++ b/kubernetes/docs/V1beta1ReplicaSetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1ReplicaSet]**](V1beta1ReplicaSet.md) | List of ReplicaSets. More info: http://kubernetes.io/docs/user-guide/replication-controller | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1beta1ReplicaSetSpec.md b/kubernetes/docs/V1beta1ReplicaSetSpec.md index 111f85b160..cf7cf9d9e8 100644 --- a/kubernetes/docs/V1beta1ReplicaSetSpec.md +++ b/kubernetes/docs/V1beta1ReplicaSetSpec.md @@ -5,7 +5,7 @@ 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] +**selector** | [**V1LabelSelector**](V1LabelSelector.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/kubernetes/docs/V1beta1Role.md b/kubernetes/docs/V1beta1Role.md new file mode 100644 index 0000000000..5f9dc46eae --- /dev/null +++ b/kubernetes/docs/V1beta1Role.md @@ -0,0 +1,13 @@ +# V1beta1Role + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**rules** | [**list[V1beta1PolicyRule]**](V1beta1PolicyRule.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/kubernetes/docs/V1beta1RoleBinding.md b/kubernetes/docs/V1beta1RoleBinding.md new file mode 100644 index 0000000000..d48f260008 --- /dev/null +++ b/kubernetes/docs/V1beta1RoleBinding.md @@ -0,0 +1,14 @@ +# V1beta1RoleBinding + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**role_ref** | [**V1beta1RoleRef**](V1beta1RoleRef.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[V1beta1Subject]**](V1beta1Subject.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/kubernetes/docs/V1beta1RoleBindingList.md b/kubernetes/docs/V1beta1RoleBindingList.md new file mode 100644 index 0000000000..95b4673fbb --- /dev/null +++ b/kubernetes/docs/V1beta1RoleBindingList.md @@ -0,0 +1,13 @@ +# V1beta1RoleBindingList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1beta1RoleBinding]**](V1beta1RoleBinding.md) | Items is a list of RoleBindings | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1beta1RoleList.md b/kubernetes/docs/V1beta1RoleList.md new file mode 100644 index 0000000000..cc131e9d32 --- /dev/null +++ b/kubernetes/docs/V1beta1RoleList.md @@ -0,0 +1,13 @@ +# V1beta1RoleList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V1beta1Role]**](V1beta1Role.md) | Items is a list of Roles | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1beta1RoleRef.md b/kubernetes/docs/V1beta1RoleRef.md new file mode 100644 index 0000000000..65220ffb6a --- /dev/null +++ b/kubernetes/docs/V1beta1RoleRef.md @@ -0,0 +1,12 @@ +# V1beta1RoleRef + +## 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/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md b/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md new file mode 100644 index 0000000000..da1f8725a1 --- /dev/null +++ b/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md @@ -0,0 +1,10 @@ +# V1beta1RollingUpdateDaemonSet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_unavailable** | [**IntstrIntOrString**](IntstrIntOrString.md) | The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. | [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/kubernetes/docs/V1beta1RunAsUserStrategyOptions.md b/kubernetes/docs/V1beta1RunAsUserStrategyOptions.md new file mode 100644 index 0000000000..354e726a1f --- /dev/null +++ b/kubernetes/docs/V1beta1RunAsUserStrategyOptions.md @@ -0,0 +1,11 @@ +# V1beta1RunAsUserStrategyOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ranges** | [**list[V1beta1IDRange]**](V1beta1IDRange.md) | Ranges are the allowed ranges of uids that may be used. | [optional] +**rule** | **str** | Rule is the strategy that will dictate the allowable RunAsUser values that may be set. | + +[[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/kubernetes/docs/V1beta1SELinuxStrategyOptions.md b/kubernetes/docs/V1beta1SELinuxStrategyOptions.md new file mode 100644 index 0000000000..974d40b315 --- /dev/null +++ b/kubernetes/docs/V1beta1SELinuxStrategyOptions.md @@ -0,0 +1,11 @@ +# V1beta1SELinuxStrategyOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rule** | **str** | type is the strategy that will dictate the allowable labels that may be set. | +**se_linux_options** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | seLinuxOptions required to run as; required for MustRunAs More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context | [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/kubernetes/docs/V1beta1StatefulSetList.md b/kubernetes/docs/V1beta1StatefulSetList.md index c6ddafaf24..9fc1eb4563 100644 --- a/kubernetes/docs/V1beta1StatefulSetList.md +++ b/kubernetes/docs/V1beta1StatefulSetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1StatefulSet]**](V1beta1StatefulSet.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1beta1StatefulSetSpec.md b/kubernetes/docs/V1beta1StatefulSetSpec.md index c6cab39441..fa496eaf6a 100644 --- a/kubernetes/docs/V1beta1StatefulSetSpec.md +++ b/kubernetes/docs/V1beta1StatefulSetSpec.md @@ -4,7 +4,7 @@ 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] +**selector** | [**V1LabelSelector**](V1LabelSelector.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] diff --git a/kubernetes/docs/V1beta1StatefulSetStatus.md b/kubernetes/docs/V1beta1StatefulSetStatus.md index a7d5ebfb9a..a2e48f3a59 100644 --- a/kubernetes/docs/V1beta1StatefulSetStatus.md +++ b/kubernetes/docs/V1beta1StatefulSetStatus.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**observed_generation** | **int** | most recent generation observed by this autoscaler. | [optional] +**observed_generation** | **int** | most recent generation observed by this StatefulSet. | [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/kubernetes/docs/V1beta1StorageClassList.md b/kubernetes/docs/V1beta1StorageClassList.md index 1672e65aeb..93dd8e706f 100644 --- a/kubernetes/docs/V1beta1StorageClassList.md +++ b/kubernetes/docs/V1beta1StorageClassList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1StorageClass]**](V1beta1StorageClass.md) | Items is the list of StorageClasses | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V1beta1Subject.md b/kubernetes/docs/V1beta1Subject.md new file mode 100644 index 0000000000..2423ffdeee --- /dev/null +++ b/kubernetes/docs/V1beta1Subject.md @@ -0,0 +1,13 @@ +# V1beta1Subject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **str** | APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. | [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/kubernetes/docs/V1beta1SupplementalGroupsStrategyOptions.md b/kubernetes/docs/V1beta1SupplementalGroupsStrategyOptions.md new file mode 100644 index 0000000000..0d9b1f42c7 --- /dev/null +++ b/kubernetes/docs/V1beta1SupplementalGroupsStrategyOptions.md @@ -0,0 +1,11 @@ +# V1beta1SupplementalGroupsStrategyOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ranges** | [**list[V1beta1IDRange]**](V1beta1IDRange.md) | Ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. | [optional] +**rule** | **str** | Rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. | [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/kubernetes/docs/V1beta1ThirdPartyResourceList.md b/kubernetes/docs/V1beta1ThirdPartyResourceList.md index 7afd5536a5..2fbf26f0de 100644 --- a/kubernetes/docs/V1beta1ThirdPartyResourceList.md +++ b/kubernetes/docs/V1beta1ThirdPartyResourceList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1ThirdPartyResource]**](V1beta1ThirdPartyResource.md) | Items is the list of ThirdPartyResources. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V2alpha1CronJobList.md b/kubernetes/docs/V2alpha1CronJobList.md index dc0f0fbe36..d69c7a2914 100644 --- a/kubernetes/docs/V2alpha1CronJobList.md +++ b/kubernetes/docs/V2alpha1CronJobList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **items** | [**list[V2alpha1CronJob]**](V2alpha1CronJob.md) | Items is the list of CronJob. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.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/kubernetes/docs/V2alpha1CronJobSpec.md b/kubernetes/docs/V2alpha1CronJobSpec.md index d9e879fb95..6f3a6d275f 100644 --- a/kubernetes/docs/V2alpha1CronJobSpec.md +++ b/kubernetes/docs/V2alpha1CronJobSpec.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **concurrency_policy** | **str** | ConcurrencyPolicy specifies how to treat concurrent executions of a Job. | [optional] +**failed_jobs_history_limit** | **int** | The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. | [optional] **job_template** | [**V2alpha1JobTemplateSpec**](V2alpha1JobTemplateSpec.md) | JobTemplate is the object that describes the job that will be created when executing a CronJob. | **schedule** | **str** | Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. | **starting_deadline_seconds** | **int** | Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. | [optional] +**successful_jobs_history_limit** | **int** | The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. | [optional] **suspend** | **bool** | Suspend flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. | [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/kubernetes/docs/V2alpha1CronJobStatus.md b/kubernetes/docs/V2alpha1CronJobStatus.md index ac15f19184..ef95a6fc6f 100644 --- a/kubernetes/docs/V2alpha1CronJobStatus.md +++ b/kubernetes/docs/V2alpha1CronJobStatus.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | [**list[V1ObjectReference]**](V1ObjectReference.md) | Active holds pointers to currently running jobs. | [optional] -**last_schedule_time** | [**UnversionedTime**](UnversionedTime.md) | LastScheduleTime keeps information of when was the last time the job was successfully scheduled. | [optional] +**last_schedule_time** | [**V1Time**](V1Time.md) | LastScheduleTime keeps information of when was the last time the job was successfully scheduled. | [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/kubernetes/docs/V1beta1SubresourceReference.md b/kubernetes/docs/V2alpha1CrossVersionObjectReference.md similarity index 66% rename from kubernetes/docs/V1beta1SubresourceReference.md rename to kubernetes/docs/V2alpha1CrossVersionObjectReference.md index 58f57ab131..af21c14c82 100644 --- a/kubernetes/docs/V1beta1SubresourceReference.md +++ b/kubernetes/docs/V2alpha1CrossVersionObjectReference.md @@ -1,12 +1,11 @@ -# V1beta1SubresourceReference +# V2alpha1CrossVersionObjectReference ## 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] +**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/kubernetes/docs/V2alpha1HorizontalPodAutoscaler.md b/kubernetes/docs/V2alpha1HorizontalPodAutoscaler.md new file mode 100644 index 0000000000..26d1ea40b7 --- /dev/null +++ b/kubernetes/docs/V2alpha1HorizontalPodAutoscaler.md @@ -0,0 +1,14 @@ +# V2alpha1HorizontalPodAutoscaler + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | metadata is the standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**spec** | [**V2alpha1HorizontalPodAutoscalerSpec**](V2alpha1HorizontalPodAutoscalerSpec.md) | spec is the specification for the behaviour of the autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] +**status** | [**V2alpha1HorizontalPodAutoscalerStatus**](V2alpha1HorizontalPodAutoscalerStatus.md) | status is the 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/kubernetes/docs/V2alpha1HorizontalPodAutoscalerList.md b/kubernetes/docs/V2alpha1HorizontalPodAutoscalerList.md new file mode 100644 index 0000000000..299c6b8863 --- /dev/null +++ b/kubernetes/docs/V2alpha1HorizontalPodAutoscalerList.md @@ -0,0 +1,13 @@ +# V2alpha1HorizontalPodAutoscalerList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] +**items** | [**list[V2alpha1HorizontalPodAutoscaler]**](V2alpha1HorizontalPodAutoscaler.md) | items is the list of horizontal pod autoscaler objects. | +**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | metadata is the 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/kubernetes/docs/V2alpha1HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V2alpha1HorizontalPodAutoscalerSpec.md new file mode 100644 index 0000000000..f565590647 --- /dev/null +++ b/kubernetes/docs/V2alpha1HorizontalPodAutoscalerSpec.md @@ -0,0 +1,13 @@ +# V2alpha1HorizontalPodAutoscalerSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_replicas** | **int** | maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. | +**metrics** | [**list[V2alpha1MetricSpec]**](V2alpha1MetricSpec.md) | metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. | [optional] +**min_replicas** | **int** | minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. | [optional] +**scale_target_ref** | [**V2alpha1CrossVersionObjectReference**](V2alpha1CrossVersionObjectReference.md) | scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. | + +[[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/kubernetes/docs/V2alpha1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V2alpha1HorizontalPodAutoscalerStatus.md new file mode 100644 index 0000000000..e004e8a22d --- /dev/null +++ b/kubernetes/docs/V2alpha1HorizontalPodAutoscalerStatus.md @@ -0,0 +1,14 @@ +# V2alpha1HorizontalPodAutoscalerStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_metrics** | [**list[V2alpha1MetricStatus]**](V2alpha1MetricStatus.md) | currentMetrics is the last read state of the metrics used by this autoscaler. | +**current_replicas** | **int** | currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. | +**desired_replicas** | **int** | desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. | +**last_scale_time** | [**V1Time**](V1Time.md) | lastScaleTime is the 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** | observedGeneration is the 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/kubernetes/docs/V2alpha1Job.md b/kubernetes/docs/V2alpha1Job.md deleted file mode 100644 index c06ecb2ad5..0000000000 --- a/kubernetes/docs/V2alpha1Job.md +++ /dev/null @@ -1,14 +0,0 @@ -# V2alpha1Job - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V2alpha1JobSpec**](V2alpha1JobSpec.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** | [**V2alpha1JobStatus**](V2alpha1JobStatus.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/kubernetes/docs/V2alpha1JobCondition.md b/kubernetes/docs/V2alpha1JobCondition.md deleted file mode 100644 index 1ded8af5a4..0000000000 --- a/kubernetes/docs/V2alpha1JobCondition.md +++ /dev/null @@ -1,15 +0,0 @@ -# V2alpha1JobCondition - -## 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/kubernetes/docs/V2alpha1JobList.md b/kubernetes/docs/V2alpha1JobList.md deleted file mode 100644 index 6d88b70e49..0000000000 --- a/kubernetes/docs/V2alpha1JobList.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2alpha1JobList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**list[V2alpha1Job]**](V2alpha1Job.md) | Items is the list of Job. | -**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**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/kubernetes/docs/V2alpha1JobSpec.md b/kubernetes/docs/V2alpha1JobSpec.md deleted file mode 100644 index 382e13b04b..0000000000 --- a/kubernetes/docs/V2alpha1JobSpec.md +++ /dev/null @@ -1,15 +0,0 @@ -# V2alpha1JobSpec - -## 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/kubernetes/docs/V2alpha1JobStatus.md b/kubernetes/docs/V2alpha1JobStatus.md deleted file mode 100644 index 0e62a4069d..0000000000 --- a/kubernetes/docs/V2alpha1JobStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# V2alpha1JobStatus - -## 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[V2alpha1JobCondition]**](V2alpha1JobCondition.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/kubernetes/docs/V2alpha1JobTemplateSpec.md b/kubernetes/docs/V2alpha1JobTemplateSpec.md index ba7ad8e4bf..1479432e40 100644 --- a/kubernetes/docs/V2alpha1JobTemplateSpec.md +++ b/kubernetes/docs/V2alpha1JobTemplateSpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata of the jobs created from this template. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V2alpha1JobSpec**](V2alpha1JobSpec.md) | Specification of the desired behavior of the job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] +**spec** | [**V1JobSpec**](V1JobSpec.md) | Specification of the desired behavior of the 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/kubernetes/docs/V2alpha1MetricSpec.md b/kubernetes/docs/V2alpha1MetricSpec.md new file mode 100644 index 0000000000..6f1e1eaebf --- /dev/null +++ b/kubernetes/docs/V2alpha1MetricSpec.md @@ -0,0 +1,13 @@ +# V2alpha1MetricSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**V2alpha1ObjectMetricSource**](V2alpha1ObjectMetricSource.md) | object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). | [optional] +**pods** | [**V2alpha1PodsMetricSource**](V2alpha1PodsMetricSource.md) | pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. | [optional] +**resource** | [**V2alpha1ResourceMetricSource**](V2alpha1ResourceMetricSource.md) | resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. | [optional] +**type** | **str** | type is the type of metric source. It should match one of the fields below. | + +[[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/kubernetes/docs/V2alpha1MetricStatus.md b/kubernetes/docs/V2alpha1MetricStatus.md new file mode 100644 index 0000000000..285a3ad0ca --- /dev/null +++ b/kubernetes/docs/V2alpha1MetricStatus.md @@ -0,0 +1,13 @@ +# V2alpha1MetricStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**V2alpha1ObjectMetricStatus**](V2alpha1ObjectMetricStatus.md) | object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). | [optional] +**pods** | [**V2alpha1PodsMetricStatus**](V2alpha1PodsMetricStatus.md) | pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. | [optional] +**resource** | [**V2alpha1ResourceMetricStatus**](V2alpha1ResourceMetricStatus.md) | resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. | [optional] +**type** | **str** | type is the type of metric source. It will match one of the fields below. | + +[[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/kubernetes/docs/V2alpha1ObjectMetricSource.md b/kubernetes/docs/V2alpha1ObjectMetricSource.md new file mode 100644 index 0000000000..3a1fc987a2 --- /dev/null +++ b/kubernetes/docs/V2alpha1ObjectMetricSource.md @@ -0,0 +1,12 @@ +# V2alpha1ObjectMetricSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metric_name** | **str** | metricName is the name of the metric in question. | +**target** | [**V2alpha1CrossVersionObjectReference**](V2alpha1CrossVersionObjectReference.md) | target is the described Kubernetes object. | +**target_value** | [**ResourceQuantity**](ResourceQuantity.md) | targetValue is the target value of the metric (as a quantity). | + +[[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/kubernetes/docs/V2alpha1ObjectMetricStatus.md b/kubernetes/docs/V2alpha1ObjectMetricStatus.md new file mode 100644 index 0000000000..c43e4edaae --- /dev/null +++ b/kubernetes/docs/V2alpha1ObjectMetricStatus.md @@ -0,0 +1,12 @@ +# V2alpha1ObjectMetricStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_value** | [**ResourceQuantity**](ResourceQuantity.md) | currentValue is the current value of the metric (as a quantity). | +**metric_name** | **str** | metricName is the name of the metric in question. | +**target** | [**V2alpha1CrossVersionObjectReference**](V2alpha1CrossVersionObjectReference.md) | target is the described Kubernetes 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/kubernetes/docs/V2alpha1PodsMetricSource.md b/kubernetes/docs/V2alpha1PodsMetricSource.md new file mode 100644 index 0000000000..ba9deadb6e --- /dev/null +++ b/kubernetes/docs/V2alpha1PodsMetricSource.md @@ -0,0 +1,11 @@ +# V2alpha1PodsMetricSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metric_name** | **str** | metricName is the name of the metric in question | +**target_average_value** | [**ResourceQuantity**](ResourceQuantity.md) | targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) | + +[[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/kubernetes/docs/V2alpha1PodsMetricStatus.md b/kubernetes/docs/V2alpha1PodsMetricStatus.md new file mode 100644 index 0000000000..87f26992c3 --- /dev/null +++ b/kubernetes/docs/V2alpha1PodsMetricStatus.md @@ -0,0 +1,11 @@ +# V2alpha1PodsMetricStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_average_value** | [**ResourceQuantity**](ResourceQuantity.md) | currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) | +**metric_name** | **str** | metricName is the name of the metric in question | + +[[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/kubernetes/docs/V2alpha1ResourceMetricSource.md b/kubernetes/docs/V2alpha1ResourceMetricSource.md new file mode 100644 index 0000000000..0b7a02bc71 --- /dev/null +++ b/kubernetes/docs/V2alpha1ResourceMetricSource.md @@ -0,0 +1,12 @@ +# V2alpha1ResourceMetricSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name is the name of the resource in question. | +**target_average_utilization** | **int** | targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] +**target_average_value** | [**ResourceQuantity**](ResourceQuantity.md) | targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. | [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/kubernetes/docs/V2alpha1ResourceMetricStatus.md b/kubernetes/docs/V2alpha1ResourceMetricStatus.md new file mode 100644 index 0000000000..7d207905e0 --- /dev/null +++ b/kubernetes/docs/V2alpha1ResourceMetricStatus.md @@ -0,0 +1,12 @@ +# V2alpha1ResourceMetricStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_average_utilization** | **int** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. | [optional] +**current_average_value** | [**ResourceQuantity**](ResourceQuantity.md) | currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. | +**name** | **str** | name is the name of the resource in question. | + +[[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/kubernetes/test/test_apis_api.py b/kubernetes/test/test_apis_api.py index 6ccd5d7f3f..ca8ac81cae 100644 --- a/kubernetes/test/test_apis_api.py +++ b/kubernetes/test/test_apis_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_apps_api.py b/kubernetes/test/test_apps_api.py index 19db620133..e61cbca14f 100644 --- a/kubernetes/test/test_apps_api.py +++ b/kubernetes/test/test_apps_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_apps_v1beta1_api.py b/kubernetes/test/test_apps_v1beta1_api.py index e973a97576..b768517006 100644 --- a/kubernetes/test/test_apps_v1beta1_api.py +++ b/kubernetes/test/test_apps_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,11 +31,35 @@ def setUp(self): def tearDown(self): pass + def test_create_namespaced_deployment(self): + """ + Test case for create_namespaced_deployment + + + """ + pass + + def test_create_namespaced_deployment_rollback_rollback(self): + """ + Test case for create_namespaced_deployment_rollback_rollback + + + """ + pass + def test_create_namespaced_stateful_set(self): """ Test case for create_namespaced_stateful_set + """ + pass + + def test_delete_collection_namespaced_deployment(self): + """ + Test case for delete_collection_namespaced_deployment + + """ pass @@ -44,6 +68,14 @@ def test_delete_collection_namespaced_stateful_set(self): Test case for delete_collection_namespaced_stateful_set + """ + pass + + def test_delete_namespaced_deployment(self): + """ + Test case for delete_namespaced_deployment + + """ pass @@ -60,6 +92,22 @@ def test_get_api_resources(self): Test case for get_api_resources + """ + pass + + def test_list_deployment_for_all_namespaces(self): + """ + Test case for list_deployment_for_all_namespaces + + + """ + pass + + def test_list_namespaced_deployment(self): + """ + Test case for list_namespaced_deployment + + """ pass @@ -76,6 +124,30 @@ def test_list_stateful_set_for_all_namespaces(self): Test case for list_stateful_set_for_all_namespaces + """ + pass + + def test_patch_namespaced_deployment(self): + """ + Test case for patch_namespaced_deployment + + + """ + pass + + def test_patch_namespaced_deployment_status(self): + """ + Test case for patch_namespaced_deployment_status + + + """ + pass + + def test_patch_namespaced_scale_scale(self): + """ + Test case for patch_namespaced_scale_scale + + """ pass @@ -92,6 +164,30 @@ def test_patch_namespaced_stateful_set_status(self): Test case for patch_namespaced_stateful_set_status + """ + pass + + def test_read_namespaced_deployment(self): + """ + Test case for read_namespaced_deployment + + + """ + pass + + def test_read_namespaced_deployment_status(self): + """ + Test case for read_namespaced_deployment_status + + + """ + pass + + def test_read_namespaced_scale_scale(self): + """ + Test case for read_namespaced_scale_scale + + """ pass @@ -108,6 +204,30 @@ def test_read_namespaced_stateful_set_status(self): Test case for read_namespaced_stateful_set_status + """ + pass + + def test_replace_namespaced_deployment(self): + """ + Test case for replace_namespaced_deployment + + + """ + pass + + def test_replace_namespaced_deployment_status(self): + """ + Test case for replace_namespaced_deployment_status + + + """ + pass + + def test_replace_namespaced_scale_scale(self): + """ + Test case for replace_namespaced_scale_scale + + """ pass diff --git a/kubernetes/test/test_apps_v1beta1_deployment.py b/kubernetes/test/test_apps_v1beta1_deployment.py new file mode 100644 index 0000000000..0dfc3ac156 --- /dev/null +++ b/kubernetes/test/test_apps_v1beta1_deployment.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.apps_v1beta1_deployment import AppsV1beta1Deployment + + +class TestAppsV1beta1Deployment(unittest.TestCase): + """ AppsV1beta1Deployment unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppsV1beta1Deployment(self): + """ + Test AppsV1beta1Deployment + """ + model = kubernetes.client.models.apps_v1beta1_deployment.AppsV1beta1Deployment() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_condition.py b/kubernetes/test/test_apps_v1beta1_deployment_condition.py new file mode 100644 index 0000000000..cbaf0984a0 --- /dev/null +++ b/kubernetes/test/test_apps_v1beta1_deployment_condition.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.apps_v1beta1_deployment_condition import AppsV1beta1DeploymentCondition + + +class TestAppsV1beta1DeploymentCondition(unittest.TestCase): + """ AppsV1beta1DeploymentCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppsV1beta1DeploymentCondition(self): + """ + Test AppsV1beta1DeploymentCondition + """ + model = kubernetes.client.models.apps_v1beta1_deployment_condition.AppsV1beta1DeploymentCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_list.py b/kubernetes/test/test_apps_v1beta1_deployment_list.py new file mode 100644 index 0000000000..36049a8fff --- /dev/null +++ b/kubernetes/test/test_apps_v1beta1_deployment_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.apps_v1beta1_deployment_list import AppsV1beta1DeploymentList + + +class TestAppsV1beta1DeploymentList(unittest.TestCase): + """ AppsV1beta1DeploymentList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppsV1beta1DeploymentList(self): + """ + Test AppsV1beta1DeploymentList + """ + model = kubernetes.client.models.apps_v1beta1_deployment_list.AppsV1beta1DeploymentList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_rollback.py b/kubernetes/test/test_apps_v1beta1_deployment_rollback.py new file mode 100644 index 0000000000..90c435f2be --- /dev/null +++ b/kubernetes/test/test_apps_v1beta1_deployment_rollback.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.apps_v1beta1_deployment_rollback import AppsV1beta1DeploymentRollback + + +class TestAppsV1beta1DeploymentRollback(unittest.TestCase): + """ AppsV1beta1DeploymentRollback unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppsV1beta1DeploymentRollback(self): + """ + Test AppsV1beta1DeploymentRollback + """ + model = kubernetes.client.models.apps_v1beta1_deployment_rollback.AppsV1beta1DeploymentRollback() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_spec.py b/kubernetes/test/test_apps_v1beta1_deployment_spec.py new file mode 100644 index 0000000000..2e90c420ef --- /dev/null +++ b/kubernetes/test/test_apps_v1beta1_deployment_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.apps_v1beta1_deployment_spec import AppsV1beta1DeploymentSpec + + +class TestAppsV1beta1DeploymentSpec(unittest.TestCase): + """ AppsV1beta1DeploymentSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppsV1beta1DeploymentSpec(self): + """ + Test AppsV1beta1DeploymentSpec + """ + model = kubernetes.client.models.apps_v1beta1_deployment_spec.AppsV1beta1DeploymentSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_api_resource_list.py b/kubernetes/test/test_apps_v1beta1_deployment_status.py similarity index 54% rename from kubernetes/test/test_unversioned_api_resource_list.py rename to kubernetes/test/test_apps_v1beta1_deployment_status.py index 084b16829b..e75e15380e 100644 --- a/kubernetes/test/test_unversioned_api_resource_list.py +++ b/kubernetes/test/test_apps_v1beta1_deployment_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.unversioned_api_resource_list import UnversionedAPIResourceList +from kubernetes.client.models.apps_v1beta1_deployment_status import AppsV1beta1DeploymentStatus -class TestUnversionedAPIResourceList(unittest.TestCase): - """ UnversionedAPIResourceList unit test stubs """ +class TestAppsV1beta1DeploymentStatus(unittest.TestCase): + """ AppsV1beta1DeploymentStatus unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testUnversionedAPIResourceList(self): + def testAppsV1beta1DeploymentStatus(self): """ - Test UnversionedAPIResourceList + Test AppsV1beta1DeploymentStatus """ - model = kubernetes.client.models.unversioned_api_resource_list.UnversionedAPIResourceList() + model = kubernetes.client.models.apps_v1beta1_deployment_status.AppsV1beta1DeploymentStatus() if __name__ == '__main__': diff --git a/kubernetes/test/test_apps_v1beta1_deployment_strategy.py b/kubernetes/test/test_apps_v1beta1_deployment_strategy.py new file mode 100644 index 0000000000..2b4a193bae --- /dev/null +++ b/kubernetes/test/test_apps_v1beta1_deployment_strategy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.apps_v1beta1_deployment_strategy import AppsV1beta1DeploymentStrategy + + +class TestAppsV1beta1DeploymentStrategy(unittest.TestCase): + """ AppsV1beta1DeploymentStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppsV1beta1DeploymentStrategy(self): + """ + Test AppsV1beta1DeploymentStrategy + """ + model = kubernetes.client.models.apps_v1beta1_deployment_strategy.AppsV1beta1DeploymentStrategy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_rollback_config.py b/kubernetes/test/test_apps_v1beta1_rollback_config.py new file mode 100644 index 0000000000..790c3de588 --- /dev/null +++ b/kubernetes/test/test_apps_v1beta1_rollback_config.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.apps_v1beta1_rollback_config import AppsV1beta1RollbackConfig + + +class TestAppsV1beta1RollbackConfig(unittest.TestCase): + """ AppsV1beta1RollbackConfig unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppsV1beta1RollbackConfig(self): + """ + Test AppsV1beta1RollbackConfig + """ + model = kubernetes.client.models.apps_v1beta1_rollback_config.AppsV1beta1RollbackConfig() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_rolling_update_deployment.py b/kubernetes/test/test_apps_v1beta1_rolling_update_deployment.py new file mode 100644 index 0000000000..c388cec437 --- /dev/null +++ b/kubernetes/test/test_apps_v1beta1_rolling_update_deployment.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.apps_v1beta1_rolling_update_deployment import AppsV1beta1RollingUpdateDeployment + + +class TestAppsV1beta1RollingUpdateDeployment(unittest.TestCase): + """ AppsV1beta1RollingUpdateDeployment unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppsV1beta1RollingUpdateDeployment(self): + """ + Test AppsV1beta1RollingUpdateDeployment + """ + model = kubernetes.client.models.apps_v1beta1_rolling_update_deployment.AppsV1beta1RollingUpdateDeployment() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_time.py b/kubernetes/test/test_apps_v1beta1_scale.py similarity index 60% rename from kubernetes/test/test_unversioned_time.py rename to kubernetes/test/test_apps_v1beta1_scale.py index f1a71e9155..f867b616c5 100644 --- a/kubernetes/test/test_unversioned_time.py +++ b/kubernetes/test/test_apps_v1beta1_scale.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.unversioned_time import UnversionedTime +from kubernetes.client.models.apps_v1beta1_scale import AppsV1beta1Scale -class TestUnversionedTime(unittest.TestCase): - """ UnversionedTime unit test stubs """ +class TestAppsV1beta1Scale(unittest.TestCase): + """ AppsV1beta1Scale unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testUnversionedTime(self): + def testAppsV1beta1Scale(self): """ - Test UnversionedTime + Test AppsV1beta1Scale """ - model = kubernetes.client.models.unversioned_time.UnversionedTime() + model = kubernetes.client.models.apps_v1beta1_scale.AppsV1beta1Scale() if __name__ == '__main__': diff --git a/kubernetes/test/test_apps_v1beta1_scale_spec.py b/kubernetes/test/test_apps_v1beta1_scale_spec.py new file mode 100644 index 0000000000..59fe545634 --- /dev/null +++ b/kubernetes/test/test_apps_v1beta1_scale_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.apps_v1beta1_scale_spec import AppsV1beta1ScaleSpec + + +class TestAppsV1beta1ScaleSpec(unittest.TestCase): + """ AppsV1beta1ScaleSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppsV1beta1ScaleSpec(self): + """ + Test AppsV1beta1ScaleSpec + """ + model = kubernetes.client.models.apps_v1beta1_scale_spec.AppsV1beta1ScaleSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_scale_status.py b/kubernetes/test/test_apps_v1beta1_scale_status.py new file mode 100644 index 0000000000..ccf8346fca --- /dev/null +++ b/kubernetes/test/test_apps_v1beta1_scale_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.apps_v1beta1_scale_status import AppsV1beta1ScaleStatus + + +class TestAppsV1beta1ScaleStatus(unittest.TestCase): + """ AppsV1beta1ScaleStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppsV1beta1ScaleStatus(self): + """ + Test AppsV1beta1ScaleStatus + """ + model = kubernetes.client.models.apps_v1beta1_scale_status.AppsV1beta1ScaleStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_authentication_api.py b/kubernetes/test/test_authentication_api.py index fb67950b0e..d4ce2f9af6 100644 --- a/kubernetes/test/test_authentication_api.py +++ b/kubernetes/test/test_authentication_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_authentication_v1_api.py b/kubernetes/test/test_authentication_v1_api.py new file mode 100644 index 0000000000..e5f26da894 --- /dev/null +++ b/kubernetes/test/test_authentication_v1_api.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.apis.authentication_v1_api import AuthenticationV1Api + + +class TestAuthenticationV1Api(unittest.TestCase): + """ AuthenticationV1Api unit test stubs """ + + def setUp(self): + self.api = kubernetes.client.apis.authentication_v1_api.AuthenticationV1Api() + + def tearDown(self): + pass + + def test_create_token_review(self): + """ + Test case for create_token_review + + + """ + pass + + def test_get_api_resources(self): + """ + Test case for get_api_resources + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_authentication_v1beta1_api.py b/kubernetes/test/test_authentication_v1beta1_api.py index bd945e93af..2fef6b05a7 100644 --- a/kubernetes/test/test_authentication_v1beta1_api.py +++ b/kubernetes/test/test_authentication_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_authorization_api.py b/kubernetes/test/test_authorization_api.py index 7b412482e4..8cb41abb1c 100644 --- a/kubernetes/test/test_authorization_api.py +++ b/kubernetes/test/test_authorization_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_authorization_v1_api.py b/kubernetes/test/test_authorization_v1_api.py new file mode 100644 index 0000000000..9a04cb0f3b --- /dev/null +++ b/kubernetes/test/test_authorization_v1_api.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.apis.authorization_v1_api import AuthorizationV1Api + + +class TestAuthorizationV1Api(unittest.TestCase): + """ AuthorizationV1Api unit test stubs """ + + def setUp(self): + self.api = kubernetes.client.apis.authorization_v1_api.AuthorizationV1Api() + + def tearDown(self): + pass + + def test_create_namespaced_local_subject_access_review(self): + """ + Test case for create_namespaced_local_subject_access_review + + + """ + pass + + def test_create_self_subject_access_review(self): + """ + Test case for create_self_subject_access_review + + + """ + pass + + def test_create_subject_access_review(self): + """ + Test case for create_subject_access_review + + + """ + pass + + def test_get_api_resources(self): + """ + Test case for get_api_resources + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_authorization_v1beta1_api.py b/kubernetes/test/test_authorization_v1beta1_api.py index e58f3586cb..86817628dd 100644 --- a/kubernetes/test/test_authorization_v1beta1_api.py +++ b/kubernetes/test/test_authorization_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_autoscaling_api.py b/kubernetes/test/test_autoscaling_api.py index 948c825d64..2f79dd9be5 100644 --- a/kubernetes/test/test_autoscaling_api.py +++ b/kubernetes/test/test_autoscaling_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_autoscaling_v1_api.py b/kubernetes/test/test_autoscaling_v1_api.py index b64558162d..1af640125a 100644 --- a/kubernetes/test/test_autoscaling_v1_api.py +++ b/kubernetes/test/test_autoscaling_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_autoscaling_v2alpha1_api.py b/kubernetes/test/test_autoscaling_v2alpha1_api.py new file mode 100644 index 0000000000..6f7571908e --- /dev/null +++ b/kubernetes/test/test_autoscaling_v2alpha1_api.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.apis.autoscaling_v2alpha1_api import AutoscalingV2alpha1Api + + +class TestAutoscalingV2alpha1Api(unittest.TestCase): + """ AutoscalingV2alpha1Api unit test stubs """ + + def setUp(self): + self.api = kubernetes.client.apis.autoscaling_v2alpha1_api.AutoscalingV2alpha1Api() + + def tearDown(self): + pass + + def test_create_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for create_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_delete_collection_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for delete_collection_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_delete_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for delete_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_get_api_resources(self): + """ + Test case for get_api_resources + + + """ + pass + + def test_list_horizontal_pod_autoscaler_for_all_namespaces(self): + """ + Test case for list_horizontal_pod_autoscaler_for_all_namespaces + + + """ + pass + + def test_list_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for list_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_patch_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for patch_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_patch_namespaced_horizontal_pod_autoscaler_status(self): + """ + Test case for patch_namespaced_horizontal_pod_autoscaler_status + + + """ + pass + + def test_read_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for read_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_read_namespaced_horizontal_pod_autoscaler_status(self): + """ + Test case for read_namespaced_horizontal_pod_autoscaler_status + + + """ + pass + + def test_replace_namespaced_horizontal_pod_autoscaler(self): + """ + Test case for replace_namespaced_horizontal_pod_autoscaler + + + """ + pass + + def test_replace_namespaced_horizontal_pod_autoscaler_status(self): + """ + Test case for replace_namespaced_horizontal_pod_autoscaler_status + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_batch_api.py b/kubernetes/test/test_batch_api.py index 5a81c965cd..8cf17a8bc9 100644 --- a/kubernetes/test/test_batch_api.py +++ b/kubernetes/test/test_batch_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_batch_v1_api.py b/kubernetes/test/test_batch_v1_api.py index e164a12ce7..b303251646 100644 --- a/kubernetes/test/test_batch_v1_api.py +++ b/kubernetes/test/test_batch_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_batch_v2alpha1_api.py b/kubernetes/test/test_batch_v2alpha1_api.py index 5e2abe1469..2050d25d19 100644 --- a/kubernetes/test/test_batch_v2alpha1_api.py +++ b/kubernetes/test/test_batch_v2alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -36,14 +36,6 @@ def test_create_namespaced_cron_job(self): Test case for create_namespaced_cron_job - """ - pass - - def test_create_namespaced_job(self): - """ - Test case for create_namespaced_job - - """ pass @@ -60,14 +52,6 @@ def test_delete_collection_namespaced_cron_job(self): Test case for delete_collection_namespaced_cron_job - """ - pass - - def test_delete_collection_namespaced_job(self): - """ - Test case for delete_collection_namespaced_job - - """ pass @@ -84,14 +68,6 @@ def test_delete_namespaced_cron_job(self): Test case for delete_namespaced_cron_job - """ - pass - - def test_delete_namespaced_job(self): - """ - Test case for delete_namespaced_job - - """ pass @@ -116,14 +92,6 @@ def test_list_cron_job_for_all_namespaces(self): Test case for list_cron_job_for_all_namespaces - """ - pass - - def test_list_job_for_all_namespaces(self): - """ - Test case for list_job_for_all_namespaces - - """ pass @@ -132,14 +100,6 @@ def test_list_namespaced_cron_job(self): Test case for list_namespaced_cron_job - """ - pass - - def test_list_namespaced_job(self): - """ - Test case for list_namespaced_job - - """ pass @@ -172,22 +132,6 @@ def test_patch_namespaced_cron_job_status(self): Test case for patch_namespaced_cron_job_status - """ - pass - - def test_patch_namespaced_job(self): - """ - Test case for patch_namespaced_job - - - """ - pass - - def test_patch_namespaced_job_status(self): - """ - Test case for patch_namespaced_job_status - - """ pass @@ -220,22 +164,6 @@ def test_read_namespaced_cron_job_status(self): Test case for read_namespaced_cron_job_status - """ - pass - - def test_read_namespaced_job(self): - """ - Test case for read_namespaced_job - - - """ - pass - - def test_read_namespaced_job_status(self): - """ - Test case for read_namespaced_job_status - - """ pass @@ -268,22 +196,6 @@ def test_replace_namespaced_cron_job_status(self): Test case for replace_namespaced_cron_job_status - """ - pass - - def test_replace_namespaced_job(self): - """ - Test case for replace_namespaced_job - - - """ - pass - - def test_replace_namespaced_job_status(self): - """ - Test case for replace_namespaced_job_status - - """ pass diff --git a/kubernetes/test/test_certificates_api.py b/kubernetes/test/test_certificates_api.py index db14deac09..4fc461cb6a 100644 --- a/kubernetes/test/test_certificates_api.py +++ b/kubernetes/test/test_certificates_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_certificates_v1alpha1_api.py b/kubernetes/test/test_certificates_v1beta1_api.py similarity index 86% rename from kubernetes/test/test_certificates_v1alpha1_api.py rename to kubernetes/test/test_certificates_v1beta1_api.py index 6b1208aebf..c63af10192 100644 --- a/kubernetes/test/test_certificates_v1alpha1_api.py +++ b/kubernetes/test/test_certificates_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,14 +19,14 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.apis.certificates_v1alpha1_api import CertificatesV1alpha1Api +from kubernetes.client.apis.certificates_v1beta1_api import CertificatesV1beta1Api -class TestCertificatesV1alpha1Api(unittest.TestCase): - """ CertificatesV1alpha1Api unit test stubs """ +class TestCertificatesV1beta1Api(unittest.TestCase): + """ CertificatesV1beta1Api unit test stubs """ def setUp(self): - self.api = kubernetes.client.apis.certificates_v1alpha1_api.CertificatesV1alpha1Api() + self.api = kubernetes.client.apis.certificates_v1beta1_api.CertificatesV1beta1Api() def tearDown(self): pass diff --git a/kubernetes/test/test_core_api.py b/kubernetes/test/test_core_api.py index 43cb5bc199..49acff4b2f 100644 --- a/kubernetes/test/test_core_api.py +++ b/kubernetes/test/test_core_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_core_v1_api.py b/kubernetes/test/test_core_v1_api.py index 40702476f7..d08fbc8e9b 100644 --- a/kubernetes/test/test_core_v1_api.py +++ b/kubernetes/test/test_core_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -1356,6 +1356,54 @@ def test_proxy_options_node_with_path(self): Test case for proxy_options_node_with_path + """ + pass + + def test_proxy_patch_namespaced_pod(self): + """ + Test case for proxy_patch_namespaced_pod + + + """ + pass + + def test_proxy_patch_namespaced_pod_with_path(self): + """ + Test case for proxy_patch_namespaced_pod_with_path + + + """ + pass + + def test_proxy_patch_namespaced_service(self): + """ + Test case for proxy_patch_namespaced_service + + + """ + pass + + def test_proxy_patch_namespaced_service_with_path(self): + """ + Test case for proxy_patch_namespaced_service_with_path + + + """ + pass + + def test_proxy_patch_node(self): + """ + Test case for proxy_patch_node + + + """ + pass + + def test_proxy_patch_node_with_path(self): + """ + Test case for proxy_patch_node_with_path + + """ pass diff --git a/kubernetes/test/test_extensions_api.py b/kubernetes/test/test_extensions_api.py index deec43097e..51acee98d2 100644 --- a/kubernetes/test/test_extensions_api.py +++ b/kubernetes/test/test_extensions_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_extensions_v1beta1_api.py b/kubernetes/test/test_extensions_v1beta1_api.py index a9d0db1707..155dfe3a1f 100644 --- a/kubernetes/test/test_extensions_v1beta1_api.py +++ b/kubernetes/test/test_extensions_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -52,14 +52,6 @@ def test_create_namespaced_deployment_rollback_rollback(self): Test case for create_namespaced_deployment_rollback_rollback - """ - pass - - def test_create_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for create_namespaced_horizontal_pod_autoscaler - - """ pass @@ -71,25 +63,25 @@ def test_create_namespaced_ingress(self): """ pass - def test_create_namespaced_job(self): + def test_create_namespaced_network_policy(self): """ - Test case for create_namespaced_job + Test case for create_namespaced_network_policy """ pass - def test_create_namespaced_network_policy(self): + def test_create_namespaced_replica_set(self): """ - Test case for create_namespaced_network_policy + Test case for create_namespaced_replica_set """ pass - def test_create_namespaced_replica_set(self): + def test_create_pod_security_policy(self): """ - Test case for create_namespaced_replica_set + Test case for create_pod_security_policy """ @@ -116,14 +108,6 @@ def test_delete_collection_namespaced_deployment(self): Test case for delete_collection_namespaced_deployment - """ - pass - - def test_delete_collection_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for delete_collection_namespaced_horizontal_pod_autoscaler - - """ pass @@ -135,25 +119,25 @@ def test_delete_collection_namespaced_ingress(self): """ pass - def test_delete_collection_namespaced_job(self): + def test_delete_collection_namespaced_network_policy(self): """ - Test case for delete_collection_namespaced_job + Test case for delete_collection_namespaced_network_policy """ pass - def test_delete_collection_namespaced_network_policy(self): + def test_delete_collection_namespaced_replica_set(self): """ - Test case for delete_collection_namespaced_network_policy + Test case for delete_collection_namespaced_replica_set """ pass - def test_delete_collection_namespaced_replica_set(self): + def test_delete_collection_pod_security_policy(self): """ - Test case for delete_collection_namespaced_replica_set + Test case for delete_collection_pod_security_policy """ @@ -180,14 +164,6 @@ def test_delete_namespaced_deployment(self): Test case for delete_namespaced_deployment - """ - pass - - def test_delete_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for delete_namespaced_horizontal_pod_autoscaler - - """ pass @@ -199,25 +175,25 @@ def test_delete_namespaced_ingress(self): """ pass - def test_delete_namespaced_job(self): + def test_delete_namespaced_network_policy(self): """ - Test case for delete_namespaced_job + Test case for delete_namespaced_network_policy """ pass - def test_delete_namespaced_network_policy(self): + def test_delete_namespaced_replica_set(self): """ - Test case for delete_namespaced_network_policy + Test case for delete_namespaced_replica_set """ pass - def test_delete_namespaced_replica_set(self): + def test_delete_pod_security_policy(self): """ - Test case for delete_namespaced_replica_set + Test case for delete_pod_security_policy """ @@ -252,14 +228,6 @@ def test_list_deployment_for_all_namespaces(self): Test case for list_deployment_for_all_namespaces - """ - pass - - def test_list_horizontal_pod_autoscaler_for_all_namespaces(self): - """ - Test case for list_horizontal_pod_autoscaler_for_all_namespaces - - """ pass @@ -268,14 +236,6 @@ def test_list_ingress_for_all_namespaces(self): Test case for list_ingress_for_all_namespaces - """ - pass - - def test_list_job_for_all_namespaces(self): - """ - Test case for list_job_for_all_namespaces - - """ pass @@ -292,14 +252,6 @@ def test_list_namespaced_deployment(self): Test case for list_namespaced_deployment - """ - pass - - def test_list_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for list_namespaced_horizontal_pod_autoscaler - - """ pass @@ -308,14 +260,6 @@ def test_list_namespaced_ingress(self): Test case for list_namespaced_ingress - """ - pass - - def test_list_namespaced_job(self): - """ - Test case for list_namespaced_job - - """ pass @@ -340,6 +284,14 @@ def test_list_network_policy_for_all_namespaces(self): Test case for list_network_policy_for_all_namespaces + """ + pass + + def test_list_pod_security_policy(self): + """ + Test case for list_pod_security_policy + + """ pass @@ -396,22 +348,6 @@ def test_patch_namespaced_deployments_scale(self): Test case for patch_namespaced_deployments_scale - """ - pass - - def test_patch_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for patch_namespaced_horizontal_pod_autoscaler - - - """ - pass - - def test_patch_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for patch_namespaced_horizontal_pod_autoscaler_status - - """ pass @@ -428,22 +364,6 @@ def test_patch_namespaced_ingress_status(self): Test case for patch_namespaced_ingress_status - """ - pass - - def test_patch_namespaced_job(self): - """ - Test case for patch_namespaced_job - - - """ - pass - - def test_patch_namespaced_job_status(self): - """ - Test case for patch_namespaced_job_status - - """ pass @@ -484,6 +404,14 @@ def test_patch_namespaced_replicationcontrollers_scale(self): Test case for patch_namespaced_replicationcontrollers_scale + """ + pass + + def test_patch_pod_security_policy(self): + """ + Test case for patch_pod_security_policy + + """ pass @@ -532,22 +460,6 @@ def test_read_namespaced_deployments_scale(self): Test case for read_namespaced_deployments_scale - """ - pass - - def test_read_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for read_namespaced_horizontal_pod_autoscaler - - - """ - pass - - def test_read_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for read_namespaced_horizontal_pod_autoscaler_status - - """ pass @@ -564,22 +476,6 @@ def test_read_namespaced_ingress_status(self): Test case for read_namespaced_ingress_status - """ - pass - - def test_read_namespaced_job(self): - """ - Test case for read_namespaced_job - - - """ - pass - - def test_read_namespaced_job_status(self): - """ - Test case for read_namespaced_job_status - - """ pass @@ -620,6 +516,14 @@ def test_read_namespaced_replicationcontrollers_scale(self): Test case for read_namespaced_replicationcontrollers_scale + """ + pass + + def test_read_pod_security_policy(self): + """ + Test case for read_pod_security_policy + + """ pass @@ -668,22 +572,6 @@ def test_replace_namespaced_deployments_scale(self): Test case for replace_namespaced_deployments_scale - """ - pass - - def test_replace_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for replace_namespaced_horizontal_pod_autoscaler - - - """ - pass - - def test_replace_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for replace_namespaced_horizontal_pod_autoscaler_status - - """ pass @@ -700,22 +588,6 @@ def test_replace_namespaced_ingress_status(self): Test case for replace_namespaced_ingress_status - """ - pass - - def test_replace_namespaced_job(self): - """ - Test case for replace_namespaced_job - - - """ - pass - - def test_replace_namespaced_job_status(self): - """ - Test case for replace_namespaced_job_status - - """ pass @@ -756,6 +628,14 @@ def test_replace_namespaced_replicationcontrollers_scale(self): Test case for replace_namespaced_replicationcontrollers_scale + """ + pass + + def test_replace_pod_security_policy(self): + """ + Test case for replace_pod_security_policy + + """ pass diff --git a/kubernetes/test/test_extensions_v1beta1_deployment.py b/kubernetes/test/test_extensions_v1beta1_deployment.py new file mode 100644 index 0000000000..20cf65f145 --- /dev/null +++ b/kubernetes/test/test_extensions_v1beta1_deployment.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.extensions_v1beta1_deployment import ExtensionsV1beta1Deployment + + +class TestExtensionsV1beta1Deployment(unittest.TestCase): + """ ExtensionsV1beta1Deployment unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExtensionsV1beta1Deployment(self): + """ + Test ExtensionsV1beta1Deployment + """ + model = kubernetes.client.models.extensions_v1beta1_deployment.ExtensionsV1beta1Deployment() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_list.py b/kubernetes/test/test_extensions_v1beta1_deployment_condition.py similarity index 51% rename from kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_list.py rename to kubernetes/test/test_extensions_v1beta1_deployment_condition.py index c0cbac7cd5..3beef931f7 100644 --- a/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_list.py +++ b/kubernetes/test/test_extensions_v1beta1_deployment_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_horizontal_pod_autoscaler_list import V1beta1HorizontalPodAutoscalerList +from kubernetes.client.models.extensions_v1beta1_deployment_condition import ExtensionsV1beta1DeploymentCondition -class TestV1beta1HorizontalPodAutoscalerList(unittest.TestCase): - """ V1beta1HorizontalPodAutoscalerList unit test stubs """ +class TestExtensionsV1beta1DeploymentCondition(unittest.TestCase): + """ ExtensionsV1beta1DeploymentCondition unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testV1beta1HorizontalPodAutoscalerList(self): + def testExtensionsV1beta1DeploymentCondition(self): """ - Test V1beta1HorizontalPodAutoscalerList + Test ExtensionsV1beta1DeploymentCondition """ - model = kubernetes.client.models.v1beta1_horizontal_pod_autoscaler_list.V1beta1HorizontalPodAutoscalerList() + model = kubernetes.client.models.extensions_v1beta1_deployment_condition.ExtensionsV1beta1DeploymentCondition() if __name__ == '__main__': diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_list.py b/kubernetes/test/test_extensions_v1beta1_deployment_list.py new file mode 100644 index 0000000000..9ccc4a2e90 --- /dev/null +++ b/kubernetes/test/test_extensions_v1beta1_deployment_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.extensions_v1beta1_deployment_list import ExtensionsV1beta1DeploymentList + + +class TestExtensionsV1beta1DeploymentList(unittest.TestCase): + """ ExtensionsV1beta1DeploymentList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExtensionsV1beta1DeploymentList(self): + """ + Test ExtensionsV1beta1DeploymentList + """ + model = kubernetes.client.models.extensions_v1beta1_deployment_list.ExtensionsV1beta1DeploymentList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_rollback.py b/kubernetes/test/test_extensions_v1beta1_deployment_rollback.py new file mode 100644 index 0000000000..0a54b2cb12 --- /dev/null +++ b/kubernetes/test/test_extensions_v1beta1_deployment_rollback.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.extensions_v1beta1_deployment_rollback import ExtensionsV1beta1DeploymentRollback + + +class TestExtensionsV1beta1DeploymentRollback(unittest.TestCase): + """ ExtensionsV1beta1DeploymentRollback unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExtensionsV1beta1DeploymentRollback(self): + """ + Test ExtensionsV1beta1DeploymentRollback + """ + model = kubernetes.client.models.extensions_v1beta1_deployment_rollback.ExtensionsV1beta1DeploymentRollback() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_spec.py b/kubernetes/test/test_extensions_v1beta1_deployment_spec.py new file mode 100644 index 0000000000..deec9ade11 --- /dev/null +++ b/kubernetes/test/test_extensions_v1beta1_deployment_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.extensions_v1beta1_deployment_spec import ExtensionsV1beta1DeploymentSpec + + +class TestExtensionsV1beta1DeploymentSpec(unittest.TestCase): + """ ExtensionsV1beta1DeploymentSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExtensionsV1beta1DeploymentSpec(self): + """ + Test ExtensionsV1beta1DeploymentSpec + """ + model = kubernetes.client.models.extensions_v1beta1_deployment_spec.ExtensionsV1beta1DeploymentSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_status.py b/kubernetes/test/test_extensions_v1beta1_deployment_status.py new file mode 100644 index 0000000000..d1c7a9e93b --- /dev/null +++ b/kubernetes/test/test_extensions_v1beta1_deployment_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.extensions_v1beta1_deployment_status import ExtensionsV1beta1DeploymentStatus + + +class TestExtensionsV1beta1DeploymentStatus(unittest.TestCase): + """ ExtensionsV1beta1DeploymentStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExtensionsV1beta1DeploymentStatus(self): + """ + Test ExtensionsV1beta1DeploymentStatus + """ + model = kubernetes.client.models.extensions_v1beta1_deployment_status.ExtensionsV1beta1DeploymentStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_strategy.py b/kubernetes/test/test_extensions_v1beta1_deployment_strategy.py new file mode 100644 index 0000000000..76c650d30e --- /dev/null +++ b/kubernetes/test/test_extensions_v1beta1_deployment_strategy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.extensions_v1beta1_deployment_strategy import ExtensionsV1beta1DeploymentStrategy + + +class TestExtensionsV1beta1DeploymentStrategy(unittest.TestCase): + """ ExtensionsV1beta1DeploymentStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExtensionsV1beta1DeploymentStrategy(self): + """ + Test ExtensionsV1beta1DeploymentStrategy + """ + model = kubernetes.client.models.extensions_v1beta1_deployment_strategy.ExtensionsV1beta1DeploymentStrategy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_rollback_config.py b/kubernetes/test/test_extensions_v1beta1_rollback_config.py new file mode 100644 index 0000000000..19423b6432 --- /dev/null +++ b/kubernetes/test/test_extensions_v1beta1_rollback_config.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig + + +class TestExtensionsV1beta1RollbackConfig(unittest.TestCase): + """ ExtensionsV1beta1RollbackConfig unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExtensionsV1beta1RollbackConfig(self): + """ + Test ExtensionsV1beta1RollbackConfig + """ + model = kubernetes.client.models.extensions_v1beta1_rollback_config.ExtensionsV1beta1RollbackConfig() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_rolling_update_deployment.py b/kubernetes/test/test_extensions_v1beta1_rolling_update_deployment.py new file mode 100644 index 0000000000..4f4d861e4b --- /dev/null +++ b/kubernetes/test/test_extensions_v1beta1_rolling_update_deployment.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.extensions_v1beta1_rolling_update_deployment import ExtensionsV1beta1RollingUpdateDeployment + + +class TestExtensionsV1beta1RollingUpdateDeployment(unittest.TestCase): + """ ExtensionsV1beta1RollingUpdateDeployment unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExtensionsV1beta1RollingUpdateDeployment(self): + """ + Test ExtensionsV1beta1RollingUpdateDeployment + """ + model = kubernetes.client.models.extensions_v1beta1_rolling_update_deployment.ExtensionsV1beta1RollingUpdateDeployment() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_scale.py b/kubernetes/test/test_extensions_v1beta1_scale.py new file mode 100644 index 0000000000..c55b65ea84 --- /dev/null +++ b/kubernetes/test/test_extensions_v1beta1_scale.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.extensions_v1beta1_scale import ExtensionsV1beta1Scale + + +class TestExtensionsV1beta1Scale(unittest.TestCase): + """ ExtensionsV1beta1Scale unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExtensionsV1beta1Scale(self): + """ + Test ExtensionsV1beta1Scale + """ + model = kubernetes.client.models.extensions_v1beta1_scale.ExtensionsV1beta1Scale() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_scale_spec.py b/kubernetes/test/test_extensions_v1beta1_scale_spec.py new file mode 100644 index 0000000000..b575c9e397 --- /dev/null +++ b/kubernetes/test/test_extensions_v1beta1_scale_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec + + +class TestExtensionsV1beta1ScaleSpec(unittest.TestCase): + """ ExtensionsV1beta1ScaleSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExtensionsV1beta1ScaleSpec(self): + """ + Test ExtensionsV1beta1ScaleSpec + """ + model = kubernetes.client.models.extensions_v1beta1_scale_spec.ExtensionsV1beta1ScaleSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_scale_status.py b/kubernetes/test/test_extensions_v1beta1_scale_status.py new file mode 100644 index 0000000000..869eafbebb --- /dev/null +++ b/kubernetes/test/test_extensions_v1beta1_scale_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus + + +class TestExtensionsV1beta1ScaleStatus(unittest.TestCase): + """ ExtensionsV1beta1ScaleStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExtensionsV1beta1ScaleStatus(self): + """ + Test ExtensionsV1beta1ScaleStatus + """ + model = kubernetes.client.models.extensions_v1beta1_scale_status.ExtensionsV1beta1ScaleStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_intstr_int_or_string.py b/kubernetes/test/test_intstr_int_or_string.py index afee347bc2..1d3216ba8d 100644 --- a/kubernetes/test/test_intstr_int_or_string.py +++ b/kubernetes/test/test_intstr_int_or_string.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_logs_api.py b/kubernetes/test/test_logs_api.py index 619722eed0..d88c1ab873 100644 --- a/kubernetes/test/test_logs_api.py +++ b/kubernetes/test/test_logs_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_policy_api.py b/kubernetes/test/test_policy_api.py index 2cd9cdc53d..9bf6aaa934 100644 --- a/kubernetes/test/test_policy_api.py +++ b/kubernetes/test/test_policy_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_policy_v1beta1_api.py b/kubernetes/test/test_policy_v1beta1_api.py index 4cf1f4f4f5..37874744f8 100644 --- a/kubernetes/test/test_policy_v1beta1_api.py +++ b/kubernetes/test/test_policy_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_rbac_authorization_api.py b/kubernetes/test/test_rbac_authorization_api.py index aa732c0e72..3308a17f2f 100644 --- a/kubernetes/test/test_rbac_authorization_api.py +++ b/kubernetes/test/test_rbac_authorization_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_rbac_authorization_v1alpha1_api.py b/kubernetes/test/test_rbac_authorization_v1alpha1_api.py index cb38146bfe..538044a800 100644 --- a/kubernetes/test/test_rbac_authorization_v1alpha1_api.py +++ b/kubernetes/test/test_rbac_authorization_v1alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_rbac_authorization_v1beta1_api.py b/kubernetes/test/test_rbac_authorization_v1beta1_api.py new file mode 100644 index 0000000000..8df9d6dac0 --- /dev/null +++ b/kubernetes/test/test_rbac_authorization_v1beta1_api.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: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.apis.rbac_authorization_v1beta1_api import RbacAuthorizationV1beta1Api + + +class TestRbacAuthorizationV1beta1Api(unittest.TestCase): + """ RbacAuthorizationV1beta1Api unit test stubs """ + + def setUp(self): + self.api = kubernetes.client.apis.rbac_authorization_v1beta1_api.RbacAuthorizationV1beta1Api() + + def tearDown(self): + pass + + def test_create_cluster_role(self): + """ + Test case for create_cluster_role + + + """ + pass + + def test_create_cluster_role_binding(self): + """ + Test case for create_cluster_role_binding + + + """ + pass + + def test_create_namespaced_role(self): + """ + Test case for create_namespaced_role + + + """ + pass + + def test_create_namespaced_role_binding(self): + """ + Test case for create_namespaced_role_binding + + + """ + pass + + def test_delete_cluster_role(self): + """ + Test case for delete_cluster_role + + + """ + pass + + def test_delete_cluster_role_binding(self): + """ + Test case for delete_cluster_role_binding + + + """ + pass + + def test_delete_collection_cluster_role(self): + """ + Test case for delete_collection_cluster_role + + + """ + pass + + def test_delete_collection_cluster_role_binding(self): + """ + Test case for delete_collection_cluster_role_binding + + + """ + pass + + def test_delete_collection_namespaced_role(self): + """ + Test case for delete_collection_namespaced_role + + + """ + pass + + def test_delete_collection_namespaced_role_binding(self): + """ + Test case for delete_collection_namespaced_role_binding + + + """ + pass + + def test_delete_namespaced_role(self): + """ + Test case for delete_namespaced_role + + + """ + pass + + def test_delete_namespaced_role_binding(self): + """ + Test case for delete_namespaced_role_binding + + + """ + pass + + def test_get_api_resources(self): + """ + Test case for get_api_resources + + + """ + pass + + def test_list_cluster_role(self): + """ + Test case for list_cluster_role + + + """ + pass + + def test_list_cluster_role_binding(self): + """ + Test case for list_cluster_role_binding + + + """ + pass + + def test_list_namespaced_role(self): + """ + Test case for list_namespaced_role + + + """ + pass + + def test_list_namespaced_role_binding(self): + """ + Test case for list_namespaced_role_binding + + + """ + pass + + def test_list_role_binding_for_all_namespaces(self): + """ + Test case for list_role_binding_for_all_namespaces + + + """ + pass + + def test_list_role_for_all_namespaces(self): + """ + Test case for list_role_for_all_namespaces + + + """ + pass + + def test_patch_cluster_role(self): + """ + Test case for patch_cluster_role + + + """ + pass + + def test_patch_cluster_role_binding(self): + """ + Test case for patch_cluster_role_binding + + + """ + pass + + def test_patch_namespaced_role(self): + """ + Test case for patch_namespaced_role + + + """ + pass + + def test_patch_namespaced_role_binding(self): + """ + Test case for patch_namespaced_role_binding + + + """ + pass + + def test_read_cluster_role(self): + """ + Test case for read_cluster_role + + + """ + pass + + def test_read_cluster_role_binding(self): + """ + Test case for read_cluster_role_binding + + + """ + pass + + def test_read_namespaced_role(self): + """ + Test case for read_namespaced_role + + + """ + pass + + def test_read_namespaced_role_binding(self): + """ + Test case for read_namespaced_role_binding + + + """ + pass + + def test_replace_cluster_role(self): + """ + Test case for replace_cluster_role + + + """ + pass + + def test_replace_cluster_role_binding(self): + """ + Test case for replace_cluster_role_binding + + + """ + pass + + def test_replace_namespaced_role(self): + """ + Test case for replace_namespaced_role + + + """ + pass + + def test_replace_namespaced_role_binding(self): + """ + Test case for replace_namespaced_role_binding + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_resource_quantity.py b/kubernetes/test/test_resource_quantity.py index c0b2bdfd5e..7753f61d06 100644 --- a/kubernetes/test/test_resource_quantity.py +++ b/kubernetes/test/test_resource_quantity.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_runtime_raw_extension.py b/kubernetes/test/test_runtime_raw_extension.py index 9a300b0902..096b87a231 100644 --- a/kubernetes/test/test_runtime_raw_extension.py +++ b/kubernetes/test/test_runtime_raw_extension.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_versioned_event.py b/kubernetes/test/test_settings_api.py similarity index 61% rename from kubernetes/test/test_versioned_event.py rename to kubernetes/test/test_settings_api.py index d8bfca777c..505dff0040 100644 --- a/kubernetes/test/test_versioned_event.py +++ b/kubernetes/test/test_settings_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,23 +19,25 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.versioned_event import VersionedEvent +from kubernetes.client.apis.settings_api import SettingsApi -class TestVersionedEvent(unittest.TestCase): - """ VersionedEvent unit test stubs """ +class TestSettingsApi(unittest.TestCase): + """ SettingsApi unit test stubs """ def setUp(self): - pass + self.api = kubernetes.client.apis.settings_api.SettingsApi() def tearDown(self): pass - def testVersionedEvent(self): + def test_get_api_group(self): """ - Test VersionedEvent + Test case for get_api_group + + """ - model = kubernetes.client.models.versioned_event.VersionedEvent() + pass if __name__ == '__main__': diff --git a/kubernetes/test/test_settings_v1alpha1_api.py b/kubernetes/test/test_settings_v1alpha1_api.py new file mode 100644 index 0000000000..cf766d3fcc --- /dev/null +++ b/kubernetes/test/test_settings_v1alpha1_api.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.apis.settings_v1alpha1_api import SettingsV1alpha1Api + + +class TestSettingsV1alpha1Api(unittest.TestCase): + """ SettingsV1alpha1Api unit test stubs """ + + def setUp(self): + self.api = kubernetes.client.apis.settings_v1alpha1_api.SettingsV1alpha1Api() + + def tearDown(self): + pass + + def test_create_namespaced_pod_preset(self): + """ + Test case for create_namespaced_pod_preset + + + """ + pass + + def test_delete_collection_namespaced_pod_preset(self): + """ + Test case for delete_collection_namespaced_pod_preset + + + """ + pass + + def test_delete_namespaced_pod_preset(self): + """ + Test case for delete_namespaced_pod_preset + + + """ + pass + + def test_get_api_resources(self): + """ + Test case for get_api_resources + + + """ + pass + + def test_list_namespaced_pod_preset(self): + """ + Test case for list_namespaced_pod_preset + + + """ + pass + + def test_list_pod_preset_for_all_namespaces(self): + """ + Test case for list_pod_preset_for_all_namespaces + + + """ + pass + + def test_patch_namespaced_pod_preset(self): + """ + Test case for patch_namespaced_pod_preset + + + """ + pass + + def test_read_namespaced_pod_preset(self): + """ + Test case for read_namespaced_pod_preset + + + """ + pass + + def test_replace_namespaced_pod_preset(self): + """ + Test case for replace_namespaced_pod_preset + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_storage_api.py b/kubernetes/test/test_storage_api.py index 20082fc980..854562249b 100644 --- a/kubernetes/test/test_storage_api.py +++ b/kubernetes/test/test_storage_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_storage_v1_api.py b/kubernetes/test/test_storage_v1_api.py new file mode 100644 index 0000000000..0779857ed0 --- /dev/null +++ b/kubernetes/test/test_storage_v1_api.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.apis.storage_v1_api import StorageV1Api + + +class TestStorageV1Api(unittest.TestCase): + """ StorageV1Api unit test stubs """ + + def setUp(self): + self.api = kubernetes.client.apis.storage_v1_api.StorageV1Api() + + def tearDown(self): + pass + + def test_create_storage_class(self): + """ + Test case for create_storage_class + + + """ + pass + + def test_delete_collection_storage_class(self): + """ + Test case for delete_collection_storage_class + + + """ + pass + + def test_delete_storage_class(self): + """ + Test case for delete_storage_class + + + """ + pass + + def test_get_api_resources(self): + """ + Test case for get_api_resources + + + """ + pass + + def test_list_storage_class(self): + """ + Test case for list_storage_class + + + """ + pass + + def test_patch_storage_class(self): + """ + Test case for patch_storage_class + + + """ + pass + + def test_read_storage_class(self): + """ + Test case for read_storage_class + + + """ + pass + + def test_replace_storage_class(self): + """ + Test case for replace_storage_class + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_storage_v1beta1_api.py b/kubernetes/test/test_storage_v1beta1_api.py index d32d96ad61..a473aa9cbe 100644 --- a/kubernetes/test/test_storage_v1beta1_api.py +++ b/kubernetes/test/test_storage_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_unversioned_group_version_for_discovery.py b/kubernetes/test/test_unversioned_group_version_for_discovery.py deleted file mode 100644 index a0a1bde041..0000000000 --- a/kubernetes/test/test_unversioned_group_version_for_discovery.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.unversioned_group_version_for_discovery.UnversionedGroupVersionForDiscovery() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_unversioned_label_selector.py b/kubernetes/test/test_unversioned_label_selector.py deleted file mode 100644 index a16f4578ca..0000000000 --- a/kubernetes/test/test_unversioned_label_selector.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.unversioned_label_selector.UnversionedLabelSelector() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_unversioned_label_selector_requirement.py b/kubernetes/test/test_unversioned_label_selector_requirement.py deleted file mode 100644 index 2516feebe3..0000000000 --- a/kubernetes/test/test_unversioned_label_selector_requirement.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.unversioned_label_selector_requirement.UnversionedLabelSelectorRequirement() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_unversioned_server_address_by_client_cidr.py b/kubernetes/test/test_unversioned_server_address_by_client_cidr.py deleted file mode 100644 index 252cfc55c2..0000000000 --- a/kubernetes/test/test_unversioned_server_address_by_client_cidr.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.unversioned_server_address_by_client_cidr.UnversionedServerAddressByClientCIDR() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_unversioned_status_cause.py b/kubernetes/test/test_unversioned_status_cause.py deleted file mode 100644 index ddf8f52502..0000000000 --- a/kubernetes/test/test_unversioned_status_cause.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.unversioned_status_cause.UnversionedStatusCause() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_unversioned_status_details.py b/kubernetes/test/test_unversioned_status_details.py deleted file mode 100644 index 736423ad5d..0000000000 --- a/kubernetes/test/test_unversioned_status_details.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.unversioned_status_details.UnversionedStatusDetails() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_job.py b/kubernetes/test/test_v1_affinity.py similarity index 63% rename from kubernetes/test/test_v1beta1_job.py rename to kubernetes/test/test_v1_affinity.py index b9ed85ea16..ad7b5d812a 100644 --- a/kubernetes/test/test_v1beta1_job.py +++ b/kubernetes/test/test_v1_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_job import V1beta1Job +from kubernetes.client.models.v1_affinity import V1Affinity -class TestV1beta1Job(unittest.TestCase): - """ V1beta1Job unit test stubs """ +class TestV1Affinity(unittest.TestCase): + """ V1Affinity unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testV1beta1Job(self): + def testV1Affinity(self): """ - Test V1beta1Job + Test V1Affinity """ - model = kubernetes.client.models.v1beta1_job.V1beta1Job() + model = kubernetes.client.models.v1_affinity.V1Affinity() if __name__ == '__main__': diff --git a/kubernetes/test/test_v2alpha1_job.py b/kubernetes/test/test_v1_api_group.py similarity index 62% rename from kubernetes/test/test_v2alpha1_job.py rename to kubernetes/test/test_v1_api_group.py index 3c7ff82509..8861a8b482 100644 --- a/kubernetes/test/test_v2alpha1_job.py +++ b/kubernetes/test/test_v1_api_group.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_job import V2alpha1Job +from kubernetes.client.models.v1_api_group import V1APIGroup -class TestV2alpha1Job(unittest.TestCase): - """ V2alpha1Job unit test stubs """ +class TestV1APIGroup(unittest.TestCase): + """ V1APIGroup unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testV2alpha1Job(self): + def testV1APIGroup(self): """ - Test V2alpha1Job + Test V1APIGroup """ - model = kubernetes.client.models.v2alpha1_job.V2alpha1Job() + model = kubernetes.client.models.v1_api_group.V1APIGroup() if __name__ == '__main__': diff --git a/kubernetes/test/test_v1_api_group_list.py b/kubernetes/test/test_v1_api_group_list.py new file mode 100644 index 0000000000..b06359d1dd --- /dev/null +++ b/kubernetes/test/test_v1_api_group_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_api_group_list import V1APIGroupList + + +class TestV1APIGroupList(unittest.TestCase): + """ V1APIGroupList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1APIGroupList(self): + """ + Test V1APIGroupList + """ + model = kubernetes.client.models.v1_api_group_list.V1APIGroupList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_api_resource.py b/kubernetes/test/test_v1_api_resource.py new file mode 100644 index 0000000000..e5701532a7 --- /dev/null +++ b/kubernetes/test/test_v1_api_resource.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_api_resource import V1APIResource + + +class TestV1APIResource(unittest.TestCase): + """ V1APIResource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1APIResource(self): + """ + Test V1APIResource + """ + model = kubernetes.client.models.v1_api_resource.V1APIResource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_api_resource_list.py b/kubernetes/test/test_v1_api_resource_list.py new file mode 100644 index 0000000000..a72c2ead13 --- /dev/null +++ b/kubernetes/test/test_v1_api_resource_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_api_resource_list import V1APIResourceList + + +class TestV1APIResourceList(unittest.TestCase): + """ V1APIResourceList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1APIResourceList(self): + """ + Test V1APIResourceList + """ + model = kubernetes.client.models.v1_api_resource_list.V1APIResourceList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_api_versions.py b/kubernetes/test/test_v1_api_versions.py new file mode 100644 index 0000000000..8e9d9eb20f --- /dev/null +++ b/kubernetes/test/test_v1_api_versions.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_api_versions import V1APIVersions + + +class TestV1APIVersions(unittest.TestCase): + """ V1APIVersions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1APIVersions(self): + """ + Test V1APIVersions + """ + model = kubernetes.client.models.v1_api_versions.V1APIVersions() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_attached_volume.py b/kubernetes/test/test_v1_attached_volume.py index 0ebbd5d03f..0f5fab9d40 100644 --- a/kubernetes/test/test_v1_attached_volume.py +++ b/kubernetes/test/test_v1_attached_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py b/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py index 3ea4c91287..2ee1a2b582 100644 --- a/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py +++ b/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_azure_disk_volume_source.py b/kubernetes/test/test_v1_azure_disk_volume_source.py index 3d6a2c4b98..7073912f0c 100644 --- a/kubernetes/test/test_v1_azure_disk_volume_source.py +++ b/kubernetes/test/test_v1_azure_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_azure_file_volume_source.py b/kubernetes/test/test_v1_azure_file_volume_source.py index a3e8b9951c..e8b52db20c 100644 --- a/kubernetes/test/test_v1_azure_file_volume_source.py +++ b/kubernetes/test/test_v1_azure_file_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_binding.py b/kubernetes/test/test_v1_binding.py index 06ebd8b41f..bdc7082f7b 100644 --- a/kubernetes/test/test_v1_binding.py +++ b/kubernetes/test/test_v1_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_capabilities.py b/kubernetes/test/test_v1_capabilities.py index 9036e27130..cbbb8423c2 100644 --- a/kubernetes/test/test_v1_capabilities.py +++ b/kubernetes/test/test_v1_capabilities.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_ceph_fs_volume_source.py b/kubernetes/test/test_v1_ceph_fs_volume_source.py index 25c26d5968..28720d0af2 100644 --- a/kubernetes/test/test_v1_ceph_fs_volume_source.py +++ b/kubernetes/test/test_v1_ceph_fs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_cinder_volume_source.py b/kubernetes/test/test_v1_cinder_volume_source.py index 4cfe21b3fc..fcc97d9e2f 100644 --- a/kubernetes/test/test_v1_cinder_volume_source.py +++ b/kubernetes/test/test_v1_cinder_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_component_condition.py b/kubernetes/test/test_v1_component_condition.py index d96444c16a..346528d136 100644 --- a/kubernetes/test/test_v1_component_condition.py +++ b/kubernetes/test/test_v1_component_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_component_status.py b/kubernetes/test/test_v1_component_status.py index 04bd26e7be..175fcbca53 100644 --- a/kubernetes/test/test_v1_component_status.py +++ b/kubernetes/test/test_v1_component_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_component_status_list.py b/kubernetes/test/test_v1_component_status_list.py index 800f30b980..594c82dd20 100644 --- a/kubernetes/test/test_v1_component_status_list.py +++ b/kubernetes/test/test_v1_component_status_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_config_map.py b/kubernetes/test/test_v1_config_map.py index edf0c79e5b..2b4e8c6d1e 100644 --- a/kubernetes/test/test_v1_config_map.py +++ b/kubernetes/test/test_v1_config_map.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_config_map_env_source.py b/kubernetes/test/test_v1_config_map_env_source.py new file mode 100644 index 0000000000..712446a1c0 --- /dev/null +++ b/kubernetes/test/test_v1_config_map_env_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_config_map_env_source import V1ConfigMapEnvSource + + +class TestV1ConfigMapEnvSource(unittest.TestCase): + """ V1ConfigMapEnvSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ConfigMapEnvSource(self): + """ + Test V1ConfigMapEnvSource + """ + model = kubernetes.client.models.v1_config_map_env_source.V1ConfigMapEnvSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_config_map_key_selector.py b/kubernetes/test/test_v1_config_map_key_selector.py index 7994ae2b20..d28ea5ccf0 100644 --- a/kubernetes/test/test_v1_config_map_key_selector.py +++ b/kubernetes/test/test_v1_config_map_key_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_config_map_list.py b/kubernetes/test/test_v1_config_map_list.py index f87961d912..7808c77405 100644 --- a/kubernetes/test/test_v1_config_map_list.py +++ b/kubernetes/test/test_v1_config_map_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_config_map_projection.py b/kubernetes/test/test_v1_config_map_projection.py new file mode 100644 index 0000000000..14960924e6 --- /dev/null +++ b/kubernetes/test/test_v1_config_map_projection.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_config_map_projection import V1ConfigMapProjection + + +class TestV1ConfigMapProjection(unittest.TestCase): + """ V1ConfigMapProjection unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ConfigMapProjection(self): + """ + Test V1ConfigMapProjection + """ + model = kubernetes.client.models.v1_config_map_projection.V1ConfigMapProjection() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_config_map_volume_source.py b/kubernetes/test/test_v1_config_map_volume_source.py index d04e8b3264..7706508909 100644 --- a/kubernetes/test/test_v1_config_map_volume_source.py +++ b/kubernetes/test/test_v1_config_map_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container.py b/kubernetes/test/test_v1_container.py index 9d24b9315e..141342b6f6 100644 --- a/kubernetes/test/test_v1_container.py +++ b/kubernetes/test/test_v1_container.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container_image.py b/kubernetes/test/test_v1_container_image.py index 7020654388..b15a61b474 100644 --- a/kubernetes/test/test_v1_container_image.py +++ b/kubernetes/test/test_v1_container_image.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container_port.py b/kubernetes/test/test_v1_container_port.py index 347b64aa65..61f901953f 100644 --- a/kubernetes/test/test_v1_container_port.py +++ b/kubernetes/test/test_v1_container_port.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container_state.py b/kubernetes/test/test_v1_container_state.py index 1711f97571..eebf433d83 100644 --- a/kubernetes/test/test_v1_container_state.py +++ b/kubernetes/test/test_v1_container_state.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container_state_running.py b/kubernetes/test/test_v1_container_state_running.py index 3e84e370cb..c9d4b285e3 100644 --- a/kubernetes/test/test_v1_container_state_running.py +++ b/kubernetes/test/test_v1_container_state_running.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container_state_terminated.py b/kubernetes/test/test_v1_container_state_terminated.py index 2a29c94b9b..4e58fcf386 100644 --- a/kubernetes/test/test_v1_container_state_terminated.py +++ b/kubernetes/test/test_v1_container_state_terminated.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container_state_waiting.py b/kubernetes/test/test_v1_container_state_waiting.py index c762e685db..36a894ad89 100644 --- a/kubernetes/test/test_v1_container_state_waiting.py +++ b/kubernetes/test/test_v1_container_state_waiting.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_container_status.py b/kubernetes/test/test_v1_container_status.py index 53581b229d..aa8525c11f 100644 --- a/kubernetes/test/test_v1_container_status.py +++ b/kubernetes/test/test_v1_container_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_cross_version_object_reference.py b/kubernetes/test/test_v1_cross_version_object_reference.py index 2c418199ac..8eb532ec1c 100644 --- a/kubernetes/test/test_v1_cross_version_object_reference.py +++ b/kubernetes/test/test_v1_cross_version_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_daemon_endpoint.py b/kubernetes/test/test_v1_daemon_endpoint.py index ae7537d7f4..4ed78c44f0 100644 --- a/kubernetes/test/test_v1_daemon_endpoint.py +++ b/kubernetes/test/test_v1_daemon_endpoint.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_delete_options.py b/kubernetes/test/test_v1_delete_options.py index f0248d6464..326aa257e2 100644 --- a/kubernetes/test/test_v1_delete_options.py +++ b/kubernetes/test/test_v1_delete_options.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_unversioned_api_versions.py b/kubernetes/test/test_v1_downward_api_projection.py similarity index 56% rename from kubernetes/test/test_unversioned_api_versions.py rename to kubernetes/test/test_v1_downward_api_projection.py index 5a9e17719a..f59dca1c1b 100644 --- a/kubernetes/test/test_unversioned_api_versions.py +++ b/kubernetes/test/test_v1_downward_api_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.unversioned_api_versions import UnversionedAPIVersions +from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection -class TestUnversionedAPIVersions(unittest.TestCase): - """ UnversionedAPIVersions unit test stubs """ +class TestV1DownwardAPIProjection(unittest.TestCase): + """ V1DownwardAPIProjection unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testUnversionedAPIVersions(self): + def testV1DownwardAPIProjection(self): """ - Test UnversionedAPIVersions + Test V1DownwardAPIProjection """ - model = kubernetes.client.models.unversioned_api_versions.UnversionedAPIVersions() + model = kubernetes.client.models.v1_downward_api_projection.V1DownwardAPIProjection() if __name__ == '__main__': diff --git a/kubernetes/test/test_v1_downward_api_volume_file.py b/kubernetes/test/test_v1_downward_api_volume_file.py index 687116be02..1d633b57bc 100644 --- a/kubernetes/test/test_v1_downward_api_volume_file.py +++ b/kubernetes/test/test_v1_downward_api_volume_file.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_downward_api_volume_source.py b/kubernetes/test/test_v1_downward_api_volume_source.py index 1386a1fb0c..edbfdff395 100644 --- a/kubernetes/test/test_v1_downward_api_volume_source.py +++ b/kubernetes/test/test_v1_downward_api_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_empty_dir_volume_source.py b/kubernetes/test/test_v1_empty_dir_volume_source.py index aac5422787..f2dbdc5a1f 100644 --- a/kubernetes/test/test_v1_empty_dir_volume_source.py +++ b/kubernetes/test/test_v1_empty_dir_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_endpoint_address.py b/kubernetes/test/test_v1_endpoint_address.py index e8857b71f7..c915e5f04a 100644 --- a/kubernetes/test/test_v1_endpoint_address.py +++ b/kubernetes/test/test_v1_endpoint_address.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_endpoint_port.py b/kubernetes/test/test_v1_endpoint_port.py index 331f75d11a..f04876194f 100644 --- a/kubernetes/test/test_v1_endpoint_port.py +++ b/kubernetes/test/test_v1_endpoint_port.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_endpoint_subset.py b/kubernetes/test/test_v1_endpoint_subset.py index b3a7c77f24..a13f8a12a0 100644 --- a/kubernetes/test/test_v1_endpoint_subset.py +++ b/kubernetes/test/test_v1_endpoint_subset.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_endpoints.py b/kubernetes/test/test_v1_endpoints.py index 7687dcf6d0..81b99fc5ef 100644 --- a/kubernetes/test/test_v1_endpoints.py +++ b/kubernetes/test/test_v1_endpoints.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_endpoints_list.py b/kubernetes/test/test_v1_endpoints_list.py index 2a1f3ad381..de345226ed 100644 --- a/kubernetes/test/test_v1_endpoints_list.py +++ b/kubernetes/test/test_v1_endpoints_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_env_from_source.py b/kubernetes/test/test_v1_env_from_source.py new file mode 100644 index 0000000000..7f5f0e0ee9 --- /dev/null +++ b/kubernetes/test/test_v1_env_from_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_env_from_source import V1EnvFromSource + + +class TestV1EnvFromSource(unittest.TestCase): + """ V1EnvFromSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EnvFromSource(self): + """ + Test V1EnvFromSource + """ + model = kubernetes.client.models.v1_env_from_source.V1EnvFromSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_env_var.py b/kubernetes/test/test_v1_env_var.py index 131050bfac..c56c6d7046 100644 --- a/kubernetes/test/test_v1_env_var.py +++ b/kubernetes/test/test_v1_env_var.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_env_var_source.py b/kubernetes/test/test_v1_env_var_source.py index 7364c6b661..e6a573109a 100644 --- a/kubernetes/test/test_v1_env_var_source.py +++ b/kubernetes/test/test_v1_env_var_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_event.py b/kubernetes/test/test_v1_event.py index 44be4bc447..f081e64be6 100644 --- a/kubernetes/test/test_v1_event.py +++ b/kubernetes/test/test_v1_event.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_event_list.py b/kubernetes/test/test_v1_event_list.py index 7710366cb2..953e5e95ac 100644 --- a/kubernetes/test/test_v1_event_list.py +++ b/kubernetes/test/test_v1_event_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_event_source.py b/kubernetes/test/test_v1_event_source.py index ec13afd729..b6b1f37868 100644 --- a/kubernetes/test/test_v1_event_source.py +++ b/kubernetes/test/test_v1_event_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_exec_action.py b/kubernetes/test/test_v1_exec_action.py index ba8dfd7b4d..bb53d48452 100644 --- a/kubernetes/test/test_v1_exec_action.py +++ b/kubernetes/test/test_v1_exec_action.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_fc_volume_source.py b/kubernetes/test/test_v1_fc_volume_source.py index 5095b3bcc7..0b16286d87 100644 --- a/kubernetes/test/test_v1_fc_volume_source.py +++ b/kubernetes/test/test_v1_fc_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_flex_volume_source.py b/kubernetes/test/test_v1_flex_volume_source.py index 4714d2fef2..51969d83b2 100644 --- a/kubernetes/test/test_v1_flex_volume_source.py +++ b/kubernetes/test/test_v1_flex_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_flocker_volume_source.py b/kubernetes/test/test_v1_flocker_volume_source.py index 374c8cb5c4..4ac743f148 100644 --- a/kubernetes/test/test_v1_flocker_volume_source.py +++ b/kubernetes/test/test_v1_flocker_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py b/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py index 11e44efa39..af3230c334 100644 --- a/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py +++ b/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_git_repo_volume_source.py b/kubernetes/test/test_v1_git_repo_volume_source.py index 07f4803d63..ec5ee25c9d 100644 --- a/kubernetes/test/test_v1_git_repo_volume_source.py +++ b/kubernetes/test/test_v1_git_repo_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_glusterfs_volume_source.py b/kubernetes/test/test_v1_glusterfs_volume_source.py index d8b1d6d830..c2bea49da6 100644 --- a/kubernetes/test/test_v1_glusterfs_volume_source.py +++ b/kubernetes/test/test_v1_glusterfs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_group_version_for_discovery.py b/kubernetes/test/test_v1_group_version_for_discovery.py new file mode 100644 index 0000000000..5036de6df2 --- /dev/null +++ b/kubernetes/test/test_v1_group_version_for_discovery.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_group_version_for_discovery import V1GroupVersionForDiscovery + + +class TestV1GroupVersionForDiscovery(unittest.TestCase): + """ V1GroupVersionForDiscovery unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1GroupVersionForDiscovery(self): + """ + Test V1GroupVersionForDiscovery + """ + model = kubernetes.client.models.v1_group_version_for_discovery.V1GroupVersionForDiscovery() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_handler.py b/kubernetes/test/test_v1_handler.py index 426a703043..7ffc2542ab 100644 --- a/kubernetes/test/test_v1_handler.py +++ b/kubernetes/test/test_v1_handler.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler.py index 1f3e37cbd1..c05b09e46b 100644 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler.py +++ b/kubernetes/test/test_v1_horizontal_pod_autoscaler.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py index 101d33bce1..a2ce5ce2d9 100644 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py +++ b/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py index e2d6cb6c76..72501ad32d 100644 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py index 3ad21ba695..b66578a589 100644 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_host_path_volume_source.py b/kubernetes/test/test_v1_host_path_volume_source.py index 55ee263307..87a56c80de 100644 --- a/kubernetes/test/test_v1_host_path_volume_source.py +++ b/kubernetes/test/test_v1_host_path_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_http_get_action.py b/kubernetes/test/test_v1_http_get_action.py index 0d79263717..99ff1f348c 100644 --- a/kubernetes/test/test_v1_http_get_action.py +++ b/kubernetes/test/test_v1_http_get_action.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_http_header.py b/kubernetes/test/test_v1_http_header.py index ec677f7c2d..7be8f703ec 100644 --- a/kubernetes/test/test_v1_http_header.py +++ b/kubernetes/test/test_v1_http_header.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_iscsi_volume_source.py b/kubernetes/test/test_v1_iscsi_volume_source.py index bc932fdc09..b5b7dbd200 100644 --- a/kubernetes/test/test_v1_iscsi_volume_source.py +++ b/kubernetes/test/test_v1_iscsi_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_job.py b/kubernetes/test/test_v1_job.py index fae1ad0e1b..2343464943 100644 --- a/kubernetes/test/test_v1_job.py +++ b/kubernetes/test/test_v1_job.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_job_condition.py b/kubernetes/test/test_v1_job_condition.py index 5e3cf6ecb3..fa53eb4e9e 100644 --- a/kubernetes/test/test_v1_job_condition.py +++ b/kubernetes/test/test_v1_job_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_job_list.py b/kubernetes/test/test_v1_job_list.py index 2971c17f2e..6bd94a703d 100644 --- a/kubernetes/test/test_v1_job_list.py +++ b/kubernetes/test/test_v1_job_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_job_spec.py b/kubernetes/test/test_v1_job_spec.py index f90ffea5bd..47293a19b5 100644 --- a/kubernetes/test/test_v1_job_spec.py +++ b/kubernetes/test/test_v1_job_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_job_status.py b/kubernetes/test/test_v1_job_status.py index e5ce8473bd..f929582f97 100644 --- a/kubernetes/test/test_v1_job_status.py +++ b/kubernetes/test/test_v1_job_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_key_to_path.py b/kubernetes/test/test_v1_key_to_path.py index aef3c4c995..764d5b4d91 100644 --- a/kubernetes/test/test_v1_key_to_path.py +++ b/kubernetes/test/test_v1_key_to_path.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_job_list.py b/kubernetes/test/test_v1_label_selector.py similarity index 61% rename from kubernetes/test/test_v1beta1_job_list.py rename to kubernetes/test/test_v1_label_selector.py index e5dbf3f939..0e37c2f622 100644 --- a/kubernetes/test/test_v1beta1_job_list.py +++ b/kubernetes/test/test_v1_label_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_job_list import V1beta1JobList +from kubernetes.client.models.v1_label_selector import V1LabelSelector -class TestV1beta1JobList(unittest.TestCase): - """ V1beta1JobList unit test stubs """ +class TestV1LabelSelector(unittest.TestCase): + """ V1LabelSelector unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testV1beta1JobList(self): + def testV1LabelSelector(self): """ - Test V1beta1JobList + Test V1LabelSelector """ - model = kubernetes.client.models.v1beta1_job_list.V1beta1JobList() + model = kubernetes.client.models.v1_label_selector.V1LabelSelector() if __name__ == '__main__': diff --git a/kubernetes/test/test_v1_label_selector_requirement.py b/kubernetes/test/test_v1_label_selector_requirement.py new file mode 100644 index 0000000000..e1b8368482 --- /dev/null +++ b/kubernetes/test/test_v1_label_selector_requirement.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_label_selector_requirement import V1LabelSelectorRequirement + + +class TestV1LabelSelectorRequirement(unittest.TestCase): + """ V1LabelSelectorRequirement unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LabelSelectorRequirement(self): + """ + Test V1LabelSelectorRequirement + """ + model = kubernetes.client.models.v1_label_selector_requirement.V1LabelSelectorRequirement() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_lifecycle.py b/kubernetes/test/test_v1_lifecycle.py index 1bedf8c7b1..ebcd151564 100644 --- a/kubernetes/test/test_v1_lifecycle.py +++ b/kubernetes/test/test_v1_lifecycle.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_limit_range.py b/kubernetes/test/test_v1_limit_range.py index 9aa1cca1f1..c1fc4e80b6 100644 --- a/kubernetes/test/test_v1_limit_range.py +++ b/kubernetes/test/test_v1_limit_range.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_limit_range_item.py b/kubernetes/test/test_v1_limit_range_item.py index e6ecdaac11..cb0ae5938c 100644 --- a/kubernetes/test/test_v1_limit_range_item.py +++ b/kubernetes/test/test_v1_limit_range_item.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_limit_range_list.py b/kubernetes/test/test_v1_limit_range_list.py index c87dd9f25d..e16f5c3768 100644 --- a/kubernetes/test/test_v1_limit_range_list.py +++ b/kubernetes/test/test_v1_limit_range_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_limit_range_spec.py b/kubernetes/test/test_v1_limit_range_spec.py index 551866df50..373bfded0c 100644 --- a/kubernetes/test/test_v1_limit_range_spec.py +++ b/kubernetes/test/test_v1_limit_range_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_scale.py b/kubernetes/test/test_v1_list_meta.py similarity index 62% rename from kubernetes/test/test_v1beta1_scale.py rename to kubernetes/test/test_v1_list_meta.py index a5f245f6ef..6c47801fcf 100644 --- a/kubernetes/test/test_v1beta1_scale.py +++ b/kubernetes/test/test_v1_list_meta.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_scale import V1beta1Scale +from kubernetes.client.models.v1_list_meta import V1ListMeta -class TestV1beta1Scale(unittest.TestCase): - """ V1beta1Scale unit test stubs """ +class TestV1ListMeta(unittest.TestCase): + """ V1ListMeta unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testV1beta1Scale(self): + def testV1ListMeta(self): """ - Test V1beta1Scale + Test V1ListMeta """ - model = kubernetes.client.models.v1beta1_scale.V1beta1Scale() + model = kubernetes.client.models.v1_list_meta.V1ListMeta() if __name__ == '__main__': diff --git a/kubernetes/test/test_v1_load_balancer_ingress.py b/kubernetes/test/test_v1_load_balancer_ingress.py index 22d6b82649..2d08ec88f1 100644 --- a/kubernetes/test/test_v1_load_balancer_ingress.py +++ b/kubernetes/test/test_v1_load_balancer_ingress.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_load_balancer_status.py b/kubernetes/test/test_v1_load_balancer_status.py index c2790f52b5..d05c3de120 100644 --- a/kubernetes/test/test_v1_load_balancer_status.py +++ b/kubernetes/test/test_v1_load_balancer_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_local_object_reference.py b/kubernetes/test/test_v1_local_object_reference.py index 58f07270a7..a237996200 100644 --- a/kubernetes/test/test_v1_local_object_reference.py +++ b/kubernetes/test/test_v1_local_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_local_subject_access_review.py b/kubernetes/test/test_v1_local_subject_access_review.py new file mode 100644 index 0000000000..ab68171aa5 --- /dev/null +++ b/kubernetes/test/test_v1_local_subject_access_review.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_local_subject_access_review import V1LocalSubjectAccessReview + + +class TestV1LocalSubjectAccessReview(unittest.TestCase): + """ V1LocalSubjectAccessReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LocalSubjectAccessReview(self): + """ + Test V1LocalSubjectAccessReview + """ + model = kubernetes.client.models.v1_local_subject_access_review.V1LocalSubjectAccessReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_namespace.py b/kubernetes/test/test_v1_namespace.py index 43a71ab67f..823c57fee8 100644 --- a/kubernetes/test/test_v1_namespace.py +++ b/kubernetes/test/test_v1_namespace.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_namespace_list.py b/kubernetes/test/test_v1_namespace_list.py index f866f47b69..c5a11124c4 100644 --- a/kubernetes/test/test_v1_namespace_list.py +++ b/kubernetes/test/test_v1_namespace_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_namespace_spec.py b/kubernetes/test/test_v1_namespace_spec.py index b5868c5264..32e56ca13c 100644 --- a/kubernetes/test/test_v1_namespace_spec.py +++ b/kubernetes/test/test_v1_namespace_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_namespace_status.py b/kubernetes/test/test_v1_namespace_status.py index 317fd77761..2322dc0772 100644 --- a/kubernetes/test/test_v1_namespace_status.py +++ b/kubernetes/test/test_v1_namespace_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_nfs_volume_source.py b/kubernetes/test/test_v1_nfs_volume_source.py index 39b61c2ca9..6f0c2d7fdb 100644 --- a/kubernetes/test/test_v1_nfs_volume_source.py +++ b/kubernetes/test/test_v1_nfs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node.py b/kubernetes/test/test_v1_node.py index 9dd445a655..6400f2e2c1 100644 --- a/kubernetes/test/test_v1_node.py +++ b/kubernetes/test/test_v1_node.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node_address.py b/kubernetes/test/test_v1_node_address.py index 3767553294..a1d9d98bbe 100644 --- a/kubernetes/test/test_v1_node_address.py +++ b/kubernetes/test/test_v1_node_address.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node_affinity.py b/kubernetes/test/test_v1_node_affinity.py new file mode 100644 index 0000000000..6bbd72e8ce --- /dev/null +++ b/kubernetes/test/test_v1_node_affinity.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_node_affinity import V1NodeAffinity + + +class TestV1NodeAffinity(unittest.TestCase): + """ V1NodeAffinity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NodeAffinity(self): + """ + Test V1NodeAffinity + """ + model = kubernetes.client.models.v1_node_affinity.V1NodeAffinity() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_node_condition.py b/kubernetes/test/test_v1_node_condition.py index 149c99a183..62c7e310f4 100644 --- a/kubernetes/test/test_v1_node_condition.py +++ b/kubernetes/test/test_v1_node_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node_daemon_endpoints.py b/kubernetes/test/test_v1_node_daemon_endpoints.py index f2274d3a81..5d99852c65 100644 --- a/kubernetes/test/test_v1_node_daemon_endpoints.py +++ b/kubernetes/test/test_v1_node_daemon_endpoints.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node_list.py b/kubernetes/test/test_v1_node_list.py index 522da1723a..502c324a8f 100644 --- a/kubernetes/test/test_v1_node_list.py +++ b/kubernetes/test/test_v1_node_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node_selector.py b/kubernetes/test/test_v1_node_selector.py new file mode 100644 index 0000000000..e5e82eb927 --- /dev/null +++ b/kubernetes/test/test_v1_node_selector.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_node_selector import V1NodeSelector + + +class TestV1NodeSelector(unittest.TestCase): + """ V1NodeSelector unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NodeSelector(self): + """ + Test V1NodeSelector + """ + model = kubernetes.client.models.v1_node_selector.V1NodeSelector() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_node_selector_requirement.py b/kubernetes/test/test_v1_node_selector_requirement.py new file mode 100644 index 0000000000..7716e83bca --- /dev/null +++ b/kubernetes/test/test_v1_node_selector_requirement.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_node_selector_requirement import V1NodeSelectorRequirement + + +class TestV1NodeSelectorRequirement(unittest.TestCase): + """ V1NodeSelectorRequirement unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NodeSelectorRequirement(self): + """ + Test V1NodeSelectorRequirement + """ + model = kubernetes.client.models.v1_node_selector_requirement.V1NodeSelectorRequirement() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_node_selector_term.py b/kubernetes/test/test_v1_node_selector_term.py new file mode 100644 index 0000000000..c5c7977e1e --- /dev/null +++ b/kubernetes/test/test_v1_node_selector_term.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_node_selector_term import V1NodeSelectorTerm + + +class TestV1NodeSelectorTerm(unittest.TestCase): + """ V1NodeSelectorTerm unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NodeSelectorTerm(self): + """ + Test V1NodeSelectorTerm + """ + model = kubernetes.client.models.v1_node_selector_term.V1NodeSelectorTerm() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_node_spec.py b/kubernetes/test/test_v1_node_spec.py index 5fd78e2d05..5c646a0aa9 100644 --- a/kubernetes/test/test_v1_node_spec.py +++ b/kubernetes/test/test_v1_node_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node_status.py b/kubernetes/test/test_v1_node_status.py index 04e79d2d34..64e633cb7d 100644 --- a/kubernetes/test/test_v1_node_status.py +++ b/kubernetes/test/test_v1_node_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_node_system_info.py b/kubernetes/test/test_v1_node_system_info.py index f7e5b2b04d..04260365e9 100644 --- a/kubernetes/test/test_v1_node_system_info.py +++ b/kubernetes/test/test_v1_node_system_info.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_unversioned_api_resource.py b/kubernetes/test/test_v1_non_resource_attributes.py similarity index 56% rename from kubernetes/test/test_unversioned_api_resource.py rename to kubernetes/test/test_v1_non_resource_attributes.py index 18840ed645..8d1c9b4f6b 100644 --- a/kubernetes/test/test_unversioned_api_resource.py +++ b/kubernetes/test/test_v1_non_resource_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.unversioned_api_resource import UnversionedAPIResource +from kubernetes.client.models.v1_non_resource_attributes import V1NonResourceAttributes -class TestUnversionedAPIResource(unittest.TestCase): - """ UnversionedAPIResource unit test stubs """ +class TestV1NonResourceAttributes(unittest.TestCase): + """ V1NonResourceAttributes unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testUnversionedAPIResource(self): + def testV1NonResourceAttributes(self): """ - Test UnversionedAPIResource + Test V1NonResourceAttributes """ - model = kubernetes.client.models.unversioned_api_resource.UnversionedAPIResource() + model = kubernetes.client.models.v1_non_resource_attributes.V1NonResourceAttributes() if __name__ == '__main__': diff --git a/kubernetes/test/test_v1_object_field_selector.py b/kubernetes/test/test_v1_object_field_selector.py index 0ebc3a6b1a..beffa3348a 100644 --- a/kubernetes/test/test_v1_object_field_selector.py +++ b/kubernetes/test/test_v1_object_field_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_object_meta.py b/kubernetes/test/test_v1_object_meta.py index 804472b493..3ac4f8bb1b 100644 --- a/kubernetes/test/test_v1_object_meta.py +++ b/kubernetes/test/test_v1_object_meta.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_object_reference.py b/kubernetes/test/test_v1_object_reference.py index 0cb590b541..d2f463f4a4 100644 --- a/kubernetes/test/test_v1_object_reference.py +++ b/kubernetes/test/test_v1_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_owner_reference.py b/kubernetes/test/test_v1_owner_reference.py index fcd382666c..2c39c17398 100644 --- a/kubernetes/test/test_v1_owner_reference.py +++ b/kubernetes/test/test_v1_owner_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume.py b/kubernetes/test/test_v1_persistent_volume.py index 0335fcb2bd..c251aa4ffa 100644 --- a/kubernetes/test/test_v1_persistent_volume.py +++ b/kubernetes/test/test_v1_persistent_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_claim.py b/kubernetes/test/test_v1_persistent_volume_claim.py index 6a276797a6..688fa0c1a9 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim.py +++ b/kubernetes/test/test_v1_persistent_volume_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_claim_list.py b/kubernetes/test/test_v1_persistent_volume_claim_list.py index 2f096d187b..b3dd6d80b4 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim_list.py +++ b/kubernetes/test/test_v1_persistent_volume_claim_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_claim_spec.py b/kubernetes/test/test_v1_persistent_volume_claim_spec.py index 57677b8857..b1ba3cf4fe 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim_spec.py +++ b/kubernetes/test/test_v1_persistent_volume_claim_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_claim_status.py b/kubernetes/test/test_v1_persistent_volume_claim_status.py index 38782ad7bc..676602c0e2 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim_status.py +++ b/kubernetes/test/test_v1_persistent_volume_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py b/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py index 6babac0ace..b040d5fb24 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py +++ b/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_list.py b/kubernetes/test/test_v1_persistent_volume_list.py index c795c487a0..6b4826f89f 100644 --- a/kubernetes/test/test_v1_persistent_volume_list.py +++ b/kubernetes/test/test_v1_persistent_volume_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_spec.py b/kubernetes/test/test_v1_persistent_volume_spec.py index 06df4de564..ae7fc05a93 100644 --- a/kubernetes/test/test_v1_persistent_volume_spec.py +++ b/kubernetes/test/test_v1_persistent_volume_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_persistent_volume_status.py b/kubernetes/test/test_v1_persistent_volume_status.py index e8e1615734..feaae24c1b 100644 --- a/kubernetes/test/test_v1_persistent_volume_status.py +++ b/kubernetes/test/test_v1_persistent_volume_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py b/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py index 026649106a..b7c410615f 100644 --- a/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py +++ b/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod.py b/kubernetes/test/test_v1_pod.py index 4fee9f30e1..1f6e1edf4e 100644 --- a/kubernetes/test/test_v1_pod.py +++ b/kubernetes/test/test_v1_pod.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_affinity.py b/kubernetes/test/test_v1_pod_affinity.py new file mode 100644 index 0000000000..8baa532cbb --- /dev/null +++ b/kubernetes/test/test_v1_pod_affinity.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_pod_affinity import V1PodAffinity + + +class TestV1PodAffinity(unittest.TestCase): + """ V1PodAffinity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodAffinity(self): + """ + Test V1PodAffinity + """ + model = kubernetes.client.models.v1_pod_affinity.V1PodAffinity() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_pod_affinity_term.py b/kubernetes/test/test_v1_pod_affinity_term.py new file mode 100644 index 0000000000..e30b75c61e --- /dev/null +++ b/kubernetes/test/test_v1_pod_affinity_term.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_pod_affinity_term import V1PodAffinityTerm + + +class TestV1PodAffinityTerm(unittest.TestCase): + """ V1PodAffinityTerm unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodAffinityTerm(self): + """ + Test V1PodAffinityTerm + """ + model = kubernetes.client.models.v1_pod_affinity_term.V1PodAffinityTerm() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_pod_anti_affinity.py b/kubernetes/test/test_v1_pod_anti_affinity.py new file mode 100644 index 0000000000..3ee285fa51 --- /dev/null +++ b/kubernetes/test/test_v1_pod_anti_affinity.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_pod_anti_affinity import V1PodAntiAffinity + + +class TestV1PodAntiAffinity(unittest.TestCase): + """ V1PodAntiAffinity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PodAntiAffinity(self): + """ + Test V1PodAntiAffinity + """ + model = kubernetes.client.models.v1_pod_anti_affinity.V1PodAntiAffinity() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_pod_condition.py b/kubernetes/test/test_v1_pod_condition.py index 147b2a071d..121bd2e865 100644 --- a/kubernetes/test/test_v1_pod_condition.py +++ b/kubernetes/test/test_v1_pod_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_list.py b/kubernetes/test/test_v1_pod_list.py index fe7df348f9..90328b9059 100644 --- a/kubernetes/test/test_v1_pod_list.py +++ b/kubernetes/test/test_v1_pod_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_security_context.py b/kubernetes/test/test_v1_pod_security_context.py index b1225ec624..da5ba405b8 100644 --- a/kubernetes/test/test_v1_pod_security_context.py +++ b/kubernetes/test/test_v1_pod_security_context.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_spec.py b/kubernetes/test/test_v1_pod_spec.py index 69772fa4fd..40360710af 100644 --- a/kubernetes/test/test_v1_pod_spec.py +++ b/kubernetes/test/test_v1_pod_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_status.py b/kubernetes/test/test_v1_pod_status.py index 024d25bdac..181eb5b9a3 100644 --- a/kubernetes/test/test_v1_pod_status.py +++ b/kubernetes/test/test_v1_pod_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_template.py b/kubernetes/test/test_v1_pod_template.py index 4f39121f2e..d040bbdb16 100644 --- a/kubernetes/test/test_v1_pod_template.py +++ b/kubernetes/test/test_v1_pod_template.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_template_list.py b/kubernetes/test/test_v1_pod_template_list.py index 4cc7233485..40e4b05510 100644 --- a/kubernetes/test/test_v1_pod_template_list.py +++ b/kubernetes/test/test_v1_pod_template_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_pod_template_spec.py b/kubernetes/test/test_v1_pod_template_spec.py index 4c18159c8a..b6b22c2c1d 100644 --- a/kubernetes/test/test_v1_pod_template_spec.py +++ b/kubernetes/test/test_v1_pod_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_portworx_volume_source.py b/kubernetes/test/test_v1_portworx_volume_source.py new file mode 100644 index 0000000000..2bf08a0cc5 --- /dev/null +++ b/kubernetes/test/test_v1_portworx_volume_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_portworx_volume_source import V1PortworxVolumeSource + + +class TestV1PortworxVolumeSource(unittest.TestCase): + """ V1PortworxVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PortworxVolumeSource(self): + """ + Test V1PortworxVolumeSource + """ + model = kubernetes.client.models.v1_portworx_volume_source.V1PortworxVolumeSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_preconditions.py b/kubernetes/test/test_v1_preconditions.py index 1e5f38e977..8262759911 100644 --- a/kubernetes/test/test_v1_preconditions.py +++ b/kubernetes/test/test_v1_preconditions.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_preferred_scheduling_term.py b/kubernetes/test/test_v1_preferred_scheduling_term.py new file mode 100644 index 0000000000..ea444ed7c6 --- /dev/null +++ b/kubernetes/test/test_v1_preferred_scheduling_term.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm + + +class TestV1PreferredSchedulingTerm(unittest.TestCase): + """ V1PreferredSchedulingTerm unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1PreferredSchedulingTerm(self): + """ + Test V1PreferredSchedulingTerm + """ + model = kubernetes.client.models.v1_preferred_scheduling_term.V1PreferredSchedulingTerm() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_probe.py b/kubernetes/test/test_v1_probe.py index bfc0df8e2e..1e0c687f3f 100644 --- a/kubernetes/test/test_v1_probe.py +++ b/kubernetes/test/test_v1_probe.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_projected_volume_source.py b/kubernetes/test/test_v1_projected_volume_source.py new file mode 100644 index 0000000000..eccbf2b53f --- /dev/null +++ b/kubernetes/test/test_v1_projected_volume_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_projected_volume_source import V1ProjectedVolumeSource + + +class TestV1ProjectedVolumeSource(unittest.TestCase): + """ V1ProjectedVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ProjectedVolumeSource(self): + """ + Test V1ProjectedVolumeSource + """ + model = kubernetes.client.models.v1_projected_volume_source.V1ProjectedVolumeSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_quobyte_volume_source.py b/kubernetes/test/test_v1_quobyte_volume_source.py index a02b301568..93d3e7dced 100644 --- a/kubernetes/test/test_v1_quobyte_volume_source.py +++ b/kubernetes/test/test_v1_quobyte_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_rbd_volume_source.py b/kubernetes/test/test_v1_rbd_volume_source.py index 567594f852..691b731421 100644 --- a/kubernetes/test/test_v1_rbd_volume_source.py +++ b/kubernetes/test/test_v1_rbd_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_replication_controller.py b/kubernetes/test/test_v1_replication_controller.py index ec1cc7e5ee..fd18d207dc 100644 --- a/kubernetes/test/test_v1_replication_controller.py +++ b/kubernetes/test/test_v1_replication_controller.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_replication_controller_condition.py b/kubernetes/test/test_v1_replication_controller_condition.py index 17876ace75..0a7d359360 100644 --- a/kubernetes/test/test_v1_replication_controller_condition.py +++ b/kubernetes/test/test_v1_replication_controller_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_replication_controller_list.py b/kubernetes/test/test_v1_replication_controller_list.py index f4332824f9..f8b25a6c19 100644 --- a/kubernetes/test/test_v1_replication_controller_list.py +++ b/kubernetes/test/test_v1_replication_controller_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_replication_controller_spec.py b/kubernetes/test/test_v1_replication_controller_spec.py index 201e30922b..0930a9e541 100644 --- a/kubernetes/test/test_v1_replication_controller_spec.py +++ b/kubernetes/test/test_v1_replication_controller_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_replication_controller_status.py b/kubernetes/test/test_v1_replication_controller_status.py index 08774787dd..d6eb39704a 100644 --- a/kubernetes/test/test_v1_replication_controller_status.py +++ b/kubernetes/test/test_v1_replication_controller_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_unversioned_api_group.py b/kubernetes/test/test_v1_resource_attributes.py similarity index 58% rename from kubernetes/test/test_unversioned_api_group.py rename to kubernetes/test/test_v1_resource_attributes.py index 69dc9c1aed..29cecb59a4 100644 --- a/kubernetes/test/test_unversioned_api_group.py +++ b/kubernetes/test/test_v1_resource_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.unversioned_api_group import UnversionedAPIGroup +from kubernetes.client.models.v1_resource_attributes import V1ResourceAttributes -class TestUnversionedAPIGroup(unittest.TestCase): - """ UnversionedAPIGroup unit test stubs """ +class TestV1ResourceAttributes(unittest.TestCase): + """ V1ResourceAttributes unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testUnversionedAPIGroup(self): + def testV1ResourceAttributes(self): """ - Test UnversionedAPIGroup + Test V1ResourceAttributes """ - model = kubernetes.client.models.unversioned_api_group.UnversionedAPIGroup() + model = kubernetes.client.models.v1_resource_attributes.V1ResourceAttributes() if __name__ == '__main__': diff --git a/kubernetes/test/test_v1_resource_field_selector.py b/kubernetes/test/test_v1_resource_field_selector.py index cf9382a90d..e54d616d76 100644 --- a/kubernetes/test/test_v1_resource_field_selector.py +++ b/kubernetes/test/test_v1_resource_field_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_resource_quota.py b/kubernetes/test/test_v1_resource_quota.py index 46b36a9965..87896fd276 100644 --- a/kubernetes/test/test_v1_resource_quota.py +++ b/kubernetes/test/test_v1_resource_quota.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_resource_quota_list.py b/kubernetes/test/test_v1_resource_quota_list.py index a7228b47af..b45395d38a 100644 --- a/kubernetes/test/test_v1_resource_quota_list.py +++ b/kubernetes/test/test_v1_resource_quota_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_resource_quota_spec.py b/kubernetes/test/test_v1_resource_quota_spec.py index 91fd770937..e5c9b8c630 100644 --- a/kubernetes/test/test_v1_resource_quota_spec.py +++ b/kubernetes/test/test_v1_resource_quota_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_resource_quota_status.py b/kubernetes/test/test_v1_resource_quota_status.py index 89714e5ea2..623bd17bc4 100644 --- a/kubernetes/test/test_v1_resource_quota_status.py +++ b/kubernetes/test/test_v1_resource_quota_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_resource_requirements.py b/kubernetes/test/test_v1_resource_requirements.py index f8705d9a2b..d122fb87c9 100644 --- a/kubernetes/test/test_v1_resource_requirements.py +++ b/kubernetes/test/test_v1_resource_requirements.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_scale.py b/kubernetes/test/test_v1_scale.py index 6352d59bcf..64a534d48c 100644 --- a/kubernetes/test/test_v1_scale.py +++ b/kubernetes/test/test_v1_scale.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_scale_io_volume_source.py b/kubernetes/test/test_v1_scale_io_volume_source.py new file mode 100644 index 0000000000..17415369b5 --- /dev/null +++ b/kubernetes/test/test_v1_scale_io_volume_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_scale_io_volume_source import V1ScaleIOVolumeSource + + +class TestV1ScaleIOVolumeSource(unittest.TestCase): + """ V1ScaleIOVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ScaleIOVolumeSource(self): + """ + Test V1ScaleIOVolumeSource + """ + model = kubernetes.client.models.v1_scale_io_volume_source.V1ScaleIOVolumeSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_scale_spec.py b/kubernetes/test/test_v1_scale_spec.py index 7ec2112d0a..44a6b904c3 100644 --- a/kubernetes/test/test_v1_scale_spec.py +++ b/kubernetes/test/test_v1_scale_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_scale_status.py b/kubernetes/test/test_v1_scale_status.py index d8b75a66ce..44d09ae333 100644 --- a/kubernetes/test/test_v1_scale_status.py +++ b/kubernetes/test/test_v1_scale_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_se_linux_options.py b/kubernetes/test/test_v1_se_linux_options.py index 8a4b133e3f..e68ba8d8aa 100644 --- a/kubernetes/test/test_v1_se_linux_options.py +++ b/kubernetes/test/test_v1_se_linux_options.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_secret.py b/kubernetes/test/test_v1_secret.py index fc304cd5a4..3755dc45e2 100644 --- a/kubernetes/test/test_v1_secret.py +++ b/kubernetes/test/test_v1_secret.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_secret_env_source.py b/kubernetes/test/test_v1_secret_env_source.py new file mode 100644 index 0000000000..b7d005ccd4 --- /dev/null +++ b/kubernetes/test/test_v1_secret_env_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_secret_env_source import V1SecretEnvSource + + +class TestV1SecretEnvSource(unittest.TestCase): + """ V1SecretEnvSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SecretEnvSource(self): + """ + Test V1SecretEnvSource + """ + model = kubernetes.client.models.v1_secret_env_source.V1SecretEnvSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_secret_key_selector.py b/kubernetes/test/test_v1_secret_key_selector.py index 8b287ae5f4..37ba3080ad 100644 --- a/kubernetes/test/test_v1_secret_key_selector.py +++ b/kubernetes/test/test_v1_secret_key_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_secret_list.py b/kubernetes/test/test_v1_secret_list.py index 6796f48027..1aeea89f63 100644 --- a/kubernetes/test/test_v1_secret_list.py +++ b/kubernetes/test/test_v1_secret_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_unversioned_status.py b/kubernetes/test/test_v1_secret_projection.py similarity index 59% rename from kubernetes/test/test_unversioned_status.py rename to kubernetes/test/test_v1_secret_projection.py index deb2f9fe72..cf4bec5235 100644 --- a/kubernetes/test/test_unversioned_status.py +++ b/kubernetes/test/test_v1_secret_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.unversioned_status import UnversionedStatus +from kubernetes.client.models.v1_secret_projection import V1SecretProjection -class TestUnversionedStatus(unittest.TestCase): - """ UnversionedStatus unit test stubs """ +class TestV1SecretProjection(unittest.TestCase): + """ V1SecretProjection unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testUnversionedStatus(self): + def testV1SecretProjection(self): """ - Test UnversionedStatus + Test V1SecretProjection """ - model = kubernetes.client.models.unversioned_status.UnversionedStatus() + model = kubernetes.client.models.v1_secret_projection.V1SecretProjection() if __name__ == '__main__': diff --git a/kubernetes/test/test_v1_secret_volume_source.py b/kubernetes/test/test_v1_secret_volume_source.py index 53647ebf16..8a97c735ff 100644 --- a/kubernetes/test/test_v1_secret_volume_source.py +++ b/kubernetes/test/test_v1_secret_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_security_context.py b/kubernetes/test/test_v1_security_context.py index f137f8e7da..a0b2f9d9d2 100644 --- a/kubernetes/test/test_v1_security_context.py +++ b/kubernetes/test/test_v1_security_context.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_self_subject_access_review.py b/kubernetes/test/test_v1_self_subject_access_review.py new file mode 100644 index 0000000000..ec9f32c890 --- /dev/null +++ b/kubernetes/test/test_v1_self_subject_access_review.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_self_subject_access_review import V1SelfSubjectAccessReview + + +class TestV1SelfSubjectAccessReview(unittest.TestCase): + """ V1SelfSubjectAccessReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SelfSubjectAccessReview(self): + """ + Test V1SelfSubjectAccessReview + """ + model = kubernetes.client.models.v1_self_subject_access_review.V1SelfSubjectAccessReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_self_subject_access_review_spec.py b/kubernetes/test/test_v1_self_subject_access_review_spec.py new file mode 100644 index 0000000000..4d3d3f2527 --- /dev/null +++ b/kubernetes/test/test_v1_self_subject_access_review_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec + + +class TestV1SelfSubjectAccessReviewSpec(unittest.TestCase): + """ V1SelfSubjectAccessReviewSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SelfSubjectAccessReviewSpec(self): + """ + Test V1SelfSubjectAccessReviewSpec + """ + model = kubernetes.client.models.v1_self_subject_access_review_spec.V1SelfSubjectAccessReviewSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_server_address_by_client_cidr.py b/kubernetes/test/test_v1_server_address_by_client_cidr.py new file mode 100644 index 0000000000..a45cc62b80 --- /dev/null +++ b/kubernetes/test/test_v1_server_address_by_client_cidr.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR + + +class TestV1ServerAddressByClientCIDR(unittest.TestCase): + """ V1ServerAddressByClientCIDR unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ServerAddressByClientCIDR(self): + """ + Test V1ServerAddressByClientCIDR + """ + model = kubernetes.client.models.v1_server_address_by_client_cidr.V1ServerAddressByClientCIDR() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_service.py b/kubernetes/test/test_v1_service.py index cb6ffe0b05..e75876d401 100644 --- a/kubernetes/test/test_v1_service.py +++ b/kubernetes/test/test_v1_service.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_service_account.py b/kubernetes/test/test_v1_service_account.py index d305abf35e..956ebe0e49 100644 --- a/kubernetes/test/test_v1_service_account.py +++ b/kubernetes/test/test_v1_service_account.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_service_account_list.py b/kubernetes/test/test_v1_service_account_list.py index 1f66de72d9..70543302fc 100644 --- a/kubernetes/test/test_v1_service_account_list.py +++ b/kubernetes/test/test_v1_service_account_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_service_list.py b/kubernetes/test/test_v1_service_list.py index 73e99835d7..86d5a678b9 100644 --- a/kubernetes/test/test_v1_service_list.py +++ b/kubernetes/test/test_v1_service_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_service_port.py b/kubernetes/test/test_v1_service_port.py index bd92689a1f..9319936aa3 100644 --- a/kubernetes/test/test_v1_service_port.py +++ b/kubernetes/test/test_v1_service_port.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_service_spec.py b/kubernetes/test/test_v1_service_spec.py index b7f979d8f0..a43beb367a 100644 --- a/kubernetes/test/test_v1_service_spec.py +++ b/kubernetes/test/test_v1_service_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_service_status.py b/kubernetes/test/test_v1_service_status.py index d5f786c2cb..50bc07885c 100644 --- a/kubernetes/test/test_v1_service_status.py +++ b/kubernetes/test/test_v1_service_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_status.py b/kubernetes/test/test_v1_status.py new file mode 100644 index 0000000000..66e85d1973 --- /dev/null +++ b/kubernetes/test/test_v1_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_status import V1Status + + +class TestV1Status(unittest.TestCase): + """ V1Status unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Status(self): + """ + Test V1Status + """ + model = kubernetes.client.models.v1_status.V1Status() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_status_cause.py b/kubernetes/test/test_v1_status_cause.py new file mode 100644 index 0000000000..b92cee095c --- /dev/null +++ b/kubernetes/test/test_v1_status_cause.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_status_cause import V1StatusCause + + +class TestV1StatusCause(unittest.TestCase): + """ V1StatusCause unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1StatusCause(self): + """ + Test V1StatusCause + """ + model = kubernetes.client.models.v1_status_cause.V1StatusCause() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_job_spec.py b/kubernetes/test/test_v1_status_details.py similarity index 61% rename from kubernetes/test/test_v1beta1_job_spec.py rename to kubernetes/test/test_v1_status_details.py index 4a5eeb5fa2..8a9d71423d 100644 --- a/kubernetes/test/test_v1beta1_job_spec.py +++ b/kubernetes/test/test_v1_status_details.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_job_spec import V1beta1JobSpec +from kubernetes.client.models.v1_status_details import V1StatusDetails -class TestV1beta1JobSpec(unittest.TestCase): - """ V1beta1JobSpec unit test stubs """ +class TestV1StatusDetails(unittest.TestCase): + """ V1StatusDetails unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testV1beta1JobSpec(self): + def testV1StatusDetails(self): """ - Test V1beta1JobSpec + Test V1StatusDetails """ - model = kubernetes.client.models.v1beta1_job_spec.V1beta1JobSpec() + model = kubernetes.client.models.v1_status_details.V1StatusDetails() if __name__ == '__main__': diff --git a/kubernetes/test/test_v1_storage_class.py b/kubernetes/test/test_v1_storage_class.py new file mode 100644 index 0000000000..10977135c2 --- /dev/null +++ b/kubernetes/test/test_v1_storage_class.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_storage_class import V1StorageClass + + +class TestV1StorageClass(unittest.TestCase): + """ V1StorageClass unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1StorageClass(self): + """ + Test V1StorageClass + """ + model = kubernetes.client.models.v1_storage_class.V1StorageClass() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_storage_class_list.py b/kubernetes/test/test_v1_storage_class_list.py new file mode 100644 index 0000000000..93363c854f --- /dev/null +++ b/kubernetes/test/test_v1_storage_class_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_storage_class_list import V1StorageClassList + + +class TestV1StorageClassList(unittest.TestCase): + """ V1StorageClassList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1StorageClassList(self): + """ + Test V1StorageClassList + """ + model = kubernetes.client.models.v1_storage_class_list.V1StorageClassList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_subject_access_review.py b/kubernetes/test/test_v1_subject_access_review.py new file mode 100644 index 0000000000..6120e37a54 --- /dev/null +++ b/kubernetes/test/test_v1_subject_access_review.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_subject_access_review import V1SubjectAccessReview + + +class TestV1SubjectAccessReview(unittest.TestCase): + """ V1SubjectAccessReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SubjectAccessReview(self): + """ + Test V1SubjectAccessReview + """ + model = kubernetes.client.models.v1_subject_access_review.V1SubjectAccessReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_subject_access_review_spec.py b/kubernetes/test/test_v1_subject_access_review_spec.py new file mode 100644 index 0000000000..b994161f9c --- /dev/null +++ b/kubernetes/test/test_v1_subject_access_review_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec + + +class TestV1SubjectAccessReviewSpec(unittest.TestCase): + """ V1SubjectAccessReviewSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SubjectAccessReviewSpec(self): + """ + Test V1SubjectAccessReviewSpec + """ + model = kubernetes.client.models.v1_subject_access_review_spec.V1SubjectAccessReviewSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_subject_access_review_status.py b/kubernetes/test/test_v1_subject_access_review_status.py new file mode 100644 index 0000000000..5715068115 --- /dev/null +++ b/kubernetes/test/test_v1_subject_access_review_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_subject_access_review_status import V1SubjectAccessReviewStatus + + +class TestV1SubjectAccessReviewStatus(unittest.TestCase): + """ V1SubjectAccessReviewStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SubjectAccessReviewStatus(self): + """ + Test V1SubjectAccessReviewStatus + """ + model = kubernetes.client.models.v1_subject_access_review_status.V1SubjectAccessReviewStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_taint.py b/kubernetes/test/test_v1_taint.py new file mode 100644 index 0000000000..cbb2504783 --- /dev/null +++ b/kubernetes/test/test_v1_taint.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_taint import V1Taint + + +class TestV1Taint(unittest.TestCase): + """ V1Taint unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Taint(self): + """ + Test V1Taint + """ + model = kubernetes.client.models.v1_taint.V1Taint() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_tcp_socket_action.py b/kubernetes/test/test_v1_tcp_socket_action.py index 08806a264c..a70a4d1b56 100644 --- a/kubernetes/test/test_v1_tcp_socket_action.py +++ b/kubernetes/test/test_v1_tcp_socket_action.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_time.py b/kubernetes/test/test_v1_time.py new file mode 100644 index 0000000000..f41a7a4f1a --- /dev/null +++ b/kubernetes/test/test_v1_time.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_time import V1Time + + +class TestV1Time(unittest.TestCase): + """ V1Time unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Time(self): + """ + Test V1Time + """ + model = kubernetes.client.models.v1_time.V1Time() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_token_review.py b/kubernetes/test/test_v1_token_review.py new file mode 100644 index 0000000000..916028c29c --- /dev/null +++ b/kubernetes/test/test_v1_token_review.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_token_review import V1TokenReview + + +class TestV1TokenReview(unittest.TestCase): + """ V1TokenReview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TokenReview(self): + """ + Test V1TokenReview + """ + model = kubernetes.client.models.v1_token_review.V1TokenReview() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_token_review_spec.py b/kubernetes/test/test_v1_token_review_spec.py new file mode 100644 index 0000000000..9a091fb17a --- /dev/null +++ b/kubernetes/test/test_v1_token_review_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_token_review_spec import V1TokenReviewSpec + + +class TestV1TokenReviewSpec(unittest.TestCase): + """ V1TokenReviewSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TokenReviewSpec(self): + """ + Test V1TokenReviewSpec + """ + model = kubernetes.client.models.v1_token_review_spec.V1TokenReviewSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_token_review_status.py b/kubernetes/test/test_v1_token_review_status.py new file mode 100644 index 0000000000..e05bda116f --- /dev/null +++ b/kubernetes/test/test_v1_token_review_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_token_review_status import V1TokenReviewStatus + + +class TestV1TokenReviewStatus(unittest.TestCase): + """ V1TokenReviewStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TokenReviewStatus(self): + """ + Test V1TokenReviewStatus + """ + model = kubernetes.client.models.v1_token_review_status.V1TokenReviewStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_toleration.py b/kubernetes/test/test_v1_toleration.py new file mode 100644 index 0000000000..aff58c6c8a --- /dev/null +++ b/kubernetes/test/test_v1_toleration.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_toleration import V1Toleration + + +class TestV1Toleration(unittest.TestCase): + """ V1Toleration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Toleration(self): + """ + Test V1Toleration + """ + model = kubernetes.client.models.v1_toleration.V1Toleration() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_user_info.py b/kubernetes/test/test_v1_user_info.py new file mode 100644 index 0000000000..75ccd6200d --- /dev/null +++ b/kubernetes/test/test_v1_user_info.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_user_info import V1UserInfo + + +class TestV1UserInfo(unittest.TestCase): + """ V1UserInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1UserInfo(self): + """ + Test V1UserInfo + """ + model = kubernetes.client.models.v1_user_info.V1UserInfo() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_volume.py b/kubernetes/test/test_v1_volume.py index 5634dcd07c..46e2acd458 100644 --- a/kubernetes/test/test_v1_volume.py +++ b/kubernetes/test/test_v1_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_volume_mount.py b/kubernetes/test/test_v1_volume_mount.py index 15fb02dc82..43228b5e72 100644 --- a/kubernetes/test/test_v1_volume_mount.py +++ b/kubernetes/test/test_v1_volume_mount.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_deployment.py b/kubernetes/test/test_v1_volume_projection.py similarity index 59% rename from kubernetes/test/test_v1beta1_deployment.py rename to kubernetes/test/test_v1_volume_projection.py index b526144373..d9b86027d6 100644 --- a/kubernetes/test/test_v1beta1_deployment.py +++ b/kubernetes/test/test_v1_volume_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_deployment import V1beta1Deployment +from kubernetes.client.models.v1_volume_projection import V1VolumeProjection -class TestV1beta1Deployment(unittest.TestCase): - """ V1beta1Deployment unit test stubs """ +class TestV1VolumeProjection(unittest.TestCase): + """ V1VolumeProjection unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testV1beta1Deployment(self): + def testV1VolumeProjection(self): """ - Test V1beta1Deployment + Test V1VolumeProjection """ - model = kubernetes.client.models.v1beta1_deployment.V1beta1Deployment() + model = kubernetes.client.models.v1_volume_projection.V1VolumeProjection() if __name__ == '__main__': diff --git a/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py b/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py index 42d617e64f..fc20e08a61 100644 --- a/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py +++ b/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1_watch_event.py b/kubernetes/test/test_v1_watch_event.py new file mode 100644 index 0000000000..d57ac26e34 --- /dev/null +++ b/kubernetes/test/test_v1_watch_event.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_watch_event import V1WatchEvent + + +class TestV1WatchEvent(unittest.TestCase): + """ V1WatchEvent unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1WatchEvent(self): + """ + Test V1WatchEvent + """ + model = kubernetes.client.models.v1_watch_event.V1WatchEvent() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1_weighted_pod_affinity_term.py b/kubernetes/test/test_v1_weighted_pod_affinity_term.py new file mode 100644 index 0000000000..1fd312f87d --- /dev/null +++ b/kubernetes/test/test_v1_weighted_pod_affinity_term.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm + + +class TestV1WeightedPodAffinityTerm(unittest.TestCase): + """ V1WeightedPodAffinityTerm unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1WeightedPodAffinityTerm(self): + """ + Test V1WeightedPodAffinityTerm + """ + model = kubernetes.client.models.v1_weighted_pod_affinity_term.V1WeightedPodAffinityTerm() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1alpha1_certificate_signing_request.py b/kubernetes/test/test_v1alpha1_certificate_signing_request.py deleted file mode 100644 index f038784882..0000000000 --- a/kubernetes/test/test_v1alpha1_certificate_signing_request.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1alpha1_certificate_signing_request.V1alpha1CertificateSigningRequest() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_certificate_signing_request_condition.py b/kubernetes/test/test_v1alpha1_certificate_signing_request_condition.py deleted file mode 100644 index 0ae30734ac..0000000000 --- a/kubernetes/test/test_v1alpha1_certificate_signing_request_condition.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1alpha1_certificate_signing_request_condition.V1alpha1CertificateSigningRequestCondition() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_certificate_signing_request_spec.py b/kubernetes/test/test_v1alpha1_certificate_signing_request_spec.py deleted file mode 100644 index 42e867877c..0000000000 --- a/kubernetes/test/test_v1alpha1_certificate_signing_request_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1alpha1_certificate_signing_request_spec.V1alpha1CertificateSigningRequestSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_certificate_signing_request_status.py b/kubernetes/test/test_v1alpha1_certificate_signing_request_status.py deleted file mode 100644 index e23362fad7..0000000000 --- a/kubernetes/test/test_v1alpha1_certificate_signing_request_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1alpha1_certificate_signing_request_status.V1alpha1CertificateSigningRequestStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_cluster_role.py b/kubernetes/test/test_v1alpha1_cluster_role.py index ed3ff23fdb..8be6218051 100644 --- a/kubernetes/test/test_v1alpha1_cluster_role.py +++ b/kubernetes/test/test_v1alpha1_cluster_role.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1alpha1_cluster_role_binding.py b/kubernetes/test/test_v1alpha1_cluster_role_binding.py index 8858524c1a..56d49f4617 100644 --- a/kubernetes/test/test_v1alpha1_cluster_role_binding.py +++ b/kubernetes/test/test_v1alpha1_cluster_role_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1alpha1_cluster_role_binding_list.py b/kubernetes/test/test_v1alpha1_cluster_role_binding_list.py index 2aae719810..3378508600 100644 --- a/kubernetes/test/test_v1alpha1_cluster_role_binding_list.py +++ b/kubernetes/test/test_v1alpha1_cluster_role_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1alpha1_cluster_role_list.py b/kubernetes/test/test_v1alpha1_cluster_role_list.py index 509b601f7d..eae34a2dfc 100644 --- a/kubernetes/test/test_v1alpha1_cluster_role_list.py +++ b/kubernetes/test/test_v1alpha1_cluster_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1alpha1_pod_preset.py b/kubernetes/test/test_v1alpha1_pod_preset.py new file mode 100644 index 0000000000..9f265e814e --- /dev/null +++ b/kubernetes/test/test_v1alpha1_pod_preset.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1alpha1_pod_preset import V1alpha1PodPreset + + +class TestV1alpha1PodPreset(unittest.TestCase): + """ V1alpha1PodPreset unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1PodPreset(self): + """ + Test V1alpha1PodPreset + """ + model = kubernetes.client.models.v1alpha1_pod_preset.V1alpha1PodPreset() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1alpha1_pod_preset_list.py b/kubernetes/test/test_v1alpha1_pod_preset_list.py new file mode 100644 index 0000000000..7e6b2a46f7 --- /dev/null +++ b/kubernetes/test/test_v1alpha1_pod_preset_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1alpha1_pod_preset_list import V1alpha1PodPresetList + + +class TestV1alpha1PodPresetList(unittest.TestCase): + """ V1alpha1PodPresetList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1PodPresetList(self): + """ + Test V1alpha1PodPresetList + """ + model = kubernetes.client.models.v1alpha1_pod_preset_list.V1alpha1PodPresetList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1alpha1_pod_preset_spec.py b/kubernetes/test/test_v1alpha1_pod_preset_spec.py new file mode 100644 index 0000000000..d71af7f706 --- /dev/null +++ b/kubernetes/test/test_v1alpha1_pod_preset_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1alpha1_pod_preset_spec import V1alpha1PodPresetSpec + + +class TestV1alpha1PodPresetSpec(unittest.TestCase): + """ V1alpha1PodPresetSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1alpha1PodPresetSpec(self): + """ + Test V1alpha1PodPresetSpec + """ + model = kubernetes.client.models.v1alpha1_pod_preset_spec.V1alpha1PodPresetSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1alpha1_policy_rule.py b/kubernetes/test/test_v1alpha1_policy_rule.py index d7d45354ad..636e110936 100644 --- a/kubernetes/test/test_v1alpha1_policy_rule.py +++ b/kubernetes/test/test_v1alpha1_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1alpha1_role.py b/kubernetes/test/test_v1alpha1_role.py index 101e8a6acf..03ba1f313c 100644 --- a/kubernetes/test/test_v1alpha1_role.py +++ b/kubernetes/test/test_v1alpha1_role.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1alpha1_role_binding.py b/kubernetes/test/test_v1alpha1_role_binding.py index f360da809d..f884c91af5 100644 --- a/kubernetes/test/test_v1alpha1_role_binding.py +++ b/kubernetes/test/test_v1alpha1_role_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1alpha1_role_binding_list.py b/kubernetes/test/test_v1alpha1_role_binding_list.py index 9dee48d9de..0335e07a42 100644 --- a/kubernetes/test/test_v1alpha1_role_binding_list.py +++ b/kubernetes/test/test_v1alpha1_role_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1alpha1_role_list.py b/kubernetes/test/test_v1alpha1_role_list.py index 17caef3f32..35f558f4e1 100644 --- a/kubernetes/test/test_v1alpha1_role_list.py +++ b/kubernetes/test/test_v1alpha1_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1alpha1_role_ref.py b/kubernetes/test/test_v1alpha1_role_ref.py index c004ca97fc..3e742134f3 100644 --- a/kubernetes/test/test_v1alpha1_role_ref.py +++ b/kubernetes/test/test_v1alpha1_role_ref.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1alpha1_subject.py b/kubernetes/test/test_v1alpha1_subject.py index 53cd7a13fb..659f82b232 100644 --- a/kubernetes/test/test_v1alpha1_subject.py +++ b/kubernetes/test/test_v1alpha1_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_api_version.py b/kubernetes/test/test_v1beta1_api_version.py index 7ba6057e93..3dae414b56 100644 --- a/kubernetes/test/test_v1beta1_api_version.py +++ b/kubernetes/test/test_v1beta1_api_version.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request.py b/kubernetes/test/test_v1beta1_certificate_signing_request.py new file mode 100644 index 0000000000..959586b0cc --- /dev/null +++ b/kubernetes/test/test_v1beta1_certificate_signing_request.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_certificate_signing_request import V1beta1CertificateSigningRequest + + +class TestV1beta1CertificateSigningRequest(unittest.TestCase): + """ V1beta1CertificateSigningRequest unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1CertificateSigningRequest(self): + """ + Test V1beta1CertificateSigningRequest + """ + model = kubernetes.client.models.v1beta1_certificate_signing_request.V1beta1CertificateSigningRequest() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_condition.py b/kubernetes/test/test_v1beta1_certificate_signing_request_condition.py new file mode 100644 index 0000000000..01b3962d9b --- /dev/null +++ b/kubernetes/test/test_v1beta1_certificate_signing_request_condition.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_certificate_signing_request_condition import V1beta1CertificateSigningRequestCondition + + +class TestV1beta1CertificateSigningRequestCondition(unittest.TestCase): + """ V1beta1CertificateSigningRequestCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1CertificateSigningRequestCondition(self): + """ + Test V1beta1CertificateSigningRequestCondition + """ + model = kubernetes.client.models.v1beta1_certificate_signing_request_condition.V1beta1CertificateSigningRequestCondition() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_spec.py b/kubernetes/test/test_v1beta1_certificate_signing_request_list.py similarity index 50% rename from kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_spec.py rename to kubernetes/test/test_v1beta1_certificate_signing_request_list.py index e326d6212f..c1969e8b94 100644 --- a/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/test/test_v1beta1_certificate_signing_request_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_horizontal_pod_autoscaler_spec import V1beta1HorizontalPodAutoscalerSpec +from kubernetes.client.models.v1beta1_certificate_signing_request_list import V1beta1CertificateSigningRequestList -class TestV1beta1HorizontalPodAutoscalerSpec(unittest.TestCase): - """ V1beta1HorizontalPodAutoscalerSpec unit test stubs """ +class TestV1beta1CertificateSigningRequestList(unittest.TestCase): + """ V1beta1CertificateSigningRequestList unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testV1beta1HorizontalPodAutoscalerSpec(self): + def testV1beta1CertificateSigningRequestList(self): """ - Test V1beta1HorizontalPodAutoscalerSpec + Test V1beta1CertificateSigningRequestList """ - model = kubernetes.client.models.v1beta1_horizontal_pod_autoscaler_spec.V1beta1HorizontalPodAutoscalerSpec() + model = kubernetes.client.models.v1beta1_certificate_signing_request_list.V1beta1CertificateSigningRequestList() if __name__ == '__main__': diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_spec.py b/kubernetes/test/test_v1beta1_certificate_signing_request_spec.py new file mode 100644 index 0000000000..63a6772e0d --- /dev/null +++ b/kubernetes/test/test_v1beta1_certificate_signing_request_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_certificate_signing_request_spec import V1beta1CertificateSigningRequestSpec + + +class TestV1beta1CertificateSigningRequestSpec(unittest.TestCase): + """ V1beta1CertificateSigningRequestSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1CertificateSigningRequestSpec(self): + """ + Test V1beta1CertificateSigningRequestSpec + """ + model = kubernetes.client.models.v1beta1_certificate_signing_request_spec.V1beta1CertificateSigningRequestSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_status.py b/kubernetes/test/test_v1beta1_certificate_signing_request_status.py new file mode 100644 index 0000000000..45358479e3 --- /dev/null +++ b/kubernetes/test/test_v1beta1_certificate_signing_request_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_certificate_signing_request_status import V1beta1CertificateSigningRequestStatus + + +class TestV1beta1CertificateSigningRequestStatus(unittest.TestCase): + """ V1beta1CertificateSigningRequestStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1CertificateSigningRequestStatus(self): + """ + Test V1beta1CertificateSigningRequestStatus + """ + model = kubernetes.client.models.v1beta1_certificate_signing_request_status.V1beta1CertificateSigningRequestStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_cluster_role.py b/kubernetes/test/test_v1beta1_cluster_role.py new file mode 100644 index 0000000000..f7b8424f1b --- /dev/null +++ b/kubernetes/test/test_v1beta1_cluster_role.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_cluster_role import V1beta1ClusterRole + + +class TestV1beta1ClusterRole(unittest.TestCase): + """ V1beta1ClusterRole unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ClusterRole(self): + """ + Test V1beta1ClusterRole + """ + model = kubernetes.client.models.v1beta1_cluster_role.V1beta1ClusterRole() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_cluster_role_binding.py b/kubernetes/test/test_v1beta1_cluster_role_binding.py new file mode 100644 index 0000000000..82684960e1 --- /dev/null +++ b/kubernetes/test/test_v1beta1_cluster_role_binding.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_cluster_role_binding import V1beta1ClusterRoleBinding + + +class TestV1beta1ClusterRoleBinding(unittest.TestCase): + """ V1beta1ClusterRoleBinding unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ClusterRoleBinding(self): + """ + Test V1beta1ClusterRoleBinding + """ + model = kubernetes.client.models.v1beta1_cluster_role_binding.V1beta1ClusterRoleBinding() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_cluster_role_binding_list.py b/kubernetes/test/test_v1beta1_cluster_role_binding_list.py new file mode 100644 index 0000000000..283a68aea2 --- /dev/null +++ b/kubernetes/test/test_v1beta1_cluster_role_binding_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_cluster_role_binding_list import V1beta1ClusterRoleBindingList + + +class TestV1beta1ClusterRoleBindingList(unittest.TestCase): + """ V1beta1ClusterRoleBindingList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ClusterRoleBindingList(self): + """ + Test V1beta1ClusterRoleBindingList + """ + model = kubernetes.client.models.v1beta1_cluster_role_binding_list.V1beta1ClusterRoleBindingList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_cluster_role_list.py b/kubernetes/test/test_v1beta1_cluster_role_list.py new file mode 100644 index 0000000000..6fb786e1f5 --- /dev/null +++ b/kubernetes/test/test_v1beta1_cluster_role_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_cluster_role_list import V1beta1ClusterRoleList + + +class TestV1beta1ClusterRoleList(unittest.TestCase): + """ V1beta1ClusterRoleList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ClusterRoleList(self): + """ + Test V1beta1ClusterRoleList + """ + model = kubernetes.client.models.v1beta1_cluster_role_list.V1beta1ClusterRoleList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_cpu_target_utilization.py b/kubernetes/test/test_v1beta1_cpu_target_utilization.py deleted file mode 100644 index a8f86943e1..0000000000 --- a/kubernetes/test/test_v1beta1_cpu_target_utilization.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_cpu_target_utilization.V1beta1CPUTargetUtilization() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_daemon_set.py b/kubernetes/test/test_v1beta1_daemon_set.py index 94c6e4a3dd..7258628d44 100644 --- a/kubernetes/test/test_v1beta1_daemon_set.py +++ b/kubernetes/test/test_v1beta1_daemon_set.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_daemon_set_list.py b/kubernetes/test/test_v1beta1_daemon_set_list.py index dab250a43e..7ed059d73b 100644 --- a/kubernetes/test/test_v1beta1_daemon_set_list.py +++ b/kubernetes/test/test_v1beta1_daemon_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_daemon_set_spec.py b/kubernetes/test/test_v1beta1_daemon_set_spec.py index c93a417018..4cdaae5fb4 100644 --- a/kubernetes/test/test_v1beta1_daemon_set_spec.py +++ b/kubernetes/test/test_v1beta1_daemon_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_daemon_set_status.py b/kubernetes/test/test_v1beta1_daemon_set_status.py index 8416bff38d..444d1b3b06 100644 --- a/kubernetes/test/test_v1beta1_daemon_set_status.py +++ b/kubernetes/test/test_v1beta1_daemon_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_daemon_set_update_strategy.py b/kubernetes/test/test_v1beta1_daemon_set_update_strategy.py new file mode 100644 index 0000000000..4deeb94979 --- /dev/null +++ b/kubernetes/test/test_v1beta1_daemon_set_update_strategy.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_daemon_set_update_strategy import V1beta1DaemonSetUpdateStrategy + + +class TestV1beta1DaemonSetUpdateStrategy(unittest.TestCase): + """ V1beta1DaemonSetUpdateStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DaemonSetUpdateStrategy(self): + """ + Test V1beta1DaemonSetUpdateStrategy + """ + model = kubernetes.client.models.v1beta1_daemon_set_update_strategy.V1beta1DaemonSetUpdateStrategy() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_deployment_condition.py b/kubernetes/test/test_v1beta1_deployment_condition.py deleted file mode 100644 index 62e825b1b7..0000000000 --- a/kubernetes/test/test_v1beta1_deployment_condition.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_deployment_condition.V1beta1DeploymentCondition() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_deployment_list.py b/kubernetes/test/test_v1beta1_deployment_list.py deleted file mode 100644 index aa62d2a164..0000000000 --- a/kubernetes/test/test_v1beta1_deployment_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_deployment_list.V1beta1DeploymentList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_deployment_rollback.py b/kubernetes/test/test_v1beta1_deployment_rollback.py deleted file mode 100644 index a2051f3714..0000000000 --- a/kubernetes/test/test_v1beta1_deployment_rollback.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_deployment_rollback.V1beta1DeploymentRollback() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_deployment_spec.py b/kubernetes/test/test_v1beta1_deployment_spec.py deleted file mode 100644 index 851517cc0d..0000000000 --- a/kubernetes/test/test_v1beta1_deployment_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_deployment_spec.V1beta1DeploymentSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_deployment_status.py b/kubernetes/test/test_v1beta1_deployment_status.py deleted file mode 100644 index 8a84a0a4d6..0000000000 --- a/kubernetes/test/test_v1beta1_deployment_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_deployment_status.V1beta1DeploymentStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_deployment_strategy.py b/kubernetes/test/test_v1beta1_deployment_strategy.py deleted file mode 100644 index 3107ec4330..0000000000 --- a/kubernetes/test/test_v1beta1_deployment_strategy.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_deployment_strategy.V1beta1DeploymentStrategy() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_eviction.py b/kubernetes/test/test_v1beta1_eviction.py index cbaea59204..da6222a013 100644 --- a/kubernetes/test/test_v1beta1_eviction.py +++ b/kubernetes/test/test_v1beta1_eviction.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_fs_group_strategy_options.py b/kubernetes/test/test_v1beta1_fs_group_strategy_options.py new file mode 100644 index 0000000000..c0156aacde --- /dev/null +++ b/kubernetes/test/test_v1beta1_fs_group_strategy_options.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_fs_group_strategy_options import V1beta1FSGroupStrategyOptions + + +class TestV1beta1FSGroupStrategyOptions(unittest.TestCase): + """ V1beta1FSGroupStrategyOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1FSGroupStrategyOptions(self): + """ + Test V1beta1FSGroupStrategyOptions + """ + model = kubernetes.client.models.v1beta1_fs_group_strategy_options.V1beta1FSGroupStrategyOptions() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler.py b/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler.py deleted file mode 100644 index 5426a7f923..0000000000 --- a/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_horizontal_pod_autoscaler.V1beta1HorizontalPodAutoscaler() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_status.py b/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_status.py deleted file mode 100644 index 0f45aee401..0000000000 --- a/kubernetes/test/test_v1beta1_horizontal_pod_autoscaler_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_horizontal_pod_autoscaler_status.V1beta1HorizontalPodAutoscalerStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_host_port_range.py b/kubernetes/test/test_v1beta1_host_port_range.py new file mode 100644 index 0000000000..5ed9b4f118 --- /dev/null +++ b/kubernetes/test/test_v1beta1_host_port_range.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_host_port_range import V1beta1HostPortRange + + +class TestV1beta1HostPortRange(unittest.TestCase): + """ V1beta1HostPortRange unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1HostPortRange(self): + """ + Test V1beta1HostPortRange + """ + model = kubernetes.client.models.v1beta1_host_port_range.V1beta1HostPortRange() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_http_ingress_path.py b/kubernetes/test/test_v1beta1_http_ingress_path.py index 2cfa6b6a76..259ba2942f 100644 --- a/kubernetes/test/test_v1beta1_http_ingress_path.py +++ b/kubernetes/test/test_v1beta1_http_ingress_path.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_http_ingress_rule_value.py b/kubernetes/test/test_v1beta1_http_ingress_rule_value.py index c01b65271b..458607e666 100644 --- a/kubernetes/test/test_v1beta1_http_ingress_rule_value.py +++ b/kubernetes/test/test_v1beta1_http_ingress_rule_value.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_id_range.py b/kubernetes/test/test_v1beta1_id_range.py new file mode 100644 index 0000000000..a8d97299b2 --- /dev/null +++ b/kubernetes/test/test_v1beta1_id_range.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_id_range import V1beta1IDRange + + +class TestV1beta1IDRange(unittest.TestCase): + """ V1beta1IDRange unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1IDRange(self): + """ + Test V1beta1IDRange + """ + model = kubernetes.client.models.v1beta1_id_range.V1beta1IDRange() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_ingress.py b/kubernetes/test/test_v1beta1_ingress.py index 35699c6221..3fe9c80950 100644 --- a/kubernetes/test/test_v1beta1_ingress.py +++ b/kubernetes/test/test_v1beta1_ingress.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_ingress_backend.py b/kubernetes/test/test_v1beta1_ingress_backend.py index 34d1e56194..30c15d5c20 100644 --- a/kubernetes/test/test_v1beta1_ingress_backend.py +++ b/kubernetes/test/test_v1beta1_ingress_backend.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_ingress_list.py b/kubernetes/test/test_v1beta1_ingress_list.py index db245f2283..10560711ac 100644 --- a/kubernetes/test/test_v1beta1_ingress_list.py +++ b/kubernetes/test/test_v1beta1_ingress_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_ingress_rule.py b/kubernetes/test/test_v1beta1_ingress_rule.py index aad8698d08..5d2c54cf34 100644 --- a/kubernetes/test/test_v1beta1_ingress_rule.py +++ b/kubernetes/test/test_v1beta1_ingress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_ingress_spec.py b/kubernetes/test/test_v1beta1_ingress_spec.py index 8881d6cfd2..6ef03ca6c3 100644 --- a/kubernetes/test/test_v1beta1_ingress_spec.py +++ b/kubernetes/test/test_v1beta1_ingress_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_ingress_status.py b/kubernetes/test/test_v1beta1_ingress_status.py index 9d11e3d0b5..f4da24915e 100644 --- a/kubernetes/test/test_v1beta1_ingress_status.py +++ b/kubernetes/test/test_v1beta1_ingress_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_ingress_tls.py b/kubernetes/test/test_v1beta1_ingress_tls.py index c56b30cbb4..075a4c68cf 100644 --- a/kubernetes/test/test_v1beta1_ingress_tls.py +++ b/kubernetes/test/test_v1beta1_ingress_tls.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_job_condition.py b/kubernetes/test/test_v1beta1_job_condition.py deleted file mode 100644 index 9e8ea1f011..0000000000 --- a/kubernetes/test/test_v1beta1_job_condition.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_job_condition.V1beta1JobCondition() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_job_status.py b/kubernetes/test/test_v1beta1_job_status.py deleted file mode 100644 index d4fb40a45d..0000000000 --- a/kubernetes/test/test_v1beta1_job_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_job_status.V1beta1JobStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_local_subject_access_review.py b/kubernetes/test/test_v1beta1_local_subject_access_review.py index 69c5ad4008..091368e8d4 100644 --- a/kubernetes/test/test_v1beta1_local_subject_access_review.py +++ b/kubernetes/test/test_v1beta1_local_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_network_policy.py b/kubernetes/test/test_v1beta1_network_policy.py index 0dba9e856c..fc3d31080c 100644 --- a/kubernetes/test/test_v1beta1_network_policy.py +++ b/kubernetes/test/test_v1beta1_network_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py b/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py index 977d19d947..c073871866 100644 --- a/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py +++ b/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_network_policy_list.py b/kubernetes/test/test_v1beta1_network_policy_list.py index 0f757983ed..51a107ff17 100644 --- a/kubernetes/test/test_v1beta1_network_policy_list.py +++ b/kubernetes/test/test_v1beta1_network_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_network_policy_peer.py b/kubernetes/test/test_v1beta1_network_policy_peer.py index b8f59cafd6..512dbb9172 100644 --- a/kubernetes/test/test_v1beta1_network_policy_peer.py +++ b/kubernetes/test/test_v1beta1_network_policy_peer.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_network_policy_port.py b/kubernetes/test/test_v1beta1_network_policy_port.py index 65637fb38b..efc4427f6e 100644 --- a/kubernetes/test/test_v1beta1_network_policy_port.py +++ b/kubernetes/test/test_v1beta1_network_policy_port.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_network_policy_spec.py b/kubernetes/test/test_v1beta1_network_policy_spec.py index d730d8a967..cb92886049 100644 --- a/kubernetes/test/test_v1beta1_network_policy_spec.py +++ b/kubernetes/test/test_v1beta1_network_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_non_resource_attributes.py b/kubernetes/test/test_v1beta1_non_resource_attributes.py index 63687ee5ae..9b1a7bd049 100644 --- a/kubernetes/test/test_v1beta1_non_resource_attributes.py +++ b/kubernetes/test/test_v1beta1_non_resource_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget.py b/kubernetes/test/test_v1beta1_pod_disruption_budget.py index e0d4c31a8c..0820965eba 100644 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget.py +++ b/kubernetes/test/test_v1beta1_pod_disruption_budget.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py b/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py index e441751975..9e59da579d 100644 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py +++ b/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py b/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py index 234701ed7b..4d8e76ed06 100644 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py +++ b/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py b/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py index 1062e74fff..07abdf654c 100644 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py +++ b/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_unversioned_api_group_list.py b/kubernetes/test/test_v1beta1_pod_security_policy.py similarity index 56% rename from kubernetes/test/test_unversioned_api_group_list.py rename to kubernetes/test/test_v1beta1_pod_security_policy.py index befdcd81e6..fbd40be0bf 100644 --- a/kubernetes/test/test_unversioned_api_group_list.py +++ b/kubernetes/test/test_v1beta1_pod_security_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.unversioned_api_group_list import UnversionedAPIGroupList +from kubernetes.client.models.v1beta1_pod_security_policy import V1beta1PodSecurityPolicy -class TestUnversionedAPIGroupList(unittest.TestCase): - """ UnversionedAPIGroupList unit test stubs """ +class TestV1beta1PodSecurityPolicy(unittest.TestCase): + """ V1beta1PodSecurityPolicy unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testUnversionedAPIGroupList(self): + def testV1beta1PodSecurityPolicy(self): """ - Test UnversionedAPIGroupList + Test V1beta1PodSecurityPolicy """ - model = kubernetes.client.models.unversioned_api_group_list.UnversionedAPIGroupList() + model = kubernetes.client.models.v1beta1_pod_security_policy.V1beta1PodSecurityPolicy() if __name__ == '__main__': diff --git a/kubernetes/test/test_v1beta1_pod_security_policy_list.py b/kubernetes/test/test_v1beta1_pod_security_policy_list.py new file mode 100644 index 0000000000..0d2050ef7a --- /dev/null +++ b/kubernetes/test/test_v1beta1_pod_security_policy_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_pod_security_policy_list import V1beta1PodSecurityPolicyList + + +class TestV1beta1PodSecurityPolicyList(unittest.TestCase): + """ V1beta1PodSecurityPolicyList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1PodSecurityPolicyList(self): + """ + Test V1beta1PodSecurityPolicyList + """ + model = kubernetes.client.models.v1beta1_pod_security_policy_list.V1beta1PodSecurityPolicyList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_pod_security_policy_spec.py b/kubernetes/test/test_v1beta1_pod_security_policy_spec.py new file mode 100644 index 0000000000..e8fd4a4a0b --- /dev/null +++ b/kubernetes/test/test_v1beta1_pod_security_policy_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_pod_security_policy_spec import V1beta1PodSecurityPolicySpec + + +class TestV1beta1PodSecurityPolicySpec(unittest.TestCase): + """ V1beta1PodSecurityPolicySpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1PodSecurityPolicySpec(self): + """ + Test V1beta1PodSecurityPolicySpec + """ + model = kubernetes.client.models.v1beta1_pod_security_policy_spec.V1beta1PodSecurityPolicySpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_policy_rule.py b/kubernetes/test/test_v1beta1_policy_rule.py new file mode 100644 index 0000000000..91ef476067 --- /dev/null +++ b/kubernetes/test/test_v1beta1_policy_rule.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_policy_rule import V1beta1PolicyRule + + +class TestV1beta1PolicyRule(unittest.TestCase): + """ V1beta1PolicyRule unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1PolicyRule(self): + """ + Test V1beta1PolicyRule + """ + model = kubernetes.client.models.v1beta1_policy_rule.V1beta1PolicyRule() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_replica_set.py b/kubernetes/test/test_v1beta1_replica_set.py index 9efe7bfde3..0c68e966b5 100644 --- a/kubernetes/test/test_v1beta1_replica_set.py +++ b/kubernetes/test/test_v1beta1_replica_set.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_replica_set_condition.py b/kubernetes/test/test_v1beta1_replica_set_condition.py index d8d38e7f6b..8340c8b89f 100644 --- a/kubernetes/test/test_v1beta1_replica_set_condition.py +++ b/kubernetes/test/test_v1beta1_replica_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_replica_set_list.py b/kubernetes/test/test_v1beta1_replica_set_list.py index 9ff4838c13..876304c66f 100644 --- a/kubernetes/test/test_v1beta1_replica_set_list.py +++ b/kubernetes/test/test_v1beta1_replica_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_replica_set_spec.py b/kubernetes/test/test_v1beta1_replica_set_spec.py index 110203812c..8b5bbfe2c5 100644 --- a/kubernetes/test/test_v1beta1_replica_set_spec.py +++ b/kubernetes/test/test_v1beta1_replica_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_replica_set_status.py b/kubernetes/test/test_v1beta1_replica_set_status.py index 526c4e15fe..9ae05c8cf3 100644 --- a/kubernetes/test/test_v1beta1_replica_set_status.py +++ b/kubernetes/test/test_v1beta1_replica_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_resource_attributes.py b/kubernetes/test/test_v1beta1_resource_attributes.py index b1b155f634..cfabbe55d7 100644 --- a/kubernetes/test/test_v1beta1_resource_attributes.py +++ b/kubernetes/test/test_v1beta1_resource_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_role.py b/kubernetes/test/test_v1beta1_role.py new file mode 100644 index 0000000000..5ee1eb85ea --- /dev/null +++ b/kubernetes/test/test_v1beta1_role.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_role import V1beta1Role + + +class TestV1beta1Role(unittest.TestCase): + """ V1beta1Role unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1Role(self): + """ + Test V1beta1Role + """ + model = kubernetes.client.models.v1beta1_role.V1beta1Role() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_role_binding.py b/kubernetes/test/test_v1beta1_role_binding.py new file mode 100644 index 0000000000..317201542f --- /dev/null +++ b/kubernetes/test/test_v1beta1_role_binding.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_role_binding import V1beta1RoleBinding + + +class TestV1beta1RoleBinding(unittest.TestCase): + """ V1beta1RoleBinding unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1RoleBinding(self): + """ + Test V1beta1RoleBinding + """ + model = kubernetes.client.models.v1beta1_role_binding.V1beta1RoleBinding() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_role_binding_list.py b/kubernetes/test/test_v1beta1_role_binding_list.py new file mode 100644 index 0000000000..f52305fc01 --- /dev/null +++ b/kubernetes/test/test_v1beta1_role_binding_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_role_binding_list import V1beta1RoleBindingList + + +class TestV1beta1RoleBindingList(unittest.TestCase): + """ V1beta1RoleBindingList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1RoleBindingList(self): + """ + Test V1beta1RoleBindingList + """ + model = kubernetes.client.models.v1beta1_role_binding_list.V1beta1RoleBindingList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_role_list.py b/kubernetes/test/test_v1beta1_role_list.py new file mode 100644 index 0000000000..4c79ca6ea7 --- /dev/null +++ b/kubernetes/test/test_v1beta1_role_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_role_list import V1beta1RoleList + + +class TestV1beta1RoleList(unittest.TestCase): + """ V1beta1RoleList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1RoleList(self): + """ + Test V1beta1RoleList + """ + model = kubernetes.client.models.v1beta1_role_list.V1beta1RoleList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_role_ref.py b/kubernetes/test/test_v1beta1_role_ref.py new file mode 100644 index 0000000000..b18b1dee00 --- /dev/null +++ b/kubernetes/test/test_v1beta1_role_ref.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_role_ref import V1beta1RoleRef + + +class TestV1beta1RoleRef(unittest.TestCase): + """ V1beta1RoleRef unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1RoleRef(self): + """ + Test V1beta1RoleRef + """ + model = kubernetes.client.models.v1beta1_role_ref.V1beta1RoleRef() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_rollback_config.py b/kubernetes/test/test_v1beta1_rollback_config.py deleted file mode 100644 index 3313b461a1..0000000000 --- a/kubernetes/test/test_v1beta1_rollback_config.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_rollback_config.V1beta1RollbackConfig() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_rolling_update_deployment.py b/kubernetes/test/test_v1beta1_rolling_update_daemon_set.py similarity index 59% rename from kubernetes/test/test_v1beta1_rolling_update_deployment.py rename to kubernetes/test/test_v1beta1_rolling_update_daemon_set.py index ef6e606e1b..e7a73aca20 100644 --- a/kubernetes/test/test_v1beta1_rolling_update_deployment.py +++ b/kubernetes/test/test_v1beta1_rolling_update_daemon_set.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_rolling_update_deployment import V1beta1RollingUpdateDeployment +from kubernetes.client.models.v1beta1_rolling_update_daemon_set import V1beta1RollingUpdateDaemonSet -class TestV1beta1RollingUpdateDeployment(unittest.TestCase): - """ V1beta1RollingUpdateDeployment unit test stubs """ +class TestV1beta1RollingUpdateDaemonSet(unittest.TestCase): + """ V1beta1RollingUpdateDaemonSet unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testV1beta1RollingUpdateDeployment(self): + def testV1beta1RollingUpdateDaemonSet(self): """ - Test V1beta1RollingUpdateDeployment + Test V1beta1RollingUpdateDaemonSet """ - model = kubernetes.client.models.v1beta1_rolling_update_deployment.V1beta1RollingUpdateDeployment() + model = kubernetes.client.models.v1beta1_rolling_update_daemon_set.V1beta1RollingUpdateDaemonSet() if __name__ == '__main__': diff --git a/kubernetes/test/test_v1beta1_run_as_user_strategy_options.py b/kubernetes/test/test_v1beta1_run_as_user_strategy_options.py new file mode 100644 index 0000000000..679eaf8ce6 --- /dev/null +++ b/kubernetes/test/test_v1beta1_run_as_user_strategy_options.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_run_as_user_strategy_options import V1beta1RunAsUserStrategyOptions + + +class TestV1beta1RunAsUserStrategyOptions(unittest.TestCase): + """ V1beta1RunAsUserStrategyOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1RunAsUserStrategyOptions(self): + """ + Test V1beta1RunAsUserStrategyOptions + """ + model = kubernetes.client.models.v1beta1_run_as_user_strategy_options.V1beta1RunAsUserStrategyOptions() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_scale_spec.py b/kubernetes/test/test_v1beta1_scale_spec.py deleted file mode 100644 index 0ae71809ce..0000000000 --- a/kubernetes/test/test_v1beta1_scale_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_scale_spec.V1beta1ScaleSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_scale_status.py b/kubernetes/test/test_v1beta1_scale_status.py deleted file mode 100644 index bdfa7bd6f6..0000000000 --- a/kubernetes/test/test_v1beta1_scale_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_scale_status.V1beta1ScaleStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_se_linux_strategy_options.py b/kubernetes/test/test_v1beta1_se_linux_strategy_options.py new file mode 100644 index 0000000000..00e8b058eb --- /dev/null +++ b/kubernetes/test/test_v1beta1_se_linux_strategy_options.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_se_linux_strategy_options import V1beta1SELinuxStrategyOptions + + +class TestV1beta1SELinuxStrategyOptions(unittest.TestCase): + """ V1beta1SELinuxStrategyOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1SELinuxStrategyOptions(self): + """ + Test V1beta1SELinuxStrategyOptions + """ + model = kubernetes.client.models.v1beta1_se_linux_strategy_options.V1beta1SELinuxStrategyOptions() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_self_subject_access_review.py b/kubernetes/test/test_v1beta1_self_subject_access_review.py index 7b1d9752b4..a8e18f6e29 100644 --- a/kubernetes/test/test_v1beta1_self_subject_access_review.py +++ b/kubernetes/test/test_v1beta1_self_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_self_subject_access_review_spec.py b/kubernetes/test/test_v1beta1_self_subject_access_review_spec.py index f32146427d..2657d91ce4 100644 --- a/kubernetes/test/test_v1beta1_self_subject_access_review_spec.py +++ b/kubernetes/test/test_v1beta1_self_subject_access_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_stateful_set.py b/kubernetes/test/test_v1beta1_stateful_set.py index 73bf4a2b48..7c6dcf7a7e 100644 --- a/kubernetes/test/test_v1beta1_stateful_set.py +++ b/kubernetes/test/test_v1beta1_stateful_set.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_stateful_set_list.py b/kubernetes/test/test_v1beta1_stateful_set_list.py index 6b9a0444f1..ee3cc75cf8 100644 --- a/kubernetes/test/test_v1beta1_stateful_set_list.py +++ b/kubernetes/test/test_v1beta1_stateful_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_stateful_set_spec.py b/kubernetes/test/test_v1beta1_stateful_set_spec.py index 21776dcd23..18a602e90e 100644 --- a/kubernetes/test/test_v1beta1_stateful_set_spec.py +++ b/kubernetes/test/test_v1beta1_stateful_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_stateful_set_status.py b/kubernetes/test/test_v1beta1_stateful_set_status.py index 7956563235..60ca9f33f7 100644 --- a/kubernetes/test/test_v1beta1_stateful_set_status.py +++ b/kubernetes/test/test_v1beta1_stateful_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_storage_class.py b/kubernetes/test/test_v1beta1_storage_class.py index 12a4e09279..9e119f1ee4 100644 --- a/kubernetes/test/test_v1beta1_storage_class.py +++ b/kubernetes/test/test_v1beta1_storage_class.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_storage_class_list.py b/kubernetes/test/test_v1beta1_storage_class_list.py index f0388c6be2..a12b165bc9 100644 --- a/kubernetes/test/test_v1beta1_storage_class_list.py +++ b/kubernetes/test/test_v1beta1_storage_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_subject.py b/kubernetes/test/test_v1beta1_subject.py new file mode 100644 index 0000000000..e988f79e50 --- /dev/null +++ b/kubernetes/test/test_v1beta1_subject.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_subject import V1beta1Subject + + +class TestV1beta1Subject(unittest.TestCase): + """ V1beta1Subject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1Subject(self): + """ + Test V1beta1Subject + """ + model = kubernetes.client.models.v1beta1_subject.V1beta1Subject() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_subject_access_review.py b/kubernetes/test/test_v1beta1_subject_access_review.py index 234f0787b7..197be6f7b7 100644 --- a/kubernetes/test/test_v1beta1_subject_access_review.py +++ b/kubernetes/test/test_v1beta1_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_subject_access_review_spec.py b/kubernetes/test/test_v1beta1_subject_access_review_spec.py index a7f0067268..7383f7958d 100644 --- a/kubernetes/test/test_v1beta1_subject_access_review_spec.py +++ b/kubernetes/test/test_v1beta1_subject_access_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_subject_access_review_status.py b/kubernetes/test/test_v1beta1_subject_access_review_status.py index d6586f1b68..55df67797d 100644 --- a/kubernetes/test/test_v1beta1_subject_access_review_status.py +++ b/kubernetes/test/test_v1beta1_subject_access_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_subresource_reference.py b/kubernetes/test/test_v1beta1_subresource_reference.py deleted file mode 100644 index 217be0360b..0000000000 --- a/kubernetes/test/test_v1beta1_subresource_reference.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.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 = kubernetes.client.models.v1beta1_subresource_reference.V1beta1SubresourceReference() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_supplemental_groups_strategy_options.py b/kubernetes/test/test_v1beta1_supplemental_groups_strategy_options.py new file mode 100644 index 0000000000..9c0d9ca9c2 --- /dev/null +++ b/kubernetes/test/test_v1beta1_supplemental_groups_strategy_options.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v1beta1_supplemental_groups_strategy_options import V1beta1SupplementalGroupsStrategyOptions + + +class TestV1beta1SupplementalGroupsStrategyOptions(unittest.TestCase): + """ V1beta1SupplementalGroupsStrategyOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1SupplementalGroupsStrategyOptions(self): + """ + Test V1beta1SupplementalGroupsStrategyOptions + """ + model = kubernetes.client.models.v1beta1_supplemental_groups_strategy_options.V1beta1SupplementalGroupsStrategyOptions() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_third_party_resource.py b/kubernetes/test/test_v1beta1_third_party_resource.py index 2c08534906..8021692696 100644 --- a/kubernetes/test/test_v1beta1_third_party_resource.py +++ b/kubernetes/test/test_v1beta1_third_party_resource.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_third_party_resource_list.py b/kubernetes/test/test_v1beta1_third_party_resource_list.py index 85a8a57a13..c1577e5ffd 100644 --- a/kubernetes/test/test_v1beta1_third_party_resource_list.py +++ b/kubernetes/test/test_v1beta1_third_party_resource_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_token_review.py b/kubernetes/test/test_v1beta1_token_review.py index 4c0eb87731..d4f820e799 100644 --- a/kubernetes/test/test_v1beta1_token_review.py +++ b/kubernetes/test/test_v1beta1_token_review.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_token_review_spec.py b/kubernetes/test/test_v1beta1_token_review_spec.py index fc57294462..405b799195 100644 --- a/kubernetes/test/test_v1beta1_token_review_spec.py +++ b/kubernetes/test/test_v1beta1_token_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_token_review_status.py b/kubernetes/test/test_v1beta1_token_review_status.py index 9eca80432a..87c13b6c41 100644 --- a/kubernetes/test/test_v1beta1_token_review_status.py +++ b/kubernetes/test/test_v1beta1_token_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v1beta1_user_info.py b/kubernetes/test/test_v1beta1_user_info.py index 318a04a609..d93f68594e 100644 --- a/kubernetes/test/test_v1beta1_user_info.py +++ b/kubernetes/test/test_v1beta1_user_info.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v2alpha1_cron_job.py b/kubernetes/test/test_v2alpha1_cron_job.py index 33aea1e728..f919ea34cd 100644 --- a/kubernetes/test/test_v2alpha1_cron_job.py +++ b/kubernetes/test/test_v2alpha1_cron_job.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v2alpha1_cron_job_list.py b/kubernetes/test/test_v2alpha1_cron_job_list.py index 641c8b6e60..3834a97188 100644 --- a/kubernetes/test/test_v2alpha1_cron_job_list.py +++ b/kubernetes/test/test_v2alpha1_cron_job_list.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v2alpha1_cron_job_spec.py b/kubernetes/test/test_v2alpha1_cron_job_spec.py index 8f24f9b859..b14d65b29d 100644 --- a/kubernetes/test/test_v2alpha1_cron_job_spec.py +++ b/kubernetes/test/test_v2alpha1_cron_job_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v2alpha1_cron_job_status.py b/kubernetes/test/test_v2alpha1_cron_job_status.py index 9d335ab98b..165e24d16b 100644 --- a/kubernetes/test/test_v2alpha1_cron_job_status.py +++ b/kubernetes/test/test_v2alpha1_cron_job_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v2alpha1_cross_version_object_reference.py b/kubernetes/test/test_v2alpha1_cross_version_object_reference.py new file mode 100644 index 0000000000..a83ff1e394 --- /dev/null +++ b/kubernetes/test/test_v2alpha1_cross_version_object_reference.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_cross_version_object_reference import V2alpha1CrossVersionObjectReference + + +class TestV2alpha1CrossVersionObjectReference(unittest.TestCase): + """ V2alpha1CrossVersionObjectReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1CrossVersionObjectReference(self): + """ + Test V2alpha1CrossVersionObjectReference + """ + model = kubernetes.client.models.v2alpha1_cross_version_object_reference.V2alpha1CrossVersionObjectReference() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler.py b/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler.py new file mode 100644 index 0000000000..7f18dff85c --- /dev/null +++ b/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler import V2alpha1HorizontalPodAutoscaler + + +class TestV2alpha1HorizontalPodAutoscaler(unittest.TestCase): + """ V2alpha1HorizontalPodAutoscaler unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1HorizontalPodAutoscaler(self): + """ + Test V2alpha1HorizontalPodAutoscaler + """ + model = kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler.V2alpha1HorizontalPodAutoscaler() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_list.py b/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_list.py new file mode 100644 index 0000000000..77306f029e --- /dev/null +++ b/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_list.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler_list import V2alpha1HorizontalPodAutoscalerList + + +class TestV2alpha1HorizontalPodAutoscalerList(unittest.TestCase): + """ V2alpha1HorizontalPodAutoscalerList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1HorizontalPodAutoscalerList(self): + """ + Test V2alpha1HorizontalPodAutoscalerList + """ + model = kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler_list.V2alpha1HorizontalPodAutoscalerList() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_spec.py b/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_spec.py new file mode 100644 index 0000000000..18081aa132 --- /dev/null +++ b/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler_spec import V2alpha1HorizontalPodAutoscalerSpec + + +class TestV2alpha1HorizontalPodAutoscalerSpec(unittest.TestCase): + """ V2alpha1HorizontalPodAutoscalerSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1HorizontalPodAutoscalerSpec(self): + """ + Test V2alpha1HorizontalPodAutoscalerSpec + """ + model = kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler_spec.V2alpha1HorizontalPodAutoscalerSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1alpha1_certificate_signing_request_list.py b/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_status.py similarity index 50% rename from kubernetes/test/test_v1alpha1_certificate_signing_request_list.py rename to kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_status.py index 3850be78e9..d70a546401 100644 --- a/kubernetes/test/test_v1alpha1_certificate_signing_request_list.py +++ b/kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_certificate_signing_request_list import V1alpha1CertificateSigningRequestList +from kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler_status import V2alpha1HorizontalPodAutoscalerStatus -class TestV1alpha1CertificateSigningRequestList(unittest.TestCase): - """ V1alpha1CertificateSigningRequestList unit test stubs """ +class TestV2alpha1HorizontalPodAutoscalerStatus(unittest.TestCase): + """ V2alpha1HorizontalPodAutoscalerStatus unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1CertificateSigningRequestList(self): + def testV2alpha1HorizontalPodAutoscalerStatus(self): """ - Test V1alpha1CertificateSigningRequestList + Test V2alpha1HorizontalPodAutoscalerStatus """ - model = kubernetes.client.models.v1alpha1_certificate_signing_request_list.V1alpha1CertificateSigningRequestList() + model = kubernetes.client.models.v2alpha1_horizontal_pod_autoscaler_status.V2alpha1HorizontalPodAutoscalerStatus() if __name__ == '__main__': diff --git a/kubernetes/test/test_v2alpha1_job_condition.py b/kubernetes/test/test_v2alpha1_job_condition.py deleted file mode 100644 index 91f5844996..0000000000 --- a/kubernetes/test/test_v2alpha1_job_condition.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_job_condition import V2alpha1JobCondition - - -class TestV2alpha1JobCondition(unittest.TestCase): - """ V2alpha1JobCondition unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1JobCondition(self): - """ - Test V2alpha1JobCondition - """ - model = kubernetes.client.models.v2alpha1_job_condition.V2alpha1JobCondition() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_job_list.py b/kubernetes/test/test_v2alpha1_job_list.py deleted file mode 100644 index 69b9cdda2c..0000000000 --- a/kubernetes/test/test_v2alpha1_job_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_job_list import V2alpha1JobList - - -class TestV2alpha1JobList(unittest.TestCase): - """ V2alpha1JobList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1JobList(self): - """ - Test V2alpha1JobList - """ - model = kubernetes.client.models.v2alpha1_job_list.V2alpha1JobList() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_job_spec.py b/kubernetes/test/test_v2alpha1_job_spec.py deleted file mode 100644 index 28d169454d..0000000000 --- a/kubernetes/test/test_v2alpha1_job_spec.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_job_spec import V2alpha1JobSpec - - -class TestV2alpha1JobSpec(unittest.TestCase): - """ V2alpha1JobSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1JobSpec(self): - """ - Test V2alpha1JobSpec - """ - model = kubernetes.client.models.v2alpha1_job_spec.V2alpha1JobSpec() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_job_status.py b/kubernetes/test/test_v2alpha1_job_status.py deleted file mode 100644 index 10bb8edc23..0000000000 --- a/kubernetes/test/test_v2alpha1_job_status.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.5.1-660c2a2 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_job_status import V2alpha1JobStatus - - -class TestV2alpha1JobStatus(unittest.TestCase): - """ V2alpha1JobStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1JobStatus(self): - """ - Test V2alpha1JobStatus - """ - model = kubernetes.client.models.v2alpha1_job_status.V2alpha1JobStatus() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_job_template_spec.py b/kubernetes/test/test_v2alpha1_job_template_spec.py index 749630592e..4cce389ef6 100644 --- a/kubernetes/test/test_v2alpha1_job_template_spec.py +++ b/kubernetes/test/test_v2alpha1_job_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_v2alpha1_metric_spec.py b/kubernetes/test/test_v2alpha1_metric_spec.py new file mode 100644 index 0000000000..f767d3a0bd --- /dev/null +++ b/kubernetes/test/test_v2alpha1_metric_spec.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_metric_spec import V2alpha1MetricSpec + + +class TestV2alpha1MetricSpec(unittest.TestCase): + """ V2alpha1MetricSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1MetricSpec(self): + """ + Test V2alpha1MetricSpec + """ + model = kubernetes.client.models.v2alpha1_metric_spec.V2alpha1MetricSpec() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_unversioned_list_meta.py b/kubernetes/test/test_v2alpha1_metric_status.py similarity index 58% rename from kubernetes/test/test_unversioned_list_meta.py rename to kubernetes/test/test_v2alpha1_metric_status.py index af2690adc3..05bbacfa2c 100644 --- a/kubernetes/test/test_unversioned_list_meta.py +++ b/kubernetes/test/test_v2alpha1_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -19,11 +19,11 @@ import kubernetes.client from kubernetes.client.rest import ApiException -from kubernetes.client.models.unversioned_list_meta import UnversionedListMeta +from kubernetes.client.models.v2alpha1_metric_status import V2alpha1MetricStatus -class TestUnversionedListMeta(unittest.TestCase): - """ UnversionedListMeta unit test stubs """ +class TestV2alpha1MetricStatus(unittest.TestCase): + """ V2alpha1MetricStatus unit test stubs """ def setUp(self): pass @@ -31,11 +31,11 @@ def setUp(self): def tearDown(self): pass - def testUnversionedListMeta(self): + def testV2alpha1MetricStatus(self): """ - Test UnversionedListMeta + Test V2alpha1MetricStatus """ - model = kubernetes.client.models.unversioned_list_meta.UnversionedListMeta() + model = kubernetes.client.models.v2alpha1_metric_status.V2alpha1MetricStatus() if __name__ == '__main__': diff --git a/kubernetes/test/test_v2alpha1_object_metric_source.py b/kubernetes/test/test_v2alpha1_object_metric_source.py new file mode 100644 index 0000000000..86d7f2ace9 --- /dev/null +++ b/kubernetes/test/test_v2alpha1_object_metric_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_object_metric_source import V2alpha1ObjectMetricSource + + +class TestV2alpha1ObjectMetricSource(unittest.TestCase): + """ V2alpha1ObjectMetricSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1ObjectMetricSource(self): + """ + Test V2alpha1ObjectMetricSource + """ + model = kubernetes.client.models.v2alpha1_object_metric_source.V2alpha1ObjectMetricSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v2alpha1_object_metric_status.py b/kubernetes/test/test_v2alpha1_object_metric_status.py new file mode 100644 index 0000000000..8165b6feb1 --- /dev/null +++ b/kubernetes/test/test_v2alpha1_object_metric_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_object_metric_status import V2alpha1ObjectMetricStatus + + +class TestV2alpha1ObjectMetricStatus(unittest.TestCase): + """ V2alpha1ObjectMetricStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1ObjectMetricStatus(self): + """ + Test V2alpha1ObjectMetricStatus + """ + model = kubernetes.client.models.v2alpha1_object_metric_status.V2alpha1ObjectMetricStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v2alpha1_pods_metric_source.py b/kubernetes/test/test_v2alpha1_pods_metric_source.py new file mode 100644 index 0000000000..ac42b89b92 --- /dev/null +++ b/kubernetes/test/test_v2alpha1_pods_metric_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_pods_metric_source import V2alpha1PodsMetricSource + + +class TestV2alpha1PodsMetricSource(unittest.TestCase): + """ V2alpha1PodsMetricSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1PodsMetricSource(self): + """ + Test V2alpha1PodsMetricSource + """ + model = kubernetes.client.models.v2alpha1_pods_metric_source.V2alpha1PodsMetricSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v2alpha1_pods_metric_status.py b/kubernetes/test/test_v2alpha1_pods_metric_status.py new file mode 100644 index 0000000000..397896a113 --- /dev/null +++ b/kubernetes/test/test_v2alpha1_pods_metric_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_pods_metric_status import V2alpha1PodsMetricStatus + + +class TestV2alpha1PodsMetricStatus(unittest.TestCase): + """ V2alpha1PodsMetricStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1PodsMetricStatus(self): + """ + Test V2alpha1PodsMetricStatus + """ + model = kubernetes.client.models.v2alpha1_pods_metric_status.V2alpha1PodsMetricStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v2alpha1_resource_metric_source.py b/kubernetes/test/test_v2alpha1_resource_metric_source.py new file mode 100644 index 0000000000..c76d954b1a --- /dev/null +++ b/kubernetes/test/test_v2alpha1_resource_metric_source.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_resource_metric_source import V2alpha1ResourceMetricSource + + +class TestV2alpha1ResourceMetricSource(unittest.TestCase): + """ V2alpha1ResourceMetricSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1ResourceMetricSource(self): + """ + Test V2alpha1ResourceMetricSource + """ + model = kubernetes.client.models.v2alpha1_resource_metric_source.V2alpha1ResourceMetricSource() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v2alpha1_resource_metric_status.py b/kubernetes/test/test_v2alpha1_resource_metric_status.py new file mode 100644 index 0000000000..97dadb057e --- /dev/null +++ b/kubernetes/test/test_v2alpha1_resource_metric_status.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1.6.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubernetes.client +from kubernetes.client.rest import ApiException +from kubernetes.client.models.v2alpha1_resource_metric_status import V2alpha1ResourceMetricStatus + + +class TestV2alpha1ResourceMetricStatus(unittest.TestCase): + """ V2alpha1ResourceMetricStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV2alpha1ResourceMetricStatus(self): + """ + Test V2alpha1ResourceMetricStatus + """ + model = kubernetes.client.models.v2alpha1_resource_metric_status.V2alpha1ResourceMetricStatus() + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_version_api.py b/kubernetes/test/test_version_api.py index 715df5c8aa..8a5ac9f2ff 100644 --- a/kubernetes/test/test_version_api.py +++ b/kubernetes/test/test_version_api.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/kubernetes/test/test_version_info.py b/kubernetes/test/test_version_info.py index c1aba38b3c..7da9b6380a 100644 --- a/kubernetes/test/test_version_info.py +++ b/kubernetes/test/test_version_info.py @@ -5,7 +5,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - OpenAPI spec version: v1.5.1-660c2a2 + OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/scripts/swagger.json b/scripts/swagger.json index f445ce5c92..9841bbaa8a 100644 --- a/scripts/swagger.json +++ b/scripts/swagger.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Kubernetes", - "version": "v1.5.1-660c2a2" + "version": "v1.6.1" }, "paths": { "/api/": { @@ -29,7 +29,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIVersions" + "$ref": "#/definitions/v1.APIVersions" } }, "401": { @@ -62,7 +62,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIResourceList" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -128,7 +128,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -253,7 +253,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -330,7 +330,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -407,7 +407,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -484,7 +484,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -542,7 +542,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -647,7 +647,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -670,7 +670,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -706,6 +706,16 @@ "core_v1" ], "operationId": "createNamespacedBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Binding" + } + } + ], "responses": { "200": { "description": "OK", @@ -719,14 +729,6 @@ } }, "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Binding" - } - }, { "uniqueItems": true, "type": "string", @@ -782,7 +784,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -887,7 +889,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -910,7 +912,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -958,7 +960,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -1057,16 +1059,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -1099,7 +1108,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -1179,7 +1188,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -1284,7 +1293,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -1307,7 +1316,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -1355,7 +1364,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -1454,16 +1463,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -1496,7 +1512,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -1576,7 +1592,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -1681,7 +1697,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -1704,7 +1720,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -1752,7 +1768,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -1851,16 +1867,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -1893,7 +1916,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -1973,7 +1996,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -2078,7 +2101,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -2101,7 +2124,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -2149,7 +2172,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -2248,16 +2271,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -2290,7 +2320,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -2370,7 +2400,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -2475,7 +2505,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -2498,7 +2528,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -2546,7 +2576,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -2645,16 +2675,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -2687,7 +2724,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -2823,7 +2860,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -2903,7 +2940,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -3008,7 +3045,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -3031,7 +3068,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -3079,7 +3116,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -3178,16 +3215,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -3220,7 +3264,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -3389,6 +3433,16 @@ "core_v1" ], "operationId": "createNamespacedBindingBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Binding" + } + } + ], "responses": { "200": { "description": "OK", @@ -3402,14 +3456,6 @@ } }, "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Binding" - } - }, { "uniqueItems": true, "type": "string", @@ -3453,6 +3499,16 @@ "core_v1" ], "operationId": "createNamespacedEvictionEviction", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.Eviction" + } + } + ], "responses": { "200": { "description": "OK", @@ -3466,14 +3522,6 @@ } }, "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Eviction" - } - }, { "uniqueItems": true, "type": "string", @@ -3705,13 +3753,6 @@ "name": "sinceSeconds", "in": "query" }, - { - "uniqueItems": true, - "type": "string", - "description": "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.", - "name": "sinceTime", - "in": "query" - }, { "uniqueItems": true, "type": "integer", @@ -3799,6 +3840,13 @@ "name": "namespace", "in": "path", "required": true + }, + { + "uniqueItems": true, + "type": "integer", + "description": "List of ports to forward Required when using WebSockets", + "name": "ports", + "in": "query" } ] }, @@ -4282,7 +4330,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -4362,7 +4410,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -4467,7 +4515,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -4490,7 +4538,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -4538,7 +4586,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -4637,16 +4685,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -4679,7 +4734,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -4759,7 +4814,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -4864,7 +4919,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -4887,7 +4942,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -4935,7 +4990,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -5034,16 +5089,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -5076,7 +5138,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -5212,7 +5274,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -5348,7 +5410,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -5428,7 +5490,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -5533,7 +5595,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -5556,7 +5618,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -5604,7 +5666,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -5703,16 +5765,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -5745,7 +5814,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -5881,7 +5950,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -5961,7 +6030,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -6066,7 +6135,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -6089,7 +6158,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -6137,7 +6206,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -6236,16 +6305,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -6278,7 +6354,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -6358,7 +6434,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -6463,7 +6539,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -6486,7 +6562,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -6534,7 +6610,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -6633,16 +6709,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -6675,7 +6758,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -6755,7 +6838,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -6865,7 +6948,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -6949,7 +7032,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -6982,7 +7065,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -7504,7 +7587,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -7568,7 +7651,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -7667,16 +7750,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -7709,7 +7799,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -7761,6 +7851,16 @@ "core_v1" ], "operationId": "replaceNamespaceFinalize", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Namespace" + } + } + ], "responses": { "200": { "description": "OK", @@ -7774,14 +7874,6 @@ } }, "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, { "uniqueItems": true, "type": "string", @@ -7893,7 +7985,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -7965,7 +8057,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -8070,7 +8162,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -8093,7 +8185,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -8133,7 +8225,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -8232,16 +8324,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -8274,7 +8373,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -8772,7 +8871,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -8863,7 +8962,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -8921,7 +9020,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -9026,7 +9125,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -9049,7 +9148,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -9089,7 +9188,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -9188,16 +9287,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -9230,7 +9336,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -9358,7 +9464,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -9449,7 +9555,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -9526,7 +9632,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -9709,6 +9815,33 @@ } } }, + "patch": { + "description": "proxy PATCH requests to Pod", + "consumes": [ + "*/*" + ], + "produces": [ + "*/*" + ], + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "operationId": "proxyPATCHNamespacedPod", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, "parameters": [ { "uniqueItems": true, @@ -9891,6 +10024,33 @@ } } }, + "patch": { + "description": "proxy PATCH requests to Pod", + "consumes": [ + "*/*" + ], + "produces": [ + "*/*" + ], + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "operationId": "proxyPATCHNamespacedPodWithPath", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, "parameters": [ { "uniqueItems": true, @@ -10081,6 +10241,33 @@ } } }, + "patch": { + "description": "proxy PATCH requests to Service", + "consumes": [ + "*/*" + ], + "produces": [ + "*/*" + ], + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "operationId": "proxyPATCHNamespacedService", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, "parameters": [ { "uniqueItems": true, @@ -10263,6 +10450,33 @@ } } }, + "patch": { + "description": "proxy PATCH requests to Service", + "consumes": [ + "*/*" + ], + "produces": [ + "*/*" + ], + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "operationId": "proxyPATCHNamespacedServiceWithPath", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, "parameters": [ { "uniqueItems": true, @@ -10453,6 +10667,33 @@ } } }, + "patch": { + "description": "proxy PATCH requests to Node", + "consumes": [ + "*/*" + ], + "produces": [ + "*/*" + ], + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "operationId": "proxyPATCHNode", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, "parameters": [ { "uniqueItems": true, @@ -10627,6 +10868,33 @@ } } }, + "patch": { + "description": "proxy PATCH requests to Node", + "consumes": [ + "*/*" + ], + "produces": [ + "*/*" + ], + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "operationId": "proxyPATCHNodeWithPath", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "string" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, "parameters": [ { "uniqueItems": true, @@ -10703,7 +10971,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -10780,7 +11048,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -10857,7 +11125,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -10934,7 +11202,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11011,7 +11279,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11057,7 +11325,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11103,7 +11371,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11149,7 +11417,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11195,7 +11463,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11241,7 +11509,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11295,7 +11563,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11357,7 +11625,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11411,7 +11679,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11473,7 +11741,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11527,7 +11795,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11589,7 +11857,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11643,7 +11911,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11705,7 +11973,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11759,7 +12027,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11821,7 +12089,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11875,7 +12143,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11937,7 +12205,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -11991,7 +12259,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12053,7 +12321,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12107,7 +12375,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12169,7 +12437,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12223,7 +12491,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12285,7 +12553,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12339,7 +12607,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12401,7 +12669,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12455,7 +12723,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12517,7 +12785,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12571,7 +12839,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12633,7 +12901,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12687,7 +12955,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12733,7 +13001,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12787,7 +13055,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12833,7 +13101,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12879,7 +13147,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12933,7 +13201,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -12979,7 +13247,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -13025,7 +13293,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -13071,7 +13339,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -13117,7 +13385,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -13163,7 +13431,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -13209,7 +13477,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -13255,7 +13523,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -13299,7 +13567,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIGroupList" + "$ref": "#/definitions/v1.APIGroupList" } }, "401": { @@ -13332,7 +13600,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIGroup" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -13365,7 +13633,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIResourceList" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -13374,9 +13642,9 @@ } } }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets": { + "/apis/apps/v1beta1/deployments": { "get": { - "description": "list or watch objects of kind StatefulSet", + "description": "list or watch objects of kind Deployment", "consumes": [ "*/*" ], @@ -13393,7 +13661,84 @@ "tags": [ "apps_v1beta1" ], - "operationId": "listNamespacedStatefulSet", + "operationId": "listDeploymentForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/apps.v1beta1.DeploymentList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/apps/v1beta1/namespaces/{namespace}/deployments": { + "get": { + "description": "list or watch objects of kind Deployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "apps_v1beta1" + ], + "operationId": "listNamespacedDeployment", "parameters": [ { "uniqueItems": true, @@ -13412,7 +13757,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -13435,7 +13780,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StatefulSetList" + "$ref": "#/definitions/apps.v1beta1.DeploymentList" } }, "401": { @@ -13444,7 +13789,7 @@ } }, "post": { - "description": "create a StatefulSet", + "description": "create a Deployment", "consumes": [ "*/*" ], @@ -13459,14 +13804,14 @@ "tags": [ "apps_v1beta1" ], - "operationId": "createNamespacedStatefulSet", + "operationId": "createNamespacedDeployment", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" + "$ref": "#/definitions/apps.v1beta1.Deployment" } } ], @@ -13474,7 +13819,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" + "$ref": "#/definitions/apps.v1beta1.Deployment" } }, "401": { @@ -13483,7 +13828,7 @@ } }, "delete": { - "description": "delete collection of StatefulSet", + "description": "delete collection of Deployment", "consumes": [ "*/*" ], @@ -13498,7 +13843,7 @@ "tags": [ "apps_v1beta1" ], - "operationId": "deleteCollectionNamespacedStatefulSet", + "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ { "uniqueItems": true, @@ -13517,7 +13862,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -13540,7 +13885,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -13566,9 +13911,9 @@ } ] }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}": { + "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}": { "get": { - "description": "read the specified StatefulSet", + "description": "read the specified Deployment", "consumes": [ "*/*" ], @@ -13583,12 +13928,12 @@ "tags": [ "apps_v1beta1" ], - "operationId": "readNamespacedStatefulSet", + "operationId": "readNamespacedDeployment", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -13604,7 +13949,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" + "$ref": "#/definitions/apps.v1beta1.Deployment" } }, "401": { @@ -13613,7 +13958,7 @@ } }, "put": { - "description": "replace the specified StatefulSet", + "description": "replace the specified Deployment", "consumes": [ "*/*" ], @@ -13628,14 +13973,14 @@ "tags": [ "apps_v1beta1" ], - "operationId": "replaceNamespacedStatefulSet", + "operationId": "replaceNamespacedDeployment", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" + "$ref": "#/definitions/apps.v1beta1.Deployment" } } ], @@ -13643,7 +13988,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" + "$ref": "#/definitions/apps.v1beta1.Deployment" } }, "401": { @@ -13652,7 +13997,7 @@ } }, "delete": { - "description": "delete a StatefulSet", + "description": "delete a Deployment", "consumes": [ "*/*" ], @@ -13667,7 +14012,7 @@ "tags": [ "apps_v1beta1" ], - "operationId": "deleteNamespacedStatefulSet", + "operationId": "deleteNamespacedDeployment", "parameters": [ { "name": "body", @@ -13687,152 +14032,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/unversioned.Status" - } }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedStatefulSet", - "parameters": [ { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/unversioned.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status": { - "get": { - "description": "read status of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedStatefulSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedStatefulSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -13841,7 +14057,7 @@ } }, "patch": { - "description": "partially update status of the specified StatefulSet", + "description": "partially update the specified Deployment", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -13858,14 +14074,14 @@ "tags": [ "apps_v1beta1" ], - "operationId": "patchNamespacedStatefulSetStatus", + "operationId": "patchNamespacedDeployment", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -13873,7 +14089,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" + "$ref": "#/definitions/apps.v1beta1.Deployment" } }, "401": { @@ -13885,7 +14101,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the StatefulSet", + "description": "name of the Deployment", "name": "name", "in": "path", "required": true @@ -13907,18 +14123,16 @@ } ] }, - "/apis/apps/v1beta1/statefulsets": { - "get": { - "description": "list or watch objects of kind StatefulSet", + "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback": { + "post": { + "description": "create rollback of a DeploymentRollback", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "schemes": [ "https" @@ -13926,12 +14140,22 @@ "tags": [ "apps_v1beta1" ], - "operationId": "listStatefulSetForAllNamespaces", + "operationId": "createNamespacedDeploymentRollbackRollback", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/apps.v1beta1.DeploymentRollback" + } + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StatefulSetList" + "$ref": "#/definitions/apps.v1beta1.DeploymentRollback" } }, "401": { @@ -13943,121 +14167,7 @@ { "uniqueItems": true, "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", + "description": "name of the DeploymentRollback", "name": "name", "in": "path", "required": true @@ -14076,83 +14186,14 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/statefulsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/authentication.k8s.io/": { + "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale": { "get": { - "description": "get information of a group", + "description": "read scale of the specified Scale", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", @@ -14163,29 +14204,25 @@ "https" ], "tags": [ - "authentication" + "apps_v1beta1" ], - "operationId": "getAPIGroup", + "operationId": "readNamespacedScaleScale", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIGroup" + "$ref": "#/definitions/apps.v1beta1.Scale" } }, "401": { "description": "Unauthorized" } } - } - }, - "/apis/authentication.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", + }, + "put": { + "description": "replace scale of the specified Scale", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", @@ -14196,27 +14233,37 @@ "https" ], "tags": [ - "authentication_v1beta1" + "apps_v1beta1" + ], + "operationId": "replaceNamespacedScaleScale", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/apps.v1beta1.Scale" + } + } ], - "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIResourceList" + "$ref": "#/definitions/apps.v1beta1.Scale" } }, "401": { "description": "Unauthorized" } } - } - }, - "/apis/authentication.k8s.io/v1beta1/tokenreviews": { - "post": { - "description": "create a TokenReview", + }, + "patch": { + "description": "partially update scale of the specified Scale", "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" ], "produces": [ "application/json", @@ -14227,14 +14274,24 @@ "https" ], "tags": [ - "authentication_v1beta1" + "apps_v1beta1" + ], + "operationId": "patchNamespacedScaleScale", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + } ], - "operationId": "createTokenReview", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.TokenReview" + "$ref": "#/definitions/apps.v1beta1.Scale" } }, "401": { @@ -14244,12 +14301,20 @@ }, "parameters": [ { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.TokenReview" - } + "uniqueItems": true, + "type": "string", + "description": "name of the Scale", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true }, { "uniqueItems": true, @@ -14260,13 +14325,11 @@ } ] }, - "/apis/authorization.k8s.io/": { + "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status": { "get": { - "description": "get information of a group", + "description": "read status of the specified Deployment", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", @@ -14277,29 +14340,25 @@ "https" ], "tags": [ - "authorization" + "apps_v1beta1" ], - "operationId": "getAPIGroup", + "operationId": "readNamespacedDeploymentStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIGroup" + "$ref": "#/definitions/apps.v1beta1.Deployment" } }, "401": { "description": "Unauthorized" } } - } - }, - "/apis/authorization.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", + }, + "put": { + "description": "replace status of the specified Deployment", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", @@ -14310,27 +14369,37 @@ "https" ], "tags": [ - "authorization_v1beta1" + "apps_v1beta1" + ], + "operationId": "replaceNamespacedDeploymentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/apps.v1beta1.Deployment" + } + } ], - "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIResourceList" + "$ref": "#/definitions/apps.v1beta1.Deployment" } }, "401": { "description": "Unauthorized" } } - } - }, - "/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews": { - "post": { - "description": "create a LocalSubjectAccessReview", + }, + "patch": { + "description": "partially update status of the specified Deployment", "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" ], "produces": [ "application/json", @@ -14341,14 +14410,24 @@ "https" ], "tags": [ - "authorization_v1beta1" + "apps_v1beta1" + ], + "operationId": "patchNamespacedDeploymentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + } ], - "operationId": "createNamespacedLocalSubjectAccessReview", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LocalSubjectAccessReview" + "$ref": "#/definitions/apps.v1beta1.Deployment" } }, "401": { @@ -14358,12 +14437,12 @@ }, "parameters": [ { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.LocalSubjectAccessReview" - } + "uniqueItems": true, + "type": "string", + "description": "name of the Deployment", + "name": "name", + "in": "path", + "required": true }, { "uniqueItems": true, @@ -14382,29 +14461,68 @@ } ] }, - "/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews": { - "post": { - "description": "create a SelfSubjectAccessReview", + "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets": { + "get": { + "description": "list or watch objects of kind StatefulSet", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "schemes": [ "https" ], "tags": [ - "authorization_v1beta1" + "apps_v1beta1" + ], + "operationId": "listNamespacedStatefulSet", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } ], - "operationId": "createSelfSubjectAccessReview", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.SelfSubjectAccessReview" + "$ref": "#/definitions/v1beta1.StatefulSetList" } }, "401": { @@ -14412,27 +14530,47 @@ } } }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.SelfSubjectAccessReview" + "post": { + "description": "create a StatefulSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "apps_v1beta1" + ], + "operationId": "createNamespacedStatefulSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.StatefulSet" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" } - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" } - ] - }, - "/apis/authorization.k8s.io/v1beta1/subjectaccessreviews": { - "post": { - "description": "create a SubjectAccessReview", + }, + "delete": { + "description": "delete collection of StatefulSet", "consumes": [ "*/*" ], @@ -14445,14 +14583,51 @@ "https" ], "tags": [ - "authorization_v1beta1" + "apps_v1beta1" + ], + "operationId": "deleteCollectionNamespacedStatefulSet", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } ], - "operationId": "createSubjectAccessReview", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.SubjectAccessReview" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -14462,12 +14637,12 @@ }, "parameters": [ { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.SubjectAccessReview" - } + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true }, { "uniqueItems": true, @@ -14478,13 +14653,11 @@ } ] }, - "/apis/autoscaling/": { + "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}": { "get": { - "description": "get information of a group", + "description": "read the specified StatefulSet", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", @@ -14495,347 +14668,14 @@ "https" ], "tags": [ - "autoscaling" + "apps_v1beta1" ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/unversioned.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/autoscaling/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/unversioned.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/autoscaling/v1/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "listNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "createNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/unversioned.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "description": "read the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "readNamespacedHorizontalPodAutoscaler", + "operationId": "readNamespacedStatefulSet", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -14851,7 +14691,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.StatefulSet" } }, "401": { @@ -14860,7 +14700,7 @@ } }, "put": { - "description": "replace the specified HorizontalPodAutoscaler", + "description": "replace the specified StatefulSet", "consumes": [ "*/*" ], @@ -14873,16 +14713,16 @@ "https" ], "tags": [ - "autoscaling_v1" + "apps_v1beta1" ], - "operationId": "replaceNamespacedHorizontalPodAutoscaler", + "operationId": "replaceNamespacedStatefulSet", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.StatefulSet" } } ], @@ -14890,7 +14730,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.StatefulSet" } }, "401": { @@ -14899,7 +14739,7 @@ } }, "delete": { - "description": "delete a HorizontalPodAutoscaler", + "description": "delete a StatefulSet", "consumes": [ "*/*" ], @@ -14912,9 +14752,9 @@ "https" ], "tags": [ - "autoscaling_v1" + "apps_v1beta1" ], - "operationId": "deleteNamespacedHorizontalPodAutoscaler", + "operationId": "deleteNamespacedStatefulSet", "parameters": [ { "name": "body", @@ -14934,16 +14774,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -14952,7 +14799,7 @@ } }, "patch": { - "description": "partially update the specified HorizontalPodAutoscaler", + "description": "partially update the specified StatefulSet", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -14967,16 +14814,16 @@ "https" ], "tags": [ - "autoscaling_v1" + "apps_v1beta1" ], - "operationId": "patchNamespacedHorizontalPodAutoscaler", + "operationId": "patchNamespacedStatefulSet", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -14984,7 +14831,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.StatefulSet" } }, "401": { @@ -14996,7 +14843,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the StatefulSet", "name": "name", "in": "path", "required": true @@ -15018,9 +14865,9 @@ } ] }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status": { "get": { - "description": "read status of the specified HorizontalPodAutoscaler", + "description": "read status of the specified StatefulSet", "consumes": [ "*/*" ], @@ -15033,14 +14880,14 @@ "https" ], "tags": [ - "autoscaling_v1" + "apps_v1beta1" ], - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", + "operationId": "readNamespacedStatefulSetStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.StatefulSet" } }, "401": { @@ -15049,7 +14896,7 @@ } }, "put": { - "description": "replace status of the specified HorizontalPodAutoscaler", + "description": "replace status of the specified StatefulSet", "consumes": [ "*/*" ], @@ -15062,16 +14909,16 @@ "https" ], "tags": [ - "autoscaling_v1" + "apps_v1beta1" ], - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", + "operationId": "replaceNamespacedStatefulSetStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.StatefulSet" } } ], @@ -15079,7 +14926,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.StatefulSet" } }, "401": { @@ -15088,7 +14935,7 @@ } }, "patch": { - "description": "partially update status of the specified HorizontalPodAutoscaler", + "description": "partially update status of the specified StatefulSet", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -15103,16 +14950,16 @@ "https" ], "tags": [ - "autoscaling_v1" + "apps_v1beta1" ], - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", + "operationId": "patchNamespacedStatefulSetStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -15120,7 +14967,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.StatefulSet" } }, "401": { @@ -15132,7 +14979,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the StatefulSet", "name": "name", "in": "path", "required": true @@ -15154,7 +15001,38 @@ } ] }, - "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { + "/apis/apps/v1beta1/statefulsets": { + "get": { + "description": "list or watch objects of kind StatefulSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "apps_v1beta1" + ], + "operationId": "listStatefulSetForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.StatefulSetList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, "parameters": [ { "uniqueItems": true, @@ -15180,7 +15058,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -15200,7 +15078,53 @@ } ] }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/apps/v1beta1/watch/deployments": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/apps/v1beta1/watch/namespaces/{namespace}/deployments": { "parameters": [ { "uniqueItems": true, @@ -15234,7 +15158,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -15254,7 +15178,7 @@ } ] }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/apps/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { "parameters": [ { "uniqueItems": true, @@ -15273,7 +15197,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the Deployment", "name": "name", "in": "path", "required": true @@ -15296,7 +15220,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -15316,104 +15240,123 @@ } ] }, - "/apis/batch/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/unversioned.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/batch/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/unversioned.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } - } + ] }, - "/apis/batch/v1/jobs": { - "get": { - "description": "list or watch objects of kind Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "listJobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the StatefulSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } - }, + ] + }, + "/apis/apps/v1beta1/watch/statefulsets": { "parameters": [ { "uniqueItems": true, @@ -15439,7 +15382,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -15459,79 +15402,46 @@ } ] }, - "/apis/batch/v1/namespaces/{namespace}/jobs": { + "/apis/authentication.k8s.io/": { "get": { - "description": "list or watch objects of kind Job", + "description": "get information of a group", "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "schemes": [ "https" ], "tags": [ - "batch_v1" - ], - "operationId": "listNamespacedJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } + "authentication" ], + "operationId": "getAPIGroup", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.JobList" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { "description": "Unauthorized" } } - }, - "post": { - "description": "create a Job", + } + }, + "/apis/authentication.k8s.io/v1/": { + "get": { + "description": "get available resources", "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "produces": [ "application/json", @@ -15542,33 +15452,25 @@ "https" ], "tags": [ - "batch_v1" - ], - "operationId": "createNamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Job" - } - } + "authentication_v1" ], + "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { "description": "Unauthorized" } } - }, - "delete": { - "description": "delete collection of Job", + } + }, + "/apis/authentication.k8s.io/v1/tokenreviews": { + "post": { + "description": "create a TokenReview", "consumes": [ "*/*" ], @@ -15581,51 +15483,24 @@ "https" ], "tags": [ - "batch_v1" + "authentication_v1" ], - "operationId": "deleteCollectionNamespacedJob", + "operationId": "createTokenReview", "parameters": [ { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.TokenReview" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.TokenReview" } }, "401": { @@ -15634,14 +15509,6 @@ } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -15651,11 +15518,13 @@ } ] }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { + "/apis/authentication.k8s.io/v1beta1/": { "get": { - "description": "read the specified Job", + "description": "get available resources", "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "produces": [ "application/json", @@ -15666,39 +15535,25 @@ "https" ], "tags": [ - "batch_v1" - ], - "operationId": "readNamespacedJob", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } + "authentication_v1beta1" ], + "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { "description": "Unauthorized" } } - }, - "put": { - "description": "replace the specified Job", + } + }, + "/apis/authentication.k8s.io/v1beta1/tokenreviews": { + "post": { + "description": "create a TokenReview", "consumes": [ "*/*" ], @@ -15711,16 +15566,16 @@ "https" ], "tags": [ - "batch_v1" + "authentication_v1beta1" ], - "operationId": "replaceNamespacedJob", + "operationId": "createTokenReview", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1beta1.TokenReview" } } ], @@ -15728,7 +15583,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1beta1.TokenReview" } }, "401": { @@ -15736,10 +15591,23 @@ } } }, - "delete": { - "description": "delete a Job", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.k8s.io/": { + "get": { + "description": "get information of a group", "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "produces": [ "application/json", @@ -15750,51 +15618,60 @@ "https" ], "tags": [ - "batch_v1" + "authorization" ], - "operationId": "deleteNamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, + "operationId": "getAPIGroup", + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.APIGroup" } }, - { - "uniqueItems": true, - "type": "integer", - "description": "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", - "name": "orphanDependents", - "in": "query" + "401": { + "description": "Unauthorized" } + } + } + }, + "/apis/authorization.k8s.io/v1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1" + ], + "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { "description": "Unauthorized" } } - }, - "patch": { - "description": "partially update the specified Job", + } + }, + "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews": { + "post": { + "description": "create a LocalSubjectAccessReview", "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" + "*/*" ], "produces": [ "application/json", @@ -15805,16 +15682,16 @@ "https" ], "tags": [ - "batch_v1" + "authorization_v1" ], - "operationId": "patchNamespacedJob", + "operationId": "createNamespacedLocalSubjectAccessReview", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.LocalSubjectAccessReview" } } ], @@ -15822,7 +15699,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.LocalSubjectAccessReview" } }, "401": { @@ -15831,14 +15708,6 @@ } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Job", - "name": "name", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -15856,9 +15725,9 @@ } ] }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { - "get": { - "description": "read status of the specified Job", + "/apis/authorization.k8s.io/v1/selfsubjectaccessreviews": { + "post": { + "description": "create a SelfSubjectAccessReview", "consumes": [ "*/*" ], @@ -15871,14 +15740,24 @@ "https" ], "tags": [ - "batch_v1" + "authorization_v1" + ], + "operationId": "createSelfSubjectAccessReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SelfSubjectAccessReview" + } + } ], - "operationId": "readNamespacedJobStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.SelfSubjectAccessReview" } }, "401": { @@ -15886,8 +15765,19 @@ } } }, - "put": { - "description": "replace status of the specified Job", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.k8s.io/v1/subjectaccessreviews": { + "post": { + "description": "create a SubjectAccessReview", "consumes": [ "*/*" ], @@ -15900,16 +15790,16 @@ "https" ], "tags": [ - "batch_v1" + "authorization_v1" ], - "operationId": "replaceNamespacedJobStatus", + "operationId": "createSubjectAccessReview", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.SubjectAccessReview" } } ], @@ -15917,7 +15807,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.SubjectAccessReview" } }, "401": { @@ -15925,12 +15815,23 @@ } } }, - "patch": { - "description": "partially update status of the specified Job", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.k8s.io/v1beta1/": { + "get": { + "description": "get available resources", "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "produces": [ "application/json", @@ -15941,41 +15842,64 @@ "https" ], "tags": [ - "batch_v1" - ], - "operationId": "patchNamespacedJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/unversioned.Patch" - } - } + "authorization_v1beta1" ], + "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { "description": "Unauthorized" } } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Job", - "name": "name", - "in": "path", - "required": true - }, - { + } + }, + "/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews": { + "post": { + "description": "create a LocalSubjectAccessReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1beta1" + ], + "operationId": "createNamespacedLocalSubjectAccessReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.LocalSubjectAccessReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.LocalSubjectAccessReview" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { "uniqueItems": true, "type": "string", "description": "object name and auth scope, such as for teams and projects", @@ -15992,171 +15916,109 @@ } ] }, - "/apis/batch/v1/watch/jobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" + "/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews": { + "post": { + "description": "create a SelfSubjectAccessReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1beta1" + ], + "operationId": "createSelfSubjectAccessReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.SelfSubjectAccessReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.SelfSubjectAccessReview" + } + }, + "401": { + "description": "Unauthorized" + } } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { + }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { + "/apis/authorization.k8s.io/v1beta1/subjectaccessreviews": { + "post": { + "description": "create a SubjectAccessReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorization_v1beta1" + ], + "operationId": "createSubjectAccessReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.SubjectAccessReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.SubjectAccessReview" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Job", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/batch/v2alpha1/": { + "/apis/autoscaling/": { "get": { - "description": "get available resources", + "description": "get information of a group", "consumes": [ "application/json", "application/yaml", @@ -16171,14 +16033,14 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling" ], - "operationId": "getAPIResources", + "operationId": "getAPIGroup", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIResourceList" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -16187,86 +16049,42 @@ } } }, - "/apis/batch/v2alpha1/cronjobs": { + "/apis/autoscaling/v1/": { "get": { - "description": "list or watch objects of kind CronJob", + "description": "get available resources", "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "schemes": [ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v1" ], - "operationId": "listCronJobForAllNamespaces", + "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJobList" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { "description": "Unauthorized" } } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] + } }, - "/apis/batch/v2alpha1/jobs": { + "/apis/autoscaling/v1/horizontalpodautoscalers": { "get": { - "description": "list or watch objects of kind Job", + "description": "list or watch objects of kind HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -16281,14 +16099,14 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v1" ], - "operationId": "listJobForAllNamespaces", + "operationId": "listHorizontalPodAutoscalerForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.JobList" + "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" } }, "401": { @@ -16321,7 +16139,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -16341,9 +16159,9 @@ } ] }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs": { + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { "get": { - "description": "list or watch objects of kind CronJob", + "description": "list or watch objects of kind HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -16358,9 +16176,9 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v1" ], - "operationId": "listNamespacedCronJob", + "operationId": "listNamespacedHorizontalPodAutoscaler", "parameters": [ { "uniqueItems": true, @@ -16379,7 +16197,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -16402,7 +16220,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJobList" + "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" } }, "401": { @@ -16411,7 +16229,7 @@ } }, "post": { - "description": "create a CronJob", + "description": "create a HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -16424,16 +16242,16 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v1" ], - "operationId": "createNamespacedCronJob", + "operationId": "createNamespacedHorizontalPodAutoscaler", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } } ], @@ -16441,7 +16259,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "401": { @@ -16450,7 +16268,7 @@ } }, "delete": { - "description": "delete collection of CronJob", + "description": "delete collection of HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -16463,9 +16281,9 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v1" ], - "operationId": "deleteCollectionNamespacedCronJob", + "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", "parameters": [ { "uniqueItems": true, @@ -16484,7 +16302,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -16507,7 +16325,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -16533,9 +16351,9 @@ } ] }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}": { + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "get": { - "description": "read the specified CronJob", + "description": "read the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -16548,14 +16366,14 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v1" ], - "operationId": "readNamespacedCronJob", + "operationId": "readNamespacedHorizontalPodAutoscaler", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -16571,7 +16389,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "401": { @@ -16580,7 +16398,7 @@ } }, "put": { - "description": "replace the specified CronJob", + "description": "replace the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -16593,16 +16411,16 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v1" ], - "operationId": "replaceNamespacedCronJob", + "operationId": "replaceNamespacedHorizontalPodAutoscaler", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } } ], @@ -16610,7 +16428,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "401": { @@ -16619,7 +16437,7 @@ } }, "delete": { - "description": "delete a CronJob", + "description": "delete a HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -16632,9 +16450,9 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v1" ], - "operationId": "deleteNamespacedCronJob", + "operationId": "deleteNamespacedHorizontalPodAutoscaler", "parameters": [ { "name": "body", @@ -16654,16 +16472,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -16672,7 +16497,7 @@ } }, "patch": { - "description": "partially update the specified CronJob", + "description": "partially update the specified HorizontalPodAutoscaler", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -16687,16 +16512,16 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v1" ], - "operationId": "patchNamespacedCronJob", + "operationId": "patchNamespacedHorizontalPodAutoscaler", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -16704,7 +16529,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "401": { @@ -16716,7 +16541,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the CronJob", + "description": "name of the HorizontalPodAutoscaler", "name": "name", "in": "path", "required": true @@ -16738,9 +16563,9 @@ } ] }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status": { + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { "get": { - "description": "read status of the specified CronJob", + "description": "read status of the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -16753,14 +16578,14 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v1" ], - "operationId": "readNamespacedCronJobStatus", + "operationId": "readNamespacedHorizontalPodAutoscalerStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "401": { @@ -16769,7 +16594,7 @@ } }, "put": { - "description": "replace status of the specified CronJob", + "description": "replace status of the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -16782,16 +16607,16 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v1" ], - "operationId": "replaceNamespacedCronJobStatus", + "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } } ], @@ -16799,7 +16624,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "401": { @@ -16808,7 +16633,7 @@ } }, "patch": { - "description": "partially update status of the specified CronJob", + "description": "partially update status of the specified HorizontalPodAutoscaler", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -16823,16 +16648,16 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v1" ], - "operationId": "patchNamespacedCronJobStatus", + "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -16840,7 +16665,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "401": { @@ -16852,7 +16677,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the CronJob", + "description": "name of the HorizontalPodAutoscaler", "name": "name", "in": "path", "required": true @@ -16874,99 +16699,371 @@ } ] }, - "/apis/batch/v2alpha1/namespaces/{namespace}/jobs": { - "get": { - "description": "list or watch objects of kind Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "listNamespacedJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], + "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the HorizontalPodAutoscaler", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/autoscaling/v2alpha1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], "schemes": [ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v2alpha1" ], - "operationId": "createNamespacedJob", + "operationId": "getAPIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/autoscaling/v2alpha1/horizontalpodautoscalers": { + "get": { + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2alpha1" + ], + "operationId": "listHorizontalPodAutoscalerForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscalerList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers": { + "get": { + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2alpha1" + ], + "operationId": "listNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscalerList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "post": { + "description": "create a HorizontalPodAutoscaler", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2alpha1" + ], + "operationId": "createNamespacedHorizontalPodAutoscaler", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v2alpha1.Job" + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" } } ], @@ -16974,7 +17071,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.Job" + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" } }, "401": { @@ -16983,7 +17080,7 @@ } }, "delete": { - "description": "delete collection of Job", + "description": "delete collection of HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -16996,9 +17093,9 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v2alpha1" ], - "operationId": "deleteCollectionNamespacedJob", + "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", "parameters": [ { "uniqueItems": true, @@ -17017,7 +17114,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -17040,7 +17137,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -17066,9 +17163,9 @@ } ] }, - "/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}": { + "/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "get": { - "description": "read the specified Job", + "description": "read the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -17081,14 +17178,14 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v2alpha1" ], - "operationId": "readNamespacedJob", + "operationId": "readNamespacedHorizontalPodAutoscaler", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -17104,7 +17201,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.Job" + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" } }, "401": { @@ -17113,7 +17210,7 @@ } }, "put": { - "description": "replace the specified Job", + "description": "replace the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -17126,16 +17223,16 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v2alpha1" ], - "operationId": "replaceNamespacedJob", + "operationId": "replaceNamespacedHorizontalPodAutoscaler", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v2alpha1.Job" + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" } } ], @@ -17143,7 +17240,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.Job" + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" } }, "401": { @@ -17152,7 +17249,7 @@ } }, "delete": { - "description": "delete a Job", + "description": "delete a HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -17165,9 +17262,9 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v2alpha1" ], - "operationId": "deleteNamespacedJob", + "operationId": "deleteNamespacedHorizontalPodAutoscaler", "parameters": [ { "name": "body", @@ -17187,16 +17284,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -17205,7 +17309,7 @@ } }, "patch": { - "description": "partially update the specified Job", + "description": "partially update the specified HorizontalPodAutoscaler", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -17220,16 +17324,16 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v2alpha1" ], - "operationId": "patchNamespacedJob", + "operationId": "patchNamespacedHorizontalPodAutoscaler", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -17237,7 +17341,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.Job" + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" } }, "401": { @@ -17249,7 +17353,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Job", + "description": "name of the HorizontalPodAutoscaler", "name": "name", "in": "path", "required": true @@ -17271,9 +17375,9 @@ } ] }, - "/apis/batch/v2alpha1/namespaces/{namespace}/jobs/{name}/status": { + "/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { "get": { - "description": "read status of the specified Job", + "description": "read status of the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -17286,14 +17390,14 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v2alpha1" ], - "operationId": "readNamespacedJobStatus", + "operationId": "readNamespacedHorizontalPodAutoscalerStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.Job" + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" } }, "401": { @@ -17302,7 +17406,7 @@ } }, "put": { - "description": "replace status of the specified Job", + "description": "replace status of the specified HorizontalPodAutoscaler", "consumes": [ "*/*" ], @@ -17315,16 +17419,16 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v2alpha1" ], - "operationId": "replaceNamespacedJobStatus", + "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v2alpha1.Job" + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" } } ], @@ -17332,7 +17436,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.Job" + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" } }, "401": { @@ -17341,7 +17445,7 @@ } }, "patch": { - "description": "partially update status of the specified Job", + "description": "partially update status of the specified HorizontalPodAutoscaler", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -17356,16 +17460,16 @@ "https" ], "tags": [ - "batch_v2alpha1" + "autoscaling_v2alpha1" ], - "operationId": "patchNamespacedJobStatus", + "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -17373,7 +17477,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.Job" + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" } }, "401": { @@ -17385,7 +17489,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Job", + "description": "name of the HorizontalPodAutoscaler", "name": "name", "in": "path", "required": true @@ -17407,99 +17511,404 @@ } ] }, - "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs": { - "get": { - "description": "list or watch objects of kind ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "listNamespacedScheduledJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/autoscaling/v2alpha1/watch/horizontalpodautoscalers": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } - }, - "post": { - "description": "create a ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" + ] + }, + "/apis/autoscaling/v2alpha1/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/autoscaling/v2alpha1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the HorizontalPodAutoscaler", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/batch/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], - "operationId": "createNamespacedScheduledJob", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "batch" + ], + "operationId": "getAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/batch/v1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "operationId": "getAPIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/batch/v1/jobs": { + "get": { + "description": "list or watch objects of kind Job", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "operationId": "listJobForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.JobList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/batch/v1/namespaces/{namespace}/jobs": { + "get": { + "description": "list or watch objects of kind Job", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "operationId": "listNamespacedJob", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.JobList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "post": { + "description": "create a Job", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "operationId": "createNamespacedJob", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.Job" } } ], @@ -17507,7 +17916,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -17516,7 +17925,7 @@ } }, "delete": { - "description": "delete collection of ScheduledJob", + "description": "delete collection of Job", "consumes": [ "*/*" ], @@ -17529,9 +17938,9 @@ "https" ], "tags": [ - "batch_v2alpha1" + "batch_v1" ], - "operationId": "deleteCollectionNamespacedScheduledJob", + "operationId": "deleteCollectionNamespacedJob", "parameters": [ { "uniqueItems": true, @@ -17550,7 +17959,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -17573,7 +17982,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -17599,9 +18008,9 @@ } ] }, - "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}": { + "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { "get": { - "description": "read the specified ScheduledJob", + "description": "read the specified Job", "consumes": [ "*/*" ], @@ -17614,14 +18023,14 @@ "https" ], "tags": [ - "batch_v2alpha1" + "batch_v1" ], - "operationId": "readNamespacedScheduledJob", + "operationId": "readNamespacedJob", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -17637,7 +18046,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -17646,7 +18055,7 @@ } }, "put": { - "description": "replace the specified ScheduledJob", + "description": "replace the specified Job", "consumes": [ "*/*" ], @@ -17659,16 +18068,16 @@ "https" ], "tags": [ - "batch_v2alpha1" + "batch_v1" ], - "operationId": "replaceNamespacedScheduledJob", + "operationId": "replaceNamespacedJob", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.Job" } } ], @@ -17676,7 +18085,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -17685,7 +18094,7 @@ } }, "delete": { - "description": "delete a ScheduledJob", + "description": "delete a Job", "consumes": [ "*/*" ], @@ -17698,9 +18107,9 @@ "https" ], "tags": [ - "batch_v2alpha1" + "batch_v1" ], - "operationId": "deleteNamespacedScheduledJob", + "operationId": "deleteNamespacedJob", "parameters": [ { "name": "body", @@ -17720,16 +18129,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -17738,7 +18154,7 @@ } }, "patch": { - "description": "partially update the specified ScheduledJob", + "description": "partially update the specified Job", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -17753,16 +18169,16 @@ "https" ], "tags": [ - "batch_v2alpha1" + "batch_v1" ], - "operationId": "patchNamespacedScheduledJob", + "operationId": "patchNamespacedJob", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -17770,7 +18186,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -17782,7 +18198,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the ScheduledJob", + "description": "name of the Job", "name": "name", "in": "path", "required": true @@ -17804,9 +18220,9 @@ } ] }, - "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status": { + "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { "get": { - "description": "read status of the specified ScheduledJob", + "description": "read status of the specified Job", "consumes": [ "*/*" ], @@ -17819,14 +18235,14 @@ "https" ], "tags": [ - "batch_v2alpha1" + "batch_v1" ], - "operationId": "readNamespacedScheduledJobStatus", + "operationId": "readNamespacedJobStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -17835,7 +18251,7 @@ } }, "put": { - "description": "replace status of the specified ScheduledJob", + "description": "replace status of the specified Job", "consumes": [ "*/*" ], @@ -17848,16 +18264,16 @@ "https" ], "tags": [ - "batch_v2alpha1" + "batch_v1" ], - "operationId": "replaceNamespacedScheduledJobStatus", + "operationId": "replaceNamespacedJobStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.Job" } } ], @@ -17865,7 +18281,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -17874,7 +18290,7 @@ } }, "patch": { - "description": "partially update status of the specified ScheduledJob", + "description": "partially update status of the specified Job", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -17889,16 +18305,16 @@ "https" ], "tags": [ - "batch_v2alpha1" + "batch_v1" ], - "operationId": "patchNamespacedScheduledJobStatus", + "operationId": "patchNamespacedJobStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -17906,7 +18322,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -17918,7 +18334,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the ScheduledJob", + "description": "name of the Job", "name": "name", "in": "path", "required": true @@ -17940,38 +18356,7 @@ } ] }, - "/apis/batch/v2alpha1/scheduledjobs": { - "get": { - "description": "list or watch objects of kind ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "listScheduledJobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + "/apis/batch/v1/watch/jobs": { "parameters": [ { "uniqueItems": true, @@ -17997,7 +18382,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -18017,7 +18402,7 @@ } ] }, - "/apis/batch/v2alpha1/watch/cronjobs": { + "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { "parameters": [ { "uniqueItems": true, @@ -18036,48 +18421,10 @@ { "uniqueItems": true, "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/jobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true }, { "uniqueItems": true, @@ -18089,7 +18436,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -18109,7 +18456,7 @@ } ] }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs": { + "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { "parameters": [ { "uniqueItems": true, @@ -18125,6 +18472,14 @@ "name": "labelSelector", "in": "query" }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Job", + "name": "name", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -18143,7 +18498,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -18163,349 +18518,9 @@ } ] }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/jobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/jobs/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Job", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/scheduledjobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/scheduledjobs/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ScheduledJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/scheduledjobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/": { + "/apis/batch/v2alpha1/": { "get": { - "description": "get information of a group", + "description": "get available resources", "consumes": [ "application/json", "application/yaml", @@ -18520,14 +18535,14 @@ "https" ], "tags": [ - "certificates" + "batch_v2alpha1" ], - "operationId": "getAPIGroup", + "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIGroup" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -18536,42 +18551,86 @@ } } }, - "/apis/certificates.k8s.io/v1alpha1/": { + "/apis/batch/v2alpha1/cronjobs": { "get": { - "description": "get available resources", + "description": "list or watch objects of kind CronJob", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "schemes": [ "https" ], "tags": [ - "certificates_v1alpha1" + "batch_v2alpha1" ], - "operationId": "getAPIResources", + "operationId": "listCronJobForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIResourceList" + "$ref": "#/definitions/v2alpha1.CronJobList" } }, "401": { "description": "Unauthorized" } } - } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] }, - "/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests": { + "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs": { "get": { - "description": "list or watch objects of kind CertificateSigningRequest", + "description": "list or watch objects of kind CronJob", "consumes": [ "*/*" ], @@ -18586,9 +18645,9 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "batch_v2alpha1" ], - "operationId": "listCertificateSigningRequest", + "operationId": "listNamespacedCronJob", "parameters": [ { "uniqueItems": true, @@ -18607,7 +18666,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -18630,7 +18689,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.CertificateSigningRequestList" + "$ref": "#/definitions/v2alpha1.CronJobList" } }, "401": { @@ -18639,7 +18698,7 @@ } }, "post": { - "description": "create a CertificateSigningRequest", + "description": "create a CronJob", "consumes": [ "*/*" ], @@ -18652,16 +18711,16 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "batch_v2alpha1" ], - "operationId": "createCertificateSigningRequest", + "operationId": "createNamespacedCronJob", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" + "$ref": "#/definitions/v2alpha1.CronJob" } } ], @@ -18669,7 +18728,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" + "$ref": "#/definitions/v2alpha1.CronJob" } }, "401": { @@ -18678,7 +18737,7 @@ } }, "delete": { - "description": "delete collection of CertificateSigningRequest", + "description": "delete collection of CronJob", "consumes": [ "*/*" ], @@ -18691,9 +18750,9 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "batch_v2alpha1" ], - "operationId": "deleteCollectionCertificateSigningRequest", + "operationId": "deleteCollectionNamespacedCronJob", "parameters": [ { "uniqueItems": true, @@ -18712,7 +18771,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -18735,7 +18794,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -18744,6 +18803,14 @@ } }, "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -18753,9 +18820,9 @@ } ] }, - "/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}": { + "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}": { "get": { - "description": "read the specified CertificateSigningRequest", + "description": "read the specified CronJob", "consumes": [ "*/*" ], @@ -18768,14 +18835,14 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "batch_v2alpha1" ], - "operationId": "readCertificateSigningRequest", + "operationId": "readNamespacedCronJob", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -18791,7 +18858,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" + "$ref": "#/definitions/v2alpha1.CronJob" } }, "401": { @@ -18800,7 +18867,7 @@ } }, "put": { - "description": "replace the specified CertificateSigningRequest", + "description": "replace the specified CronJob", "consumes": [ "*/*" ], @@ -18813,16 +18880,16 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "batch_v2alpha1" ], - "operationId": "replaceCertificateSigningRequest", + "operationId": "replaceNamespacedCronJob", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" + "$ref": "#/definitions/v2alpha1.CronJob" } } ], @@ -18830,7 +18897,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" + "$ref": "#/definitions/v2alpha1.CronJob" } }, "401": { @@ -18839,7 +18906,7 @@ } }, "delete": { - "description": "delete a CertificateSigningRequest", + "description": "delete a CronJob", "consumes": [ "*/*" ], @@ -18852,9 +18919,9 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "batch_v2alpha1" ], - "operationId": "deleteCertificateSigningRequest", + "operationId": "deleteNamespacedCronJob", "parameters": [ { "name": "body", @@ -18874,16 +18941,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -18892,7 +18966,7 @@ } }, "patch": { - "description": "partially update the specified CertificateSigningRequest", + "description": "partially update the specified CronJob", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -18907,16 +18981,16 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "batch_v2alpha1" ], - "operationId": "patchCertificateSigningRequest", + "operationId": "patchNamespacedCronJob", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -18924,7 +18998,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" + "$ref": "#/definitions/v2alpha1.CronJob" } }, "401": { @@ -18936,11 +19010,19 @@ { "uniqueItems": true, "type": "string", - "description": "name of the CertificateSigningRequest", + "description": "name of the CronJob", "name": "name", "in": "path", "required": true }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -18950,9 +19032,9 @@ } ] }, - "/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/approval": { - "put": { - "description": "replace approval of the specified CertificateSigningRequest", + "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status": { + "get": { + "description": "read status of the specified CronJob", "consumes": [ "*/*" ], @@ -18965,14 +19047,14 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "batch_v2alpha1" ], - "operationId": "replaceCertificateSigningRequestApproval", + "operationId": "readNamespacedCronJobStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" + "$ref": "#/definitions/v2alpha1.CronJob" } }, "401": { @@ -18980,35 +19062,8 @@ } } }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" - } - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the CertificateSigningRequest", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1alpha1/certificatesigningrequests/{name}/status": { "put": { - "description": "replace status of the specified CertificateSigningRequest", + "description": "replace status of the specified CronJob", "consumes": [ "*/*" ], @@ -19021,14 +19076,24 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "batch_v2alpha1" + ], + "operationId": "replaceNamespacedCronJobStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v2alpha1.CronJob" + } + } ], - "operationId": "replaceCertificateSigningRequestStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" + "$ref": "#/definitions/v2alpha1.CronJob" } }, "401": { @@ -19036,19 +19101,52 @@ } } }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" + "patch": { + "description": "partially update status of the specified CronJob", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "batch_v2alpha1" + ], + "operationId": "patchNamespacedCronJobStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } } - }, + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v2alpha1.CronJob" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ { "uniqueItems": true, "type": "string", - "description": "name of the CertificateSigningRequest", + "description": "name of the CronJob", "name": "name", "in": "path", "required": true @@ -19056,79 +19154,8 @@ { "uniqueItems": true, "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the CertificateSigningRequest", - "name": "name", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", "in": "path", "required": true }, @@ -19138,70 +19165,82 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/extensions/": { + "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs": { "get": { - "description": "get information of a group", + "description": "list or watch objects of kind ScheduledJob", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "schemes": [ "https" ], "tags": [ - "extensions" + "batch_v2alpha1" + ], + "operationId": "listNamespacedScheduledJob", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } ], - "operationId": "getAPIGroup", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIGroup" + "$ref": "#/definitions/v2alpha1.CronJobList" } }, "401": { "description": "Unauthorized" } } - } - }, - "/apis/extensions/v1beta1/": { - "get": { - "description": "get available resources", + }, + "post": { + "description": "create a ScheduledJob", "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], "produces": [ "application/json", @@ -19212,47 +19251,90 @@ "https" ], "tags": [ - "extensions_v1beta1" + "batch_v2alpha1" + ], + "operationId": "createNamespacedScheduledJob", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v2alpha1.CronJob" + } + } ], - "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIResourceList" + "$ref": "#/definitions/v2alpha1.CronJob" } }, "401": { "description": "Unauthorized" } } - } - }, - "/apis/extensions/v1beta1/daemonsets": { - "get": { - "description": "list or watch objects of kind DaemonSet", + }, + "delete": { + "description": "delete collection of ScheduledJob", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "schemes": [ "https" ], "tags": [ - "extensions_v1beta1" + "batch_v2alpha1" + ], + "operationId": "deleteCollectionNamespacedScheduledJob", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } ], - "operationId": "listDaemonSetForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DaemonSetList" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -19264,16 +19346,10 @@ { "uniqueItems": true, "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true }, { "uniqueItems": true, @@ -19281,55 +19357,48 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/apis/extensions/v1beta1/deployments": { + "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}": { "get": { - "description": "list or watch objects of kind Deployment", + "description": "read the specified ScheduledJob", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "schemes": [ "https" ], "tags": [ - "extensions_v1beta1" + "batch_v2alpha1" + ], + "operationId": "readNamespacedScheduledJob", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } ], - "operationId": "listDeploymentForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DeploymentList" + "$ref": "#/definitions/v2alpha1.CronJob" } }, "401": { @@ -19337,76 +19406,38 @@ } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", + "put": { + "description": "replace the specified ScheduledJob", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "schemes": [ "https" ], "tags": [ - "extensions_v1beta1" + "batch_v2alpha1" + ], + "operationId": "replaceNamespacedScheduledJob", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v2alpha1.CronJob" + } + } ], - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v2alpha1.CronJob" } }, "401": { @@ -19414,76 +19445,59 @@ } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/ingresses": { - "get": { - "description": "list or watch objects of kind Ingress", + "delete": { + "description": "delete a ScheduledJob", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "schemes": [ "https" ], "tags": [ - "extensions_v1beta1" + "batch_v2alpha1" + ], + "operationId": "deleteNamespacedScheduledJob", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "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.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" + } ], - "operationId": "listIngressForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.IngressList" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -19491,201 +19505,12 @@ } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/jobs": { - "get": { - "description": "list or watch objects of kind Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listJobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets": { - "get": { - "description": "list or watch objects of kind DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listNamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a DaemonSet", + "patch": { + "description": "partially update the specified ScheduledJob", "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" ], "produces": [ "application/json", @@ -19696,90 +19521,24 @@ "https" ], "tags": [ - "extensions_v1beta1" + "batch_v2alpha1" ], - "operationId": "createNamespacedDaemonSet", + "operationId": "patchNamespacedScheduledJob", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" + "$ref": "#/definitions/v1.Patch" } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteCollectionNamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v2alpha1.CronJob" } }, "401": { @@ -19788,6 +19547,14 @@ } }, "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ScheduledJob", + "name": "name", + "in": "path", + "required": true + }, { "uniqueItems": true, "type": "string", @@ -19805,9 +19572,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}": { + "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status": { "get": { - "description": "read the specified DaemonSet", + "description": "read status of the specified ScheduledJob", "consumes": [ "*/*" ], @@ -19820,30 +19587,14 @@ "https" ], "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } + "batch_v2alpha1" ], + "operationId": "readNamespacedScheduledJobStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" + "$ref": "#/definitions/v2alpha1.CronJob" } }, "401": { @@ -19852,46 +19603,7 @@ } }, "put": { - "description": "replace the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a DaemonSet", + "description": "replace status of the specified ScheduledJob", "consumes": [ "*/*" ], @@ -19904,38 +19616,24 @@ "https" ], "tags": [ - "extensions_v1beta1" + "batch_v2alpha1" ], - "operationId": "deleteNamespacedDaemonSet", + "operationId": "replaceNamespacedScheduledJobStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v2alpha1.CronJob" } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", - "name": "orphanDependents", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v2alpha1.CronJob" } }, "401": { @@ -19944,7 +19642,7 @@ } }, "patch": { - "description": "partially update the specified DaemonSet", + "description": "partially update status of the specified ScheduledJob", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -19959,16 +19657,16 @@ "https" ], "tags": [ - "extensions_v1beta1" + "batch_v2alpha1" ], - "operationId": "patchNamespacedDaemonSet", + "operationId": "patchNamespacedScheduledJobStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -19976,7 +19674,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" + "$ref": "#/definitions/v2alpha1.CronJob" } }, "401": { @@ -19988,7 +19686,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the DaemonSet", + "description": "name of the ScheduledJob", "name": "name", "in": "path", "required": true @@ -20010,68 +19708,31 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status": { + "/apis/batch/v2alpha1/scheduledjobs": { "get": { - "description": "read status of the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedDaemonSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified DaemonSet", + "description": "list or watch objects of kind ScheduledJob", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "schemes": [ "https" ], "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedDaemonSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - } + "batch_v2alpha1" ], + "operationId": "listScheduledJobForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" + "$ref": "#/definitions/v2alpha1.CronJobList" } }, "401": { @@ -20079,63 +19740,66 @@ } } }, - "patch": { - "description": "partially update status of the specified DaemonSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedDaemonSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/unversioned.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } - }, + ] + }, + "/apis/batch/v2alpha1/watch/cronjobs": { "parameters": [ { "uniqueItems": true, "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" }, { "uniqueItems": true, "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" }, { "uniqueItems": true, @@ -20143,12 +19807,377 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", + "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the CronJob", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/batch/v2alpha1/watch/namespaces/{namespace}/scheduledjobs": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/batch/v2alpha1/watch/namespaces/{namespace}/scheduledjobs/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ScheduledJob", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/batch/v2alpha1/watch/scheduledjobs": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/certificates.k8s.io/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "certificates" + ], + "operationId": "getAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/certificates.k8s.io/v1beta1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1beta1" + ], + "operationId": "getAPIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests": { + "get": { + "description": "list or watch objects of kind CertificateSigningRequest", "consumes": [ "*/*" ], @@ -20163,9 +20192,9 @@ "https" ], "tags": [ - "extensions_v1beta1" + "certificates_v1beta1" ], - "operationId": "listNamespacedDeployment", + "operationId": "listCertificateSigningRequest", "parameters": [ { "uniqueItems": true, @@ -20184,7 +20213,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -20207,7 +20236,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DeploymentList" + "$ref": "#/definitions/v1beta1.CertificateSigningRequestList" } }, "401": { @@ -20216,7 +20245,7 @@ } }, "post": { - "description": "create a Deployment", + "description": "create a CertificateSigningRequest", "consumes": [ "*/*" ], @@ -20229,16 +20258,16 @@ "https" ], "tags": [ - "extensions_v1beta1" + "certificates_v1beta1" ], - "operationId": "createNamespacedDeployment", + "operationId": "createCertificateSigningRequest", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.CertificateSigningRequest" } } ], @@ -20246,7 +20275,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.CertificateSigningRequest" } }, "401": { @@ -20255,7 +20284,7 @@ } }, "delete": { - "description": "delete collection of Deployment", + "description": "delete collection of CertificateSigningRequest", "consumes": [ "*/*" ], @@ -20268,9 +20297,9 @@ "https" ], "tags": [ - "extensions_v1beta1" + "certificates_v1beta1" ], - "operationId": "deleteCollectionNamespacedDeployment", + "operationId": "deleteCollectionCertificateSigningRequest", "parameters": [ { "uniqueItems": true, @@ -20289,7 +20318,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -20312,7 +20341,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -20321,14 +20350,6 @@ } }, "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -20338,9 +20359,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}": { + "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}": { "get": { - "description": "read the specified Deployment", + "description": "read the specified CertificateSigningRequest", "consumes": [ "*/*" ], @@ -20353,14 +20374,14 @@ "https" ], "tags": [ - "extensions_v1beta1" + "certificates_v1beta1" ], - "operationId": "readNamespacedDeployment", + "operationId": "readCertificateSigningRequest", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -20376,7 +20397,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.CertificateSigningRequest" } }, "401": { @@ -20385,7 +20406,7 @@ } }, "put": { - "description": "replace the specified Deployment", + "description": "replace the specified CertificateSigningRequest", "consumes": [ "*/*" ], @@ -20398,16 +20419,16 @@ "https" ], "tags": [ - "extensions_v1beta1" + "certificates_v1beta1" ], - "operationId": "replaceNamespacedDeployment", + "operationId": "replaceCertificateSigningRequest", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.CertificateSigningRequest" } } ], @@ -20415,7 +20436,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.CertificateSigningRequest" } }, "401": { @@ -20424,7 +20445,7 @@ } }, "delete": { - "description": "delete a Deployment", + "description": "delete a CertificateSigningRequest", "consumes": [ "*/*" ], @@ -20437,9 +20458,9 @@ "https" ], "tags": [ - "extensions_v1beta1" + "certificates_v1beta1" ], - "operationId": "deleteNamespacedDeployment", + "operationId": "deleteCertificateSigningRequest", "parameters": [ { "name": "body", @@ -20459,16 +20480,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -20477,7 +20505,7 @@ } }, "patch": { - "description": "partially update the specified Deployment", + "description": "partially update the specified CertificateSigningRequest", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -20492,16 +20520,16 @@ "https" ], "tags": [ - "extensions_v1beta1" + "certificates_v1beta1" ], - "operationId": "patchNamespacedDeployment", + "operationId": "patchCertificateSigningRequest", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -20509,7 +20537,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.CertificateSigningRequest" } }, "401": { @@ -20521,19 +20549,11 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Deployment", + "description": "name of the CertificateSigningRequest", "name": "name", "in": "path", "required": true }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -20543,9 +20563,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback": { - "post": { - "description": "create rollback of a DeploymentRollback", + "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval": { + "put": { + "description": "replace approval of the specified CertificateSigningRequest", "consumes": [ "*/*" ], @@ -20558,14 +20578,24 @@ "https" ], "tags": [ - "extensions_v1beta1" + "certificates_v1beta1" + ], + "operationId": "replaceCertificateSigningRequestApproval", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.CertificateSigningRequest" + } + } ], - "operationId": "createNamespacedDeploymentRollbackRollback", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.DeploymentRollback" + "$ref": "#/definitions/v1beta1.CertificateSigningRequest" } }, "401": { @@ -20574,30 +20604,14 @@ } }, "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.DeploymentRollback" - } - }, { "uniqueItems": true, "type": "string", - "description": "name of the DeploymentRollback", + "description": "name of the CertificateSigningRequest", "name": "name", "in": "path", "required": true }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -20607,38 +20621,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale": { - "get": { - "description": "read scale of the specified Scale", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedDeploymentsScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status": { "put": { - "description": "replace scale of the specified Scale", + "description": "replace status of the specified CertificateSigningRequest", "consumes": [ "*/*" ], @@ -20651,57 +20636,16 @@ "https" ], "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedDeploymentsScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update scale of the specified Scale", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" + "certificates_v1beta1" ], - "operationId": "patchNamespacedDeploymentsScale", + "operationId": "replaceCertificateSigningRequestStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1beta1.CertificateSigningRequest" } } ], @@ -20709,7 +20653,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Scale" + "$ref": "#/definitions/v1beta1.CertificateSigningRequest" } }, "401": { @@ -20721,19 +20665,11 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Scale", + "description": "name of the CertificateSigningRequest", "name": "name", "in": "path", "required": true }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -20743,11 +20679,113 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status": { - "get": { - "description": "read status of the specified Deployment", - "consumes": [ - "*/*" + "/apis/certificates.k8s.io/v1beta1/watch/certificatesigningrequests": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/certificates.k8s.io/v1beta1/watch/certificatesigningrequests/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the CertificateSigningRequest", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/extensions/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "produces": [ "application/json", @@ -20758,25 +20796,29 @@ "https" ], "tags": [ - "extensions_v1beta1" + "extensions" ], - "operationId": "readNamespacedDeploymentStatus", + "operationId": "getAPIGroup", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Deployment" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { "description": "Unauthorized" } } - }, - "put": { - "description": "replace status of the specified Deployment", + } + }, + "/apis/extensions/v1beta1/": { + "get": { + "description": "get available resources", "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "produces": [ "application/json", @@ -20789,22 +20831,45 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "replaceNamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, + "operationId": "getAPIResources", + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Deployment" + "$ref": "#/definitions/v1.APIResourceList" } + }, + "401": { + "description": "Unauthorized" } + } + } + }, + "/apis/extensions/v1beta1/daemonsets": { + "get": { + "description": "list or watch objects of kind DaemonSet", + "consumes": [ + "*/*" ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "listDaemonSetForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.DaemonSetList" } }, "401": { @@ -20812,17 +20877,63 @@ } } }, - "patch": { - "description": "partially update status of the specified Deployment", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/extensions/v1beta1/deployments": { + "get": { + "description": "list or watch objects of kind Deployment", "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" + "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "schemes": [ "https" @@ -20830,22 +20941,89 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "patchNamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, + "operationId": "listDeploymentForAllNamespaces", + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/extensions.v1beta1.DeploymentList" } + }, + "401": { + "description": "Unauthorized" } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/extensions/v1beta1/ingresses": { + "get": { + "description": "list or watch objects of kind Ingress", + "consumes": [ + "*/*" ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "listIngressForAllNamespaces", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Deployment" + "$ref": "#/definitions/v1beta1.IngressList" } }, "401": { @@ -20857,18 +21035,16 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" }, { "uniqueItems": true, "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" }, { "uniqueItems": true, @@ -20876,12 +21052,33 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets": { "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", + "description": "list or watch objects of kind DaemonSet", "consumes": [ "*/*" ], @@ -20898,7 +21095,7 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "listNamespacedHorizontalPodAutoscaler", + "operationId": "listNamespacedDaemonSet", "parameters": [ { "uniqueItems": true, @@ -20917,7 +21114,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -20940,7 +21137,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v1beta1.DaemonSetList" } }, "401": { @@ -20949,7 +21146,7 @@ } }, "post": { - "description": "create a HorizontalPodAutoscaler", + "description": "create a DaemonSet", "consumes": [ "*/*" ], @@ -20964,14 +21161,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "createNamespacedHorizontalPodAutoscaler", + "operationId": "createNamespacedDaemonSet", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.DaemonSet" } } ], @@ -20979,7 +21176,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.DaemonSet" } }, "401": { @@ -20988,7 +21185,7 @@ } }, "delete": { - "description": "delete collection of HorizontalPodAutoscaler", + "description": "delete collection of DaemonSet", "consumes": [ "*/*" ], @@ -21003,7 +21200,7 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", + "operationId": "deleteCollectionNamespacedDaemonSet", "parameters": [ { "uniqueItems": true, @@ -21022,7 +21219,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -21045,7 +21242,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -21071,9 +21268,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}": { "get": { - "description": "read the specified HorizontalPodAutoscaler", + "description": "read the specified DaemonSet", "consumes": [ "*/*" ], @@ -21088,12 +21285,12 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "readNamespacedHorizontalPodAutoscaler", + "operationId": "readNamespacedDaemonSet", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -21109,7 +21306,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.DaemonSet" } }, "401": { @@ -21118,7 +21315,7 @@ } }, "put": { - "description": "replace the specified HorizontalPodAutoscaler", + "description": "replace the specified DaemonSet", "consumes": [ "*/*" ], @@ -21133,14 +21330,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "replaceNamespacedHorizontalPodAutoscaler", + "operationId": "replaceNamespacedDaemonSet", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.DaemonSet" } } ], @@ -21148,7 +21345,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.DaemonSet" } }, "401": { @@ -21157,7 +21354,7 @@ } }, "delete": { - "description": "delete a HorizontalPodAutoscaler", + "description": "delete a DaemonSet", "consumes": [ "*/*" ], @@ -21172,7 +21369,7 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "deleteNamespacedHorizontalPodAutoscaler", + "operationId": "deleteNamespacedDaemonSet", "parameters": [ { "name": "body", @@ -21192,16 +21389,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -21210,7 +21414,7 @@ } }, "patch": { - "description": "partially update the specified HorizontalPodAutoscaler", + "description": "partially update the specified DaemonSet", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -21227,14 +21431,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "patchNamespacedHorizontalPodAutoscaler", + "operationId": "patchNamespacedDaemonSet", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -21242,7 +21446,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.DaemonSet" } }, "401": { @@ -21254,7 +21458,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the DaemonSet", "name": "name", "in": "path", "required": true @@ -21276,9 +21480,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status": { "get": { - "description": "read status of the specified HorizontalPodAutoscaler", + "description": "read status of the specified DaemonSet", "consumes": [ "*/*" ], @@ -21293,12 +21497,12 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", + "operationId": "readNamespacedDaemonSetStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.DaemonSet" } }, "401": { @@ -21307,7 +21511,7 @@ } }, "put": { - "description": "replace status of the specified HorizontalPodAutoscaler", + "description": "replace status of the specified DaemonSet", "consumes": [ "*/*" ], @@ -21322,14 +21526,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", + "operationId": "replaceNamespacedDaemonSetStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.DaemonSet" } } ], @@ -21337,7 +21541,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.DaemonSet" } }, "401": { @@ -21346,7 +21550,7 @@ } }, "patch": { - "description": "partially update status of the specified HorizontalPodAutoscaler", + "description": "partially update status of the specified DaemonSet", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -21363,14 +21567,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", + "operationId": "patchNamespacedDaemonSetStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -21378,7 +21582,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.DaemonSet" } }, "401": { @@ -21390,7 +21594,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the DaemonSet", "name": "name", "in": "path", "required": true @@ -21412,9 +21616,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses": { + "/apis/extensions/v1beta1/namespaces/{namespace}/deployments": { "get": { - "description": "list or watch objects of kind Ingress", + "description": "list or watch objects of kind Deployment", "consumes": [ "*/*" ], @@ -21431,7 +21635,7 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "listNamespacedIngress", + "operationId": "listNamespacedDeployment", "parameters": [ { "uniqueItems": true, @@ -21450,7 +21654,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -21473,7 +21677,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.IngressList" + "$ref": "#/definitions/extensions.v1beta1.DeploymentList" } }, "401": { @@ -21482,7 +21686,7 @@ } }, "post": { - "description": "create an Ingress", + "description": "create a Deployment", "consumes": [ "*/*" ], @@ -21497,14 +21701,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "createNamespacedIngress", + "operationId": "createNamespacedDeployment", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/extensions.v1beta1.Deployment" } } ], @@ -21512,7 +21716,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/extensions.v1beta1.Deployment" } }, "401": { @@ -21521,7 +21725,7 @@ } }, "delete": { - "description": "delete collection of Ingress", + "description": "delete collection of Deployment", "consumes": [ "*/*" ], @@ -21536,7 +21740,7 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "deleteCollectionNamespacedIngress", + "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ { "uniqueItems": true, @@ -21555,7 +21759,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -21578,7 +21782,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -21604,9 +21808,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}": { + "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}": { "get": { - "description": "read the specified Ingress", + "description": "read the specified Deployment", "consumes": [ "*/*" ], @@ -21621,12 +21825,12 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "readNamespacedIngress", + "operationId": "readNamespacedDeployment", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -21642,7 +21846,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/extensions.v1beta1.Deployment" } }, "401": { @@ -21651,7 +21855,7 @@ } }, "put": { - "description": "replace the specified Ingress", + "description": "replace the specified Deployment", "consumes": [ "*/*" ], @@ -21666,14 +21870,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "replaceNamespacedIngress", + "operationId": "replaceNamespacedDeployment", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/extensions.v1beta1.Deployment" } } ], @@ -21681,7 +21885,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/extensions.v1beta1.Deployment" } }, "401": { @@ -21690,7 +21894,7 @@ } }, "delete": { - "description": "delete an Ingress", + "description": "delete a Deployment", "consumes": [ "*/*" ], @@ -21705,7 +21909,7 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "deleteNamespacedIngress", + "operationId": "deleteNamespacedDeployment", "parameters": [ { "name": "body", @@ -21725,16 +21929,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -21743,7 +21954,7 @@ } }, "patch": { - "description": "partially update the specified Ingress", + "description": "partially update the specified Deployment", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -21760,14 +21971,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "patchNamespacedIngress", + "operationId": "patchNamespacedDeployment", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -21775,7 +21986,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/extensions.v1beta1.Deployment" } }, "401": { @@ -21787,7 +21998,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Ingress", + "description": "name of the Deployment", "name": "name", "in": "path", "required": true @@ -21809,9 +22020,75 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status": { + "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback": { + "post": { + "description": "create rollback of a DeploymentRollback", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "createNamespacedDeploymentRollbackRollback", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/extensions.v1beta1.DeploymentRollback" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/extensions.v1beta1.DeploymentRollback" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the DeploymentRollback", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale": { "get": { - "description": "read status of the specified Ingress", + "description": "read scale of the specified Scale", "consumes": [ "*/*" ], @@ -21826,12 +22103,12 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "readNamespacedIngressStatus", + "operationId": "readNamespacedDeploymentsScale", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/extensions.v1beta1.Scale" } }, "401": { @@ -21840,7 +22117,7 @@ } }, "put": { - "description": "replace status of the specified Ingress", + "description": "replace scale of the specified Scale", "consumes": [ "*/*" ], @@ -21855,14 +22132,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "replaceNamespacedIngressStatus", + "operationId": "replaceNamespacedDeploymentsScale", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/extensions.v1beta1.Scale" } } ], @@ -21870,7 +22147,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/extensions.v1beta1.Scale" } }, "401": { @@ -21879,7 +22156,7 @@ } }, "patch": { - "description": "partially update status of the specified Ingress", + "description": "partially update scale of the specified Scale", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -21896,14 +22173,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "patchNamespacedIngressStatus", + "operationId": "patchNamespacedDeploymentsScale", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -21911,7 +22188,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/extensions.v1beta1.Scale" } }, "401": { @@ -21923,7 +22200,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Ingress", + "description": "name of the Scale", "name": "name", "in": "path", "required": true @@ -21945,9 +22222,145 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/jobs": { + "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status": { "get": { - "description": "list or watch objects of kind Job", + "description": "read status of the specified Deployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "readNamespacedDeploymentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/extensions.v1beta1.Deployment" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "put": { + "description": "replace status of the specified Deployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "replaceNamespacedDeploymentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/extensions.v1beta1.Deployment" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/extensions.v1beta1.Deployment" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "patch": { + "description": "partially update status of the specified Deployment", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "patchNamespacedDeploymentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/extensions.v1beta1.Deployment" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Deployment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses": { + "get": { + "description": "list or watch objects of kind Ingress", "consumes": [ "*/*" ], @@ -21964,7 +22377,7 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "listNamespacedJob", + "operationId": "listNamespacedIngress", "parameters": [ { "uniqueItems": true, @@ -21983,7 +22396,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -22006,7 +22419,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.JobList" + "$ref": "#/definitions/v1beta1.IngressList" } }, "401": { @@ -22015,7 +22428,7 @@ } }, "post": { - "description": "create a Job", + "description": "create an Ingress", "consumes": [ "*/*" ], @@ -22030,14 +22443,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "createNamespacedJob", + "operationId": "createNamespacedIngress", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Job" + "$ref": "#/definitions/v1beta1.Ingress" } } ], @@ -22045,7 +22458,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Job" + "$ref": "#/definitions/v1beta1.Ingress" } }, "401": { @@ -22054,7 +22467,7 @@ } }, "delete": { - "description": "delete collection of Job", + "description": "delete collection of Ingress", "consumes": [ "*/*" ], @@ -22069,7 +22482,7 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "deleteCollectionNamespacedJob", + "operationId": "deleteCollectionNamespacedIngress", "parameters": [ { "uniqueItems": true, @@ -22088,7 +22501,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -22111,7 +22524,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -22137,9 +22550,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}": { + "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}": { "get": { - "description": "read the specified Job", + "description": "read the specified Ingress", "consumes": [ "*/*" ], @@ -22154,12 +22567,12 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "readNamespacedJob", + "operationId": "readNamespacedIngress", "parameters": [ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -22175,7 +22588,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Job" + "$ref": "#/definitions/v1beta1.Ingress" } }, "401": { @@ -22184,7 +22597,7 @@ } }, "put": { - "description": "replace the specified Job", + "description": "replace the specified Ingress", "consumes": [ "*/*" ], @@ -22199,14 +22612,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "replaceNamespacedJob", + "operationId": "replaceNamespacedIngress", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Job" + "$ref": "#/definitions/v1beta1.Ingress" } } ], @@ -22214,7 +22627,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Job" + "$ref": "#/definitions/v1beta1.Ingress" } }, "401": { @@ -22223,7 +22636,7 @@ } }, "delete": { - "description": "delete a Job", + "description": "delete an Ingress", "consumes": [ "*/*" ], @@ -22238,7 +22651,7 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "deleteNamespacedJob", + "operationId": "deleteNamespacedIngress", "parameters": [ { "name": "body", @@ -22258,16 +22671,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -22276,7 +22696,7 @@ } }, "patch": { - "description": "partially update the specified Job", + "description": "partially update the specified Ingress", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -22293,14 +22713,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "patchNamespacedJob", + "operationId": "patchNamespacedIngress", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -22308,7 +22728,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Job" + "$ref": "#/definitions/v1beta1.Ingress" } }, "401": { @@ -22320,7 +22740,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Job", + "description": "name of the Ingress", "name": "name", "in": "path", "required": true @@ -22342,9 +22762,9 @@ } ] }, - "/apis/extensions/v1beta1/namespaces/{namespace}/jobs/{name}/status": { + "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status": { "get": { - "description": "read status of the specified Job", + "description": "read status of the specified Ingress", "consumes": [ "*/*" ], @@ -22359,12 +22779,12 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "readNamespacedJobStatus", + "operationId": "readNamespacedIngressStatus", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Job" + "$ref": "#/definitions/v1beta1.Ingress" } }, "401": { @@ -22373,7 +22793,7 @@ } }, "put": { - "description": "replace status of the specified Job", + "description": "replace status of the specified Ingress", "consumes": [ "*/*" ], @@ -22388,14 +22808,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "replaceNamespacedJobStatus", + "operationId": "replaceNamespacedIngressStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Job" + "$ref": "#/definitions/v1beta1.Ingress" } } ], @@ -22403,7 +22823,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Job" + "$ref": "#/definitions/v1beta1.Ingress" } }, "401": { @@ -22412,7 +22832,7 @@ } }, "patch": { - "description": "partially update status of the specified Job", + "description": "partially update status of the specified Ingress", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -22429,14 +22849,14 @@ "tags": [ "extensions_v1beta1" ], - "operationId": "patchNamespacedJobStatus", + "operationId": "patchNamespacedIngressStatus", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -22444,7 +22864,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Job" + "$ref": "#/definitions/v1beta1.Ingress" } }, "401": { @@ -22456,7 +22876,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Job", + "description": "name of the Ingress", "name": "name", "in": "path", "required": true @@ -22516,7 +22936,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -22621,7 +23041,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -22644,7 +23064,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -22692,7 +23112,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -22791,16 +23211,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -22833,7 +23260,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -22913,7 +23340,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -23018,7 +23445,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -23041,7 +23468,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -23089,7 +23516,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -23188,16 +23615,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -23230,7 +23664,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -23294,7 +23728,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Scale" + "$ref": "#/definitions/extensions.v1beta1.Scale" } }, "401": { @@ -23325,7 +23759,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Scale" + "$ref": "#/definitions/extensions.v1beta1.Scale" } } ], @@ -23333,7 +23767,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Scale" + "$ref": "#/definitions/extensions.v1beta1.Scale" } }, "401": { @@ -23366,7 +23800,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -23374,7 +23808,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Scale" + "$ref": "#/definitions/extensions.v1beta1.Scale" } }, "401": { @@ -23502,7 +23936,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -23566,7 +24000,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Scale" + "$ref": "#/definitions/extensions.v1beta1.Scale" } }, "401": { @@ -23597,7 +24031,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Scale" + "$ref": "#/definitions/extensions.v1beta1.Scale" } } ], @@ -23605,7 +24039,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Scale" + "$ref": "#/definitions/extensions.v1beta1.Scale" } }, "401": { @@ -23638,7 +24072,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -23646,7 +24080,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Scale" + "$ref": "#/definitions/extensions.v1beta1.Scale" } }, "401": { @@ -23737,7 +24171,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -23757,6 +24191,394 @@ } ] }, + "/apis/extensions/v1beta1/podsecuritypolicies": { + "get": { + "description": "list or watch objects of kind PodSecurityPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "listPodSecurityPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodSecurityPolicyList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "post": { + "description": "create a PodSecurityPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "createPodSecurityPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "delete": { + "description": "delete collection of PodSecurityPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "deleteCollectionPodSecurityPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/extensions/v1beta1/podsecuritypolicies/{name}": { + "get": { + "description": "read the specified PodSecurityPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "readPodSecurityPolicy", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "put": { + "description": "replace the specified PodSecurityPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "replacePodSecurityPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "delete": { + "description": "delete a PodSecurityPolicy", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "deletePodSecurityPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "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.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "patch": { + "description": "partially update the specified PodSecurityPolicy", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "extensions_v1beta1" + ], + "operationId": "patchPodSecurityPolicy", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PodSecurityPolicy", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, "/apis/extensions/v1beta1/replicasets": { "get": { "description": "list or watch objects of kind ReplicaSet", @@ -23814,7 +24636,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -23872,7 +24694,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -23977,7 +24799,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -24000,7 +24822,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -24040,7 +24862,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -24139,16 +24961,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -24181,7 +25010,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -24241,7 +25070,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -24287,53 +25116,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/horizontalpodautoscalers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -24379,53 +25162,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/jobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -24479,7 +25216,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -24541,7 +25278,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -24595,7 +25332,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -24657,7 +25394,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -24677,7 +25414,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses": { "parameters": [ { "uniqueItems": true, @@ -24711,7 +25448,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -24731,7 +25468,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name}": { "parameters": [ { "uniqueItems": true, @@ -24750,7 +25487,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the Ingress", "name": "name", "in": "path", "required": true @@ -24773,7 +25510,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -24793,7 +25530,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies": { "parameters": [ { "uniqueItems": true, @@ -24827,7 +25564,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -24847,7 +25584,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name}": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name}": { "parameters": [ { "uniqueItems": true, @@ -24866,7 +25603,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Ingress", + "description": "name of the NetworkPolicy", "name": "name", "in": "path", "required": true @@ -24889,7 +25626,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -24909,7 +25646,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets": { "parameters": [ { "uniqueItems": true, @@ -24943,7 +25680,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -24963,7 +25700,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs/{name}": { + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name}": { "parameters": [ { "uniqueItems": true, @@ -24982,7 +25719,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the Job", + "description": "name of the ReplicaSet", "name": "name", "in": "path", "required": true @@ -25005,7 +25742,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -25025,61 +25762,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name}": { + "/apis/extensions/v1beta1/watch/networkpolicies": { "parameters": [ { "uniqueItems": true, @@ -25095,22 +25778,6 @@ "name": "labelSelector", "in": "query" }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the NetworkPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -25121,7 +25788,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -25141,7 +25808,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets": { + "/apis/extensions/v1beta1/watch/podsecuritypolicies": { "parameters": [ { "uniqueItems": true, @@ -25157,14 +25824,6 @@ "name": "labelSelector", "in": "query" }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, { "uniqueItems": true, "type": "string", @@ -25175,7 +25834,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -25195,7 +25854,7 @@ } ] }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name}": { + "/apis/extensions/v1beta1/watch/podsecuritypolicies/{name}": { "parameters": [ { "uniqueItems": true, @@ -25214,65 +25873,11 @@ { "uniqueItems": true, "type": "string", - "description": "name of the ReplicaSet", + "description": "name of the PodSecurityPolicy", "name": "name", "in": "path", "required": true }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/networkpolicies": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, { "uniqueItems": true, "type": "string", @@ -25283,7 +25888,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -25329,7 +25934,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -25375,7 +25980,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -25429,7 +26034,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -25473,7 +26078,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIGroup" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -25506,7 +26111,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIResourceList" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -25553,7 +26158,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -25658,7 +26263,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -25681,7 +26286,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -25729,7 +26334,7 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", "name": "exact", "in": "query" }, @@ -25828,16 +26433,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -25870,7 +26482,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -26006,7 +26618,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -26105,7 +26717,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -26159,7 +26771,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -26221,7 +26833,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -26267,7 +26879,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -26311,7 +26923,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIGroup" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -26344,7 +26956,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIResourceList" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -26391,7 +27003,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -26496,7 +27108,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -26519,7 +27131,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -26642,16 +27254,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -26684,7 +27303,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -26756,7 +27375,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -26861,7 +27480,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -26884,7 +27503,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -27007,16 +27626,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -27049,7 +27675,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -27121,7 +27747,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -27226,7 +27852,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -27249,7 +27875,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -27380,16 +28006,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -27422,7 +28055,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -27502,7 +28135,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -27607,7 +28240,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -27630,7 +28263,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -27761,16 +28394,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -27803,7 +28443,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -27902,7 +28542,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -27979,7 +28619,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -28025,7 +28665,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -28079,7 +28719,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -28125,7 +28765,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -28179,7 +28819,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -28233,7 +28873,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -28295,7 +28935,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -28349,7 +28989,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -28411,7 +29051,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -28457,7 +29097,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -28503,7 +29143,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -28523,9 +29163,9 @@ } ] }, - "/apis/storage.k8s.io/": { + "/apis/rbac.authorization.k8s.io/v1beta1/": { "get": { - "description": "get information of a group", + "description": "get available resources", "consumes": [ "application/json", "application/yaml", @@ -28540,14 +29180,14 @@ "https" ], "tags": [ - "storage" + "rbacAuthorization_v1beta1" ], - "operationId": "getAPIGroup", + "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIGroup" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -28556,13 +29196,79 @@ } } }, - "/apis/storage.k8s.io/v1beta1/": { + "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings": { "get": { - "description": "get available resources", + "description": "list or watch objects of kind ClusterRoleBinding", "consumes": [ + "*/*" + ], + "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "listClusterRoleBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ClusterRoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "post": { + "description": "create a ClusterRoleBinding", + "consumes": [ + "*/*" ], "produces": [ "application/json", @@ -28573,42 +29279,48 @@ "https" ], "tags": [ - "storage_v1beta1" + "rbacAuthorization_v1beta1" + ], + "operationId": "createClusterRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.ClusterRoleBinding" + } + } ], - "operationId": "getAPIResources", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.APIResourceList" + "$ref": "#/definitions/v1beta1.ClusterRoleBinding" } }, "401": { "description": "Unauthorized" } } - } - }, - "/apis/storage.k8s.io/v1beta1/storageclasses": { - "get": { - "description": "list or watch objects of kind StorageClass", + }, + "delete": { + "description": "delete collection of ClusterRoleBinding", "consumes": [ "*/*" ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "schemes": [ "https" ], "tags": [ - "storage_v1beta1" + "rbacAuthorization_v1beta1" ], - "operationId": "listStorageClass", + "operationId": "deleteCollectionClusterRoleBinding", "parameters": [ { "uniqueItems": true, @@ -28627,7 +29339,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -28650,7 +29362,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StorageClassList" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -28658,8 +29370,19 @@ } } }, - "post": { - "description": "create a StorageClass", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}": { + "get": { + "description": "read the specified ClusterRoleBinding", "consumes": [ "*/*" ], @@ -28672,16 +29395,45 @@ "https" ], "tags": [ - "storage_v1beta1" + "rbacAuthorization_v1beta1" ], - "operationId": "createStorageClass", + "operationId": "readClusterRoleBinding", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "put": { + "description": "replace the specified ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "replaceClusterRoleBinding", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" + "$ref": "#/definitions/v1beta1.ClusterRoleBinding" } } ], @@ -28689,7 +29441,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" + "$ref": "#/definitions/v1beta1.ClusterRoleBinding" } }, "401": { @@ -28698,7 +29450,7 @@ } }, "delete": { - "description": "delete collection of StorageClass", + "description": "delete a ClusterRoleBinding", "consumes": [ "*/*" ], @@ -28711,9 +29463,131 @@ "https" ], "tags": [ - "storage_v1beta1" + "rbacAuthorization_v1beta1" ], - "operationId": "deleteCollectionStorageClass", + "operationId": "deleteClusterRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "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.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "patch": { + "description": "partially update the specified ClusterRoleBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "patchClusterRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ClusterRoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles": { + "get": { + "description": "list or watch objects of kind ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "listClusterRole", "parameters": [ { "uniqueItems": true, @@ -28732,7 +29606,7 @@ { "uniqueItems": true, "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "name": "resourceVersion", "in": "query" }, @@ -28755,7 +29629,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1beta1.ClusterRoleList" } }, "401": { @@ -28763,19 +29637,47 @@ } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" + "post": { + "description": "create a ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "createClusterRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.ClusterRole" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ClusterRole" + } + }, + "401": { + "description": "Unauthorized" + } } - ] - }, - "/apis/storage.k8s.io/v1beta1/storageclasses/{name}": { - "get": { - "description": "read the specified StorageClass", + }, + "delete": { + "description": "delete collection of ClusterRole", "consumes": [ "*/*" ], @@ -28788,22 +29690,43 @@ "https" ], "tags": [ - "storage_v1beta1" + "rbacAuthorization_v1beta1" ], - "operationId": "readStorageClass", + "operationId": "deleteCollectionClusterRole", "parameters": [ { "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'", - "name": "exact", + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", "in": "query" }, { "uniqueItems": true, "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", "in": "query" } ], @@ -28811,7 +29734,47 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}": { + "get": { + "description": "read the specified ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "readClusterRole", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ClusterRole" } }, "401": { @@ -28820,7 +29783,7 @@ } }, "put": { - "description": "replace the specified StorageClass", + "description": "replace the specified ClusterRole", "consumes": [ "*/*" ], @@ -28833,16 +29796,16 @@ "https" ], "tags": [ - "storage_v1beta1" + "rbacAuthorization_v1beta1" ], - "operationId": "replaceStorageClass", + "operationId": "replaceClusterRole", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" + "$ref": "#/definitions/v1beta1.ClusterRole" } } ], @@ -28850,7 +29813,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" + "$ref": "#/definitions/v1beta1.ClusterRole" } }, "401": { @@ -28859,7 +29822,7 @@ } }, "delete": { - "description": "delete a StorageClass", + "description": "delete a ClusterRole", "consumes": [ "*/*" ], @@ -28872,9 +29835,9 @@ "https" ], "tags": [ - "storage_v1beta1" + "rbacAuthorization_v1beta1" ], - "operationId": "deleteStorageClass", + "operationId": "deleteClusterRole", "parameters": [ { "name": "body", @@ -28894,16 +29857,23 @@ { "uniqueItems": true, "type": "boolean", - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "name": "orphanDependents", "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/unversioned.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -28912,7 +29882,7 @@ } }, "patch": { - "description": "partially update the specified StorageClass", + "description": "partially update the specified ClusterRole", "consumes": [ "application/json-patch+json", "application/merge-patch+json", @@ -28927,16 +29897,16 @@ "https" ], "tags": [ - "storage_v1beta1" + "rbacAuthorization_v1beta1" ], - "operationId": "patchStorageClass", + "operationId": "patchClusterRole", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/unversioned.Patch" + "$ref": "#/definitions/v1.Patch" } } ], @@ -28944,7 +29914,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" + "$ref": "#/definitions/v1beta1.ClusterRole" } }, "401": { @@ -28956,7 +29926,7 @@ { "uniqueItems": true, "type": "string", - "description": "name of the StorageClass", + "description": "name of the ClusterRole", "name": "name", "in": "path", "required": true @@ -28970,73 +29940,186 @@ } ] }, - "/apis/storage.k8s.io/v1beta1/watch/storageclasses": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" + "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings": { + "get": { + "description": "list or watch objects of kind RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "listNamespacedRoleBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.RoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } } - ] - }, - "/apis/storage.k8s.io/v1beta1/watch/storageclasses/{name}": { + }, + "post": { + "description": "create a RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "createNamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.RoleBinding" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.RoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "delete": { + "description": "delete collection of RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "deleteCollectionNamespacedRoleBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, "parameters": [ { "uniqueItems": true, "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", "in": "path", "required": true }, @@ -29046,292 +30129,4807 @@ "description": "If 'true', then the output is pretty printed.", "name": "pretty", "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" } ] }, - "/logs/": { + "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}": { "get": { + "description": "read the specified RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], "schemes": [ "https" ], "tags": [ - "logs" + "rbacAuthorization_v1beta1" ], - "operationId": "logFileListHandler", + "operationId": "readNamespacedRoleBinding", "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.RoleBinding" + } + }, "401": { "description": "Unauthorized" } } - } - }, - "/logs/{logpath}": { - "get": { + }, + "put": { + "description": "replace the specified RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], "schemes": [ "https" ], "tags": [ - "logs" + "rbacAuthorization_v1beta1" + ], + "operationId": "replaceNamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.RoleBinding" + } + } ], - "operationId": "logFileHandler", "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.RoleBinding" + } + }, "401": { "description": "Unauthorized" } } }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "path to the log", - "name": "logpath", - "in": "path", - "required": true - } - ] - }, - "/version/": { - "get": { - "description": "get the code version", + "delete": { + "description": "delete a RoleBinding", "consumes": [ - "application/json" + "*/*" ], "produces": [ - "application/json" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], "schemes": [ "https" ], "tags": [ - "version" + "rbacAuthorization_v1beta1" + ], + "operationId": "deleteNamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "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.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" + } ], - "operationId": "getCode", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/version.Info" + "$ref": "#/definitions/v1.Status" } }, "401": { "description": "Unauthorized" } } - } - } - }, - "definitions": { - "intstr.IntOrString": { - "type": "string", - "format": "int-or-string" - }, - "resource.Quantity": { - "type": "string" - }, - "runtime.RawExtension": { - "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.Object `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// External package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// On the wire, the JSON will look something like this: {\n\t\"kind\":\"MyAPIObject\",\n\t\"apiVersion\":\"v1\",\n\t\"myPlugin\": {\n\t\t\"kind\":\"PluginA\",\n\t\t\"aOption\":\"foo\",\n\t},\n}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", - "required": [ - "Raw" - ], - "properties": { - "Raw": { - "description": "Raw is the underlying serialization of this object.", + }, + "patch": { + "description": "partially update the specified RoleBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "patchNamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.RoleBinding" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, "type": "string", - "format": "byte" + "description": "name of the RoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles": { + "get": { + "description": "list or watch objects of kind Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "listNamespacedRole", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.RoleList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "post": { + "description": "create a Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "createNamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.Role" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "delete": { + "description": "delete collection of Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "deleteCollectionNamespacedRole", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}": { + "get": { + "description": "read the specified Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "readNamespacedRole", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "put": { + "description": "replace the specified Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "replaceNamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.Role" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "delete": { + "description": "delete a Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "deleteNamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "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.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "patch": { + "description": "partially update the specified Role", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "patchNamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.Role" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Role", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/rolebindings": { + "get": { + "description": "list or watch objects of kind RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "listRoleBindingForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.RoleBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/roles": { + "get": { + "description": "list or watch objects of kind Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1beta1" + ], + "operationId": "listRoleForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.RoleList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterrolebindings": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterrolebindings/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterroles": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterroles/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRole", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/rolebindings": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/rolebindings/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the RoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/roles": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/roles/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Role", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/watch/rolebindings": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1beta1/watch/roles": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/settings.k8s.io/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "settings" + ], + "operationId": "getAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/settings.k8s.io/v1alpha1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "settings_v1alpha1" + ], + "operationId": "getAPIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets": { + "get": { + "description": "list or watch objects of kind PodPreset", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "settings_v1alpha1" + ], + "operationId": "listNamespacedPodPreset", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodPresetList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "post": { + "description": "create a PodPreset", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "settings_v1alpha1" + ], + "operationId": "createNamespacedPodPreset", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.PodPreset" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodPreset" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "delete": { + "description": "delete collection of PodPreset", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "settings_v1alpha1" + ], + "operationId": "deleteCollectionNamespacedPodPreset", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}": { + "get": { + "description": "read the specified PodPreset", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "settings_v1alpha1" + ], + "operationId": "readNamespacedPodPreset", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodPreset" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "put": { + "description": "replace the specified PodPreset", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "settings_v1alpha1" + ], + "operationId": "replaceNamespacedPodPreset", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.PodPreset" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodPreset" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "delete": { + "description": "delete a PodPreset", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "settings_v1alpha1" + ], + "operationId": "deleteNamespacedPodPreset", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "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.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "patch": { + "description": "partially update the specified PodPreset", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "settings_v1alpha1" + ], + "operationId": "patchNamespacedPodPreset", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodPreset" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PodPreset", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/settings.k8s.io/v1alpha1/podpresets": { + "get": { + "description": "list or watch objects of kind PodPreset", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "settings_v1alpha1" + ], + "operationId": "listPodPresetForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodPresetList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/settings.k8s.io/v1alpha1/watch/namespaces/{namespace}/podpresets": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/settings.k8s.io/v1alpha1/watch/namespaces/{namespace}/podpresets/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PodPreset", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/settings.k8s.io/v1alpha1/watch/podpresets": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/storage.k8s.io/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage" + ], + "operationId": "getAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/storage.k8s.io/v1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "operationId": "getAPIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/storage.k8s.io/v1/storageclasses": { + "get": { + "description": "list or watch objects of kind StorageClass", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "operationId": "listStorageClass", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StorageClassList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "post": { + "description": "create a StorageClass", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "operationId": "createStorageClass", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.StorageClass" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StorageClass" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "delete": { + "description": "delete collection of StorageClass", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "operationId": "deleteCollectionStorageClass", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/storage.k8s.io/v1/storageclasses/{name}": { + "get": { + "description": "read the specified StorageClass", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "operationId": "readStorageClass", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StorageClass" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "put": { + "description": "replace the specified StorageClass", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "operationId": "replaceStorageClass", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.StorageClass" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StorageClass" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "delete": { + "description": "delete a StorageClass", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "operationId": "deleteStorageClass", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "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.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "patch": { + "description": "partially update the specified StorageClass", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1" + ], + "operationId": "patchStorageClass", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StorageClass" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the StorageClass", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/storage.k8s.io/v1/watch/storageclasses": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/storage.k8s.io/v1/watch/storageclasses/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the StorageClass", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/storage.k8s.io/v1beta1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1beta1" + ], + "operationId": "getAPIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/storage.k8s.io/v1beta1/storageclasses": { + "get": { + "description": "list or watch objects of kind StorageClass", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1beta1" + ], + "operationId": "listStorageClass", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.StorageClassList" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "post": { + "description": "create a StorageClass", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1beta1" + ], + "operationId": "createStorageClass", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.StorageClass" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.StorageClass" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "delete": { + "description": "delete collection of StorageClass", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1beta1" + ], + "operationId": "deleteCollectionStorageClass", + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/storage.k8s.io/v1beta1/storageclasses/{name}": { + "get": { + "description": "read the specified StorageClass", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1beta1" + ], + "operationId": "readStorageClass", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", + "name": "exact", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Should this value be exported. Export strips fields that a user can not specify.", + "name": "export", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.StorageClass" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "put": { + "description": "replace the specified StorageClass", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1beta1" + ], + "operationId": "replaceStorageClass", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.StorageClass" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.StorageClass" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "delete": { + "description": "delete a StorageClass", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1beta1" + ], + "operationId": "deleteStorageClass", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "integer", + "description": "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.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "patch": { + "description": "partially update the specified StorageClass", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "storage_v1beta1" + ], + "operationId": "patchStorageClass", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.StorageClass" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the StorageClass", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/storage.k8s.io/v1beta1/watch/storageclasses": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/storage.k8s.io/v1beta1/watch/storageclasses/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the StorageClass", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/logs/": { + "get": { + "schemes": [ + "https" + ], + "tags": [ + "logs" + ], + "operationId": "logFileListHandler", + "responses": { + "401": { + "description": "Unauthorized" + } + } + } + }, + "/logs/{logpath}": { + "get": { + "schemes": [ + "https" + ], + "tags": [ + "logs" + ], + "operationId": "logFileHandler", + "responses": { + "401": { + "description": "Unauthorized" + } + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "path to the log", + "name": "logpath", + "in": "path", + "required": true + } + ] + }, + "/version/": { + "get": { + "description": "get the code version", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "version" + ], + "operationId": "getCode", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/version.Info" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + } + }, + "definitions": { + "v1.NonResourceAttributes": { + "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", + "properties": { + "path": { + "description": "Path is the URL path of the request", + "type": "string" + }, + "verb": { + "description": "Verb is the standard HTTP verb", + "type": "string" + } + } + }, + "v1.EndpointAddress": { + "description": "EndpointAddress is a tuple that describes single IP address.", + "required": [ + "ip" + ], + "properties": { + "hostname": { + "description": "The Hostname of this endpoint", + "type": "string" + }, + "ip": { + "description": "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.", + "type": "string" + }, + "nodeName": { + "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", + "type": "string" + }, + "targetRef": { + "description": "Reference to object providing the endpoint.", + "$ref": "#/definitions/v1.ObjectReference" + } + } + }, + "v1.ContainerImage": { + "description": "Describe a container image", + "required": [ + "names" + ], + "properties": { + "names": { + "description": "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\"]", + "type": "array", + "items": { + "type": "string" + } + }, + "sizeBytes": { + "description": "The size of the image in bytes.", + "type": "integer", + "format": "int64" + } + } + }, + "apps.v1beta1.RollbackConfig": { + "properties": { + "revision": { + "description": "The revision to rollback to. If set to 0, rollbck to the last revision.", + "type": "integer", + "format": "int64" + } + } + }, + "extensions.v1beta1.RollingUpdateDeployment": { + "description": "Spec to control the desired behavior of rolling update.", + "properties": { + "maxSurge": { + "description": "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.", + "$ref": "#/definitions/intstr.IntOrString" + }, + "maxUnavailable": { + "description": "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 down. 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.", + "$ref": "#/definitions/intstr.IntOrString" + } + } + }, + "v1.APIResource": { + "description": "APIResource specifies the name of a resource and whether it is namespaced.", + "required": [ + "name", + "namespaced", + "kind", + "verbs" + ], + "properties": { + "kind": { + "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + "type": "string" + }, + "name": { + "description": "name is the name of the resource.", + "type": "string" + }, + "namespaced": { + "description": "namespaced indicates if a resource is namespaced or not.", + "type": "boolean" + }, + "shortNames": { + "description": "shortNames is a list of suggested short names of the resource.", + "type": "array", + "items": { + "type": "string" + } + }, + "verbs": { + "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "intstr.IntOrString": { + "type": "string", + "format": "int-or-string" + }, + "v1.Lifecycle": { + "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", + "properties": { + "postStart": { + "description": "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", + "$ref": "#/definitions/v1.Handler" + }, + "preStop": { + "description": "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", + "$ref": "#/definitions/v1.Handler" + } + } + }, + "v1.AzureDiskVolumeSource": { + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "required": [ + "diskName", + "diskURI" + ], + "properties": { + "cachingMode": { + "description": "Host Caching mode: None, Read Only, Read Write.", + "type": "string" + }, + "diskName": { + "description": "The Name of the data disk in the blob storage", + "type": "string" + }, + "diskURI": { + "description": "The URI the data disk in the blob storage", + "type": "string" + }, + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "readOnly": { + "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + } + } + }, + "v1beta1.StatefulSet": { + "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec defines the desired identities of pods in this set.", + "$ref": "#/definitions/v1beta1.StatefulSetSpec" + }, + "status": { + "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", + "$ref": "#/definitions/v1beta1.StatefulSetStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "apps", + "Version": "v1beta1", + "Kind": "StatefulSet" + } + ] + }, + "v1beta1.APIVersion": { + "description": "An APIVersion represents a single concrete version of an object model.", + "properties": { + "name": { + "description": "Name of this version (e.g. 'v1').", + "type": "string" + } + } + }, + "v1.UserInfo": { + "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", + "properties": { + "extra": { + "description": "Any additional information provided by the authenticator.", + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "groups": { + "description": "The names of groups this user is a part of.", + "type": "array", + "items": { + "type": "string" + } + }, + "uid": { + "description": "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.", + "type": "string" + }, + "username": { + "description": "The name that uniquely identifies this user among all active users.", + "type": "string" + } + } + }, + "v1.ServiceSpec": { + "description": "ServiceSpec describes the attributes that a user creates on a service.", + "properties": { + "clusterIP": { + "description": "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", + "type": "string" + }, + "deprecatedPublicIPs": { + "description": "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.", + "type": "array", + "items": { + "type": "string" + } + }, + "externalIPs": { + "description": "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.", + "type": "array", + "items": { + "type": "string" + } + }, + "externalName": { + "description": "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.", + "type": "string" + }, + "loadBalancerIP": { + "description": "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.", + "type": "string" + }, + "loadBalancerSourceRanges": { + "description": "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", + "type": "array", + "items": { + "type": "string" + } + }, + "ports": { + "description": "The list of ports that are exposed by this service. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ServicePort" + } + }, + "selector": { + "description": "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", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sessionAffinity": { + "description": "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", + "type": "string" + }, + "type": { + "description": "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", + "type": "string" + } + } + }, + "extensions.v1beta1.Deployment": { + "description": "Deployment enables declarative updates for Pods and ReplicaSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Specification of the desired behavior of the Deployment.", + "$ref": "#/definitions/extensions.v1beta1.DeploymentSpec" + }, + "status": { + "description": "Most recently observed status of the Deployment.", + "$ref": "#/definitions/extensions.v1beta1.DeploymentStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "Deployment" + } + ] + }, + "v1.DeleteOptions": { + "description": "DeleteOptions may be provided when deleting an API object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "gracePeriodSeconds": { + "description": "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.", + "type": "integer", + "format": "int64" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "orphanDependents": { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "type": "boolean" + }, + "preconditions": { + "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", + "$ref": "#/definitions/v1.Preconditions" + }, + "propagationPolicy": { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "type": "string" + } + } + }, + "v1.ConfigMapList": { + "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of ConfigMaps.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ConfigMap" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "ConfigMapList" + } + ] + }, + "v1.JobSpec": { + "description": "JobSpec describes how the job execution will look like.", + "required": [ + "template" + ], + "properties": { + "activeDeadlineSeconds": { + "description": "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", + "type": "integer", + "format": "int64" + }, + "completions": { + "description": "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", + "type": "integer", + "format": "int32" + }, + "manualSelector": { + "description": "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", + "type": "boolean" + }, + "parallelism": { + "description": "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", + "type": "integer", + "format": "int32" + }, + "selector": { + "description": "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", + "$ref": "#/definitions/v1.LabelSelector" + }, + "template": { + "description": "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", + "$ref": "#/definitions/v1.PodTemplateSpec" + } + } + }, + "apps.v1beta1.DeploymentCondition": { + "description": "DeploymentCondition describes the state of a deployment at a certain point.", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "description": "Last time the condition transitioned from one status to another.", + "$ref": "#/definitions/v1.Time" + }, + "lastUpdateTime": { + "description": "The last time this condition was updated.", + "$ref": "#/definitions/v1.Time" + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": "string" + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of deployment condition.", + "type": "string" + } + } + }, + "v1.ContainerStateWaiting": { + "description": "ContainerStateWaiting is a waiting state of a container.", + "properties": { + "message": { + "description": "Message regarding why the container is not yet running.", + "type": "string" + }, + "reason": { + "description": "(brief) reason the container is not yet running.", + "type": "string" + } + } + }, + "v1alpha1.ClusterRole": { + "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", + "required": [ + "rules" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "rules": { + "description": "Rules holds all the PolicyRules for this ClusterRole", + "type": "array", + "items": { + "$ref": "#/definitions/v1alpha1.PolicyRule" + } + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1alpha1", + "Kind": "ClusterRole" + } + ] + }, + "v1.LocalObjectReference": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + } + } + }, + "v1.ConfigMapProjection": { + "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", + "properties": { + "items": { + "description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.KeyToPath" + } + }, + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap or it's keys must be defined", + "type": "boolean" + } + } + }, + "v1.EndpointsList": { + "description": "EndpointsList is a list of endpoints.", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of endpoints.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Endpoints" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "EndpointsList" + } + ] + }, + "v2alpha1.CronJobStatus": { + "description": "CronJobStatus represents the current state of a cron job.", + "properties": { + "active": { + "description": "Active holds pointers to currently running jobs.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ObjectReference" + } + }, + "lastScheduleTime": { + "description": "LastScheduleTime keeps information of when was the last time the job was successfully scheduled.", + "$ref": "#/definitions/v1.Time" + } + } + }, + "v1.DownwardAPIProjection": { + "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", + "properties": { + "items": { + "description": "Items is a list of DownwardAPIVolume file", + "type": "array", + "items": { + "$ref": "#/definitions/v1.DownwardAPIVolumeFile" + } + } + } + }, + "v1alpha1.PolicyRule": { + "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", + "required": [ + "verbs" + ], + "properties": { + "apiGroups": { + "description": "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.", + "type": "array", + "items": { + "type": "string" + } + }, + "nonResourceURLs": { + "description": "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.", + "type": "array", + "items": { + "type": "string" + } + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "type": "array", + "items": { + "type": "string" + } + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", + "type": "array", + "items": { + "type": "string" + } + }, + "verbs": { + "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "v2alpha1.ResourceMetricStatus": { + "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "required": [ + "name", + "currentAverageValue" + ], + "properties": { + "currentAverageUtilization": { + "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.", + "type": "integer", + "format": "int32" + }, + "currentAverageValue": { + "description": "currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.", + "$ref": "#/definitions/resource.Quantity" + }, + "name": { + "description": "name is the name of the resource in question.", + "type": "string" + } + } + }, + "v1.QuobyteVolumeSource": { + "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", + "required": [ + "registry", + "volume" + ], + "properties": { + "group": { + "description": "Group to map volume access to Default is no group", + "type": "string" + }, + "readOnly": { + "description": "ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", + "type": "boolean" + }, + "registry": { + "description": "Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes", + "type": "string" + }, + "user": { + "description": "User to map volume access to Defaults to serivceaccount user", + "type": "string" + }, + "volume": { + "description": "Volume is a string that references an already created Quobyte volume by name.", + "type": "string" + } + } + }, + "v1.SELinuxOptions": { + "description": "SELinuxOptions are the labels to be applied to the container", + "properties": { + "level": { + "description": "Level is SELinux level label that applies to the container.", + "type": "string" + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": "string" + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": "string" + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": "string" + } + } + }, + "v1.HorizontalPodAutoscaler": { + "description": "configuration of a horizontal pod autoscaler.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", + "$ref": "#/definitions/v1.HorizontalPodAutoscalerSpec" + }, + "status": { + "description": "current information about the autoscaler.", + "$ref": "#/definitions/v1.HorizontalPodAutoscalerStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "autoscaling", + "Version": "v1", + "Kind": "HorizontalPodAutoscaler" + } + ] + }, + "v1beta1.ThirdPartyResource": { + "description": "A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource types to the API. It consists of one or more Versions of the api.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "description": { + "description": "Description is the description of this object.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "versions": { + "description": "Versions are versions for this third party object", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.APIVersion" + } + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "ThirdPartyResource" + } + ] + }, + "v1beta1.RunAsUserStrategyOptions": { + "description": "Run A sUser Strategy Options defines the strategy type and any options used to create the strategy.", + "required": [ + "rule" + ], + "properties": { + "ranges": { + "description": "Ranges are the allowed ranges of uids that may be used.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.IDRange" + } + }, + "rule": { + "description": "Rule is the strategy that will dictate the allowable RunAsUser values that may be set.", + "type": "string" + } + } + }, + "v1.ResourceRequirements": { + "description": "ResourceRequirements describes the compute resource requirements.", + "properties": { + "limits": { + "description": "Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + } + }, + "requests": { + "description": "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/", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + } + } + } + }, + "v1.PersistentVolume": { + "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "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", + "$ref": "#/definitions/v1.PersistentVolumeSpec" + }, + "status": { + "description": "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", + "$ref": "#/definitions/v1.PersistentVolumeStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "PersistentVolume" + } + ] + }, + "v1.APIResourceList": { + "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", + "required": [ + "groupVersion", + "resources" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "groupVersion": { + "description": "groupVersion is the group and version this APIResourceList is for.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "resources": { + "description": "resources contains the name of the resources and if they are namespaced.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.APIResource" + } + } + } + }, + "v1.ScaleIOVolumeSource": { + "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", + "required": [ + "gateway", + "system", + "secretRef" + ], + "properties": { + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "gateway": { + "description": "The host address of the ScaleIO API Gateway.", + "type": "string" + }, + "protectionDomain": { + "description": "The name of the Protection Domain for the configured storage (defaults to \"default\").", + "type": "string" + }, + "readOnly": { + "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "description": "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", + "$ref": "#/definitions/v1.LocalObjectReference" + }, + "sslEnabled": { + "description": "Flag to enable/disable SSL communication with Gateway, default false", + "type": "boolean" + }, + "storageMode": { + "description": "Indicates whether the storage for a volume should be thick or thin (defaults to \"thin\").", + "type": "string" + }, + "storagePool": { + "description": "The Storage Pool associated with the protection domain (defaults to \"default\").", + "type": "string" + }, + "system": { + "description": "The name of the storage system as configured in ScaleIO.", + "type": "string" + }, + "volumeName": { + "description": "The name of a volume already created in the ScaleIO system that is associated with this volume source.", + "type": "string" + } + } + }, + "v1.DaemonEndpoint": { + "description": "DaemonEndpoint contains information about a single Daemon endpoint.", + "required": [ + "Port" + ], + "properties": { + "Port": { + "description": "Port number of the given endpoint.", + "type": "integer", + "format": "int32" + } + } + }, + "v2alpha1.MetricSpec": { + "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", + "required": [ + "type" + ], + "properties": { + "object": { + "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", + "$ref": "#/definitions/v2alpha1.ObjectMetricSource" + }, + "pods": { + "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", + "$ref": "#/definitions/v2alpha1.PodsMetricSource" + }, + "resource": { + "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "$ref": "#/definitions/v2alpha1.ResourceMetricSource" + }, + "type": { + "description": "type is the type of metric source. It should match one of the fields below.", + "type": "string" + } + } + }, + "v1.ReplicationControllerList": { + "description": "ReplicationControllerList is a collection of replication controllers.", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of replication controllers. More info: http://kubernetes.io/docs/user-guide/replication-controller", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ReplicationController" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "ReplicationControllerList" + } + ] + }, + "v1beta1.IngressTLS": { + "description": "IngressTLS describes the transport layer security associated with an Ingress.", + "properties": { + "hosts": { + "description": "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.", + "type": "array", + "items": { + "type": "string" + } + }, + "secretName": { + "description": "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.", + "type": "string" } } }, - "unversioned.APIGroup": { - "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "extensions.v1beta1.ScaleSpec": { + "description": "describes the attributes of a scale subresource", + "properties": { + "replicas": { + "description": "desired number of instances for the scaled object.", + "type": "integer", + "format": "int32" + } + } + }, + "v2alpha1.ObjectMetricSource": { + "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", "required": [ - "name", - "versions", - "serverAddressByClientCIDRs" + "target", + "metricName", + "targetValue" + ], + "properties": { + "metricName": { + "description": "metricName is the name of the metric in question.", + "type": "string" + }, + "target": { + "description": "target is the described Kubernetes object.", + "$ref": "#/definitions/v2alpha1.CrossVersionObjectReference" + }, + "targetValue": { + "description": "targetValue is the target value of the metric (as a quantity).", + "$ref": "#/definitions/resource.Quantity" + } + } + }, + "v1.FlockerVolumeSource": { + "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", + "properties": { + "datasetName": { + "description": "Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", + "type": "string" + }, + "datasetUUID": { + "description": "UUID of the dataset. This is unique identifier of a Flocker dataset", + "type": "string" + } + } + }, + "v1.HorizontalPodAutoscalerStatus": { + "description": "current status of a horizontal pod autoscaler", + "required": [ + "currentReplicas", + "desiredReplicas" + ], + "properties": { + "currentCPUUtilizationPercentage": { + "description": "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.", + "type": "integer", + "format": "int32" + }, + "currentReplicas": { + "description": "current number of replicas of pods managed by this autoscaler.", + "type": "integer", + "format": "int32" + }, + "desiredReplicas": { + "description": "desired number of replicas of pods managed by this autoscaler.", + "type": "integer", + "format": "int32" + }, + "lastScaleTime": { + "description": "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.", + "$ref": "#/definitions/v1.Time" + }, + "observedGeneration": { + "description": "most recent generation observed by this autoscaler.", + "type": "integer", + "format": "int64" + } + } + }, + "v1.CrossVersionObjectReference": { + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "required": [ + "kind", + "name" ], "properties": { "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "description": "API version of the referent", "type": "string" }, "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "description": "Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\"", "type": "string" }, "name": { - "description": "name is the name of the group.", + "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", "type": "string" + } + } + }, + "apps.v1beta1.DeploymentStatus": { + "description": "DeploymentStatus is the most recently observed status of the Deployment.", + "properties": { + "availableReplicas": { + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", + "type": "integer", + "format": "int32" }, - "preferredVersion": { - "description": "preferredVersion is the version preferred by the API server, which probably is the storage version.", - "$ref": "#/definitions/unversioned.GroupVersionForDiscovery" - }, - "serverAddressByClientCIDRs": { - "description": "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.", + "conditions": { + "description": "Represents the latest available observations of a deployment's current state.", "type": "array", "items": { - "$ref": "#/definitions/unversioned.ServerAddressByClientCIDR" + "$ref": "#/definitions/apps.v1beta1.DeploymentCondition" } }, - "versions": { - "description": "versions are the versions supported in this group.", + "observedGeneration": { + "description": "The generation observed by the deployment controller.", + "type": "integer", + "format": "int64" + }, + "readyReplicas": { + "description": "Total number of ready pods targeted by this deployment.", + "type": "integer", + "format": "int32" + }, + "replicas": { + "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", + "type": "integer", + "format": "int32" + }, + "unavailableReplicas": { + "description": "Total number of unavailable pods targeted by this deployment.", + "type": "integer", + "format": "int32" + }, + "updatedReplicas": { + "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", + "type": "integer", + "format": "int32" + } + } + }, + "v1beta1.PodDisruptionBudgetList": { + "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { "type": "array", "items": { - "$ref": "#/definitions/unversioned.GroupVersionForDiscovery" + "$ref": "#/definitions/v1beta1.PodDisruptionBudget" } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "policy", + "Version": "v1beta1", + "Kind": "PodDisruptionBudgetList" + } + ] + }, + "extensions.v1beta1.DeploymentStrategy": { + "description": "DeploymentStrategy describes how to replace existing pods with new ones.", + "properties": { + "rollingUpdate": { + "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", + "$ref": "#/definitions/extensions.v1beta1.RollingUpdateDeployment" + }, + "type": { + "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", + "type": "string" } } }, - "unversioned.APIGroupList": { - "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "v1.ContainerStatus": { + "description": "ContainerStatus contains details for the current status of this container.", "required": [ - "groups" + "name", + "ready", + "restartCount", + "image", + "imageID" + ], + "properties": { + "containerID": { + "description": "Container's ID in the format 'docker://'. More info: http://kubernetes.io/docs/user-guide/container-environment#container-information", + "type": "string" + }, + "image": { + "description": "The image the container is running. More info: http://kubernetes.io/docs/user-guide/images", + "type": "string" + }, + "imageID": { + "description": "ImageID of the container's image.", + "type": "string" + }, + "lastState": { + "description": "Details about the container's last termination condition.", + "$ref": "#/definitions/v1.ContainerState" + }, + "name": { + "description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", + "type": "string" + }, + "ready": { + "description": "Specifies whether the container has passed its readiness probe.", + "type": "boolean" + }, + "restartCount": { + "description": "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.", + "type": "integer", + "format": "int32" + }, + "state": { + "description": "Details about the container's current condition.", + "$ref": "#/definitions/v1.ContainerState" + } + } + }, + "v2alpha1.ResourceMetricSource": { + "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "required": [ + "name" ], + "properties": { + "name": { + "description": "name is the name of the resource in question.", + "type": "string" + }, + "targetAverageUtilization": { + "description": "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", + "type": "integer", + "format": "int32" + }, + "targetAverageValue": { + "description": "targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.", + "$ref": "#/definitions/resource.Quantity" + } + } + }, + "v1.ComponentStatus": { + "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "groups": { - "description": "groups is a list of APIGroup.", + "conditions": { + "description": "List of component conditions observed", "type": "array", "items": { - "$ref": "#/definitions/unversioned.APIGroup" + "$ref": "#/definitions/v1.ComponentCondition" } }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "ComponentStatus" + } + ] + }, + "v1.WeightedPodAffinityTerm": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "required": [ + "weight", + "podAffinityTerm" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "$ref": "#/definitions/v1.PodAffinityTerm" + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "v1beta1.SubjectAccessReview": { + "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec holds information about the request being evaluated", + "$ref": "#/definitions/v1beta1.SubjectAccessReviewSpec" + }, + "status": { + "description": "Status is filled in by the server and indicates whether the request is allowed or not", + "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "authorization.k8s.io", + "Version": "v1beta1", + "Kind": "SubjectAccessReview" + } + ] + }, + "v1beta1.UserInfo": { + "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", + "properties": { + "extra": { + "description": "Any additional information provided by the authenticator.", + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "groups": { + "description": "The names of groups this user is a part of.", + "type": "array", + "items": { + "type": "string" + } + }, + "uid": { + "description": "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.", + "type": "string" + }, + "username": { + "description": "The name that uniquely identifies this user among all active users.", + "type": "string" } } }, - "unversioned.APIResource": { - "description": "APIResource specifies the name of a resource and whether it is namespaced.", + "v1.PersistentVolumeList": { + "description": "PersistentVolumeList is a list of PersistentVolume items.", "required": [ - "name", - "namespaced", - "kind" + "items" ], "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of persistent volumes. More info: http://kubernetes.io/docs/user-guide/persistent-volumes", + "type": "array", + "items": { + "$ref": "#/definitions/v1.PersistentVolume" + } + }, "kind": { - "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "name": { - "description": "name is the name of the resource.", + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "PersistentVolumeList" + } + ] + }, + "v1.ServerAddressByClientCIDR": { + "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", + "required": [ + "clientCIDR", + "serverAddress" + ], + "properties": { + "clientCIDR": { + "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", "type": "string" }, - "namespaced": { - "description": "namespaced indicates if a resource is namespaced or not.", - "type": "boolean" + "serverAddress": { + "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", + "type": "string" } } }, - "unversioned.APIResourceList": { - "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", + "v1beta1.Role": { + "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", "required": [ - "groupVersion", - "resources" + "rules" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "groupVersion": { - "description": "groupVersion is the group and version this APIResourceList is for.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "rules": { + "description": "Rules holds all the PolicyRules for this Role", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.PolicyRule" + } + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1beta1", + "Kind": "Role" + } + ] + }, + "v1.ScaleSpec": { + "description": "ScaleSpec describes the attributes of a scale subresource.", + "properties": { + "replicas": { + "description": "desired number of instances for the scaled object.", + "type": "integer", + "format": "int32" + } + } + }, + "v1.StatusCause": { + "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "properties": { + "field": { + "description": "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.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "type": "string" + }, + "message": { + "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "type": "string" + }, + "reason": { + "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "type": "string" + } + } + }, + "v1beta1.DaemonSet": { + "description": "DaemonSet represents the configuration of a daemon set.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "resources": { - "description": "resources contains the name of the resources and if they are namespaced.", + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "The desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1beta1.DaemonSetSpec" + }, + "status": { + "description": "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", + "$ref": "#/definitions/v1beta1.DaemonSetStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "DaemonSet" + } + ] + }, + "extensions.v1beta1.DeploymentSpec": { + "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", + "required": [ + "template" + ], + "properties": { + "minReadySeconds": { + "description": "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)", + "type": "integer", + "format": "int32" + }, + "paused": { + "description": "Indicates that the deployment is paused and will not be processed by the deployment controller.", + "type": "boolean" + }, + "progressDeadlineSeconds": { + "description": "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.", + "type": "integer", + "format": "int32" + }, + "replicas": { + "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", + "type": "integer", + "format": "int32" + }, + "revisionHistoryLimit": { + "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified.", + "type": "integer", + "format": "int32" + }, + "rollbackTo": { + "description": "The config this deployment is rolling back to. Will be cleared after rollback is done.", + "$ref": "#/definitions/extensions.v1beta1.RollbackConfig" + }, + "selector": { + "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", + "$ref": "#/definitions/v1.LabelSelector" + }, + "strategy": { + "description": "The deployment strategy to use to replace existing pods with new ones.", + "$ref": "#/definitions/extensions.v1beta1.DeploymentStrategy" + }, + "template": { + "description": "Template describes the pods that will be created.", + "$ref": "#/definitions/v1.PodTemplateSpec" + } + } + }, + "v1beta1.NonResourceAttributes": { + "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", + "properties": { + "path": { + "description": "Path is the URL path of the request", + "type": "string" + }, + "verb": { + "description": "Verb is the standard HTTP verb", + "type": "string" + } + } + }, + "v1.PodSecurityContext": { + "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", + "properties": { + "fsGroup": { + "description": "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:\n\n1. 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----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.", + "type": "integer", + "format": "int64" + }, + "runAsNonRoot": { + "description": "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.", + "type": "boolean" + }, + "runAsUser": { + "description": "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.", + "type": "integer", + "format": "int64" + }, + "seLinuxOptions": { + "description": "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.", + "$ref": "#/definitions/v1.SELinuxOptions" + }, + "supplementalGroups": { + "description": "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.", "type": "array", "items": { - "$ref": "#/definitions/unversioned.APIResource" + "type": "integer", + "format": "int64" } } } }, - "unversioned.APIVersions": { - "description": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", + "v1.ComponentStatusList": { + "description": "Status of all the conditions for the component as a list of ComponentStatus objects.", "required": [ - "versions", - "serverAddressByClientCIDRs" + "items" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "serverAddressByClientCIDRs": { - "description": "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.", + "items": { + "description": "List of ComponentStatus objects.", "type": "array", "items": { - "$ref": "#/definitions/unversioned.ServerAddressByClientCIDR" + "$ref": "#/definitions/v1.ComponentStatus" } }, - "versions": { - "description": "versions are the api versions that are available.", - "type": "array", - "items": { - "type": "string" - } + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "ComponentStatusList" + } + ] }, - "unversioned.GroupVersionForDiscovery": { - "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "v1alpha1.Subject": { + "description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", "required": [ - "groupVersion", - "version" + "kind", + "name" ], "properties": { - "groupVersion": { - "description": "groupVersion specifies the API group and version in the form \"group/version\"", + "apiVersion": { + "description": "APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects.", "type": "string" }, - "version": { - "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", + "kind": { + "description": "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.", + "type": "string" + }, + "name": { + "description": "Name of the object being referenced.", + "type": "string" + }, + "namespace": { + "description": "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.", "type": "string" } } }, - "unversioned.LabelSelector": { + "v1.LabelSelector": { "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", "properties": { "matchExpressions": { "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", "type": "array", "items": { - "$ref": "#/definitions/unversioned.LabelSelectorRequirement" + "$ref": "#/definitions/v1.LabelSelectorRequirement" } }, "matchLabels": { @@ -29343,151 +34941,117 @@ } } }, - "unversioned.LabelSelectorRequirement": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", - "required": [ - "key", - "operator" - ], + "v1beta1.Ingress": { + "description": "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", "properties": { - "key": { - "description": "key is the label key that the selector applies to.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "operator": { - "description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "values": { - "description": "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.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "unversioned.ListMeta": { - "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", - "properties": { - "resourceVersion": { - "description": "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", - "type": "string" + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" }, - "selfLink": { - "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.", - "type": "string" + "spec": { + "description": "Spec is the desired state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1beta1.IngressSpec" + }, + "status": { + "description": "Status is the current state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1beta1.IngressStatus" } - } - }, - "unversioned.Patch": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body." + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "Ingress" + } + ] }, - "unversioned.ServerAddressByClientCIDR": { - "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", + "v1.NodeAddress": { + "description": "NodeAddress contains information for the node's address.", "required": [ - "clientCIDR", - "serverAddress" + "type", + "address" ], "properties": { - "clientCIDR": { - "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", + "address": { + "description": "The node address.", "type": "string" }, - "serverAddress": { - "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", + "type": { + "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", "type": "string" } } }, - "unversioned.Status": { - "description": "Status is a return value for calls that don't return other objects.", + "extensions.v1beta1.DeploymentStatus": { + "description": "DeploymentStatus is the most recently observed status of the Deployment.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "code": { - "description": "Suggested HTTP return code for this status, 0 if not set.", + "availableReplicas": { + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", "type": "integer", "format": "int32" }, - "details": { - "description": "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.", - "$ref": "#/definitions/unversioned.StatusDetails" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "message": { - "description": "A human-readable description of the status of this operation.", - "type": "string" + "conditions": { + "description": "Represents the latest available observations of a deployment's current state.", + "type": "array", + "items": { + "$ref": "#/definitions/extensions.v1beta1.DeploymentCondition" + } }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "observedGeneration": { + "description": "The generation observed by the deployment controller.", + "type": "integer", + "format": "int64" }, - "reason": { - "description": "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.", - "type": "string" + "readyReplicas": { + "description": "Total number of ready pods targeted by this deployment.", + "type": "integer", + "format": "int32" }, - "status": { - "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "type": "string" - } - } - }, - "unversioned.StatusCause": { - "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", - "properties": { - "field": { - "description": "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.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", - "type": "string" + "replicas": { + "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", + "type": "integer", + "format": "int32" }, - "message": { - "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", - "type": "string" + "unavailableReplicas": { + "description": "Total number of unavailable pods targeted by this deployment.", + "type": "integer", + "format": "int32" }, - "reason": { - "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", - "type": "string" + "updatedReplicas": { + "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", + "type": "integer", + "format": "int32" } } }, - "unversioned.StatusDetails": { - "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", + "v1.EnvVar": { + "description": "EnvVar represents an environment variable present in a Container.", + "required": [ + "name" + ], "properties": { - "causes": { - "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", - "type": "array", - "items": { - "$ref": "#/definitions/unversioned.StatusCause" - } - }, - "group": { - "description": "The group attribute of the resource associated with the status StatusReason.", - "type": "string" - }, - "kind": { - "description": "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", + "name": { + "description": "Name of the environment variable. Must be a C_IDENTIFIER.", "type": "string" }, - "name": { - "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "value": { + "description": "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 \"\".", "type": "string" }, - "retryAfterSeconds": { - "description": "If specified, the time in seconds before the operation should be retried.", - "type": "integer", - "format": "int32" + "valueFrom": { + "description": "Source for the environment variable's value. Cannot be used if value is not empty.", + "$ref": "#/definitions/v1.EnvVarSource" } } }, - "unversioned.Time": { - "type": "string", - "format": "date-time" - }, "v1.AWSElasticBlockStoreVolumeSource": { "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", "required": [ @@ -29513,208 +35077,137 @@ } } }, - "v1.AttachedVolume": { - "description": "AttachedVolume describes a volume attached to a node", - "required": [ - "name", - "devicePath" - ], - "properties": { - "devicePath": { - "description": "DevicePath represents the device path where the volume should be available", - "type": "string" - }, - "name": { - "description": "Name of the attached volume", - "type": "string" - } - } - }, - "v1.AzureDiskVolumeSource": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "v1.NFSVolumeSource": { + "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", "required": [ - "diskName", - "diskURI" + "server", + "path" ], "properties": { - "cachingMode": { - "description": "Host Caching mode: None, Read Only, Read Write.", - "type": "string" - }, - "diskName": { - "description": "The Name of the data disk in the blob storage", - "type": "string" - }, - "diskURI": { - "description": "The URI the data disk in the blob storage", - "type": "string" - }, - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "path": { + "description": "Path that is exported by the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", "type": "string" }, "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - } - } - }, - "v1.AzureFileVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "required": [ - "secretName", - "shareName" - ], - "properties": { - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", "type": "boolean" }, - "secretName": { - "description": "the name of secret that contains Azure Storage Account Name and Key", - "type": "string" - }, - "shareName": { - "description": "Share Name", + "server": { + "description": "Server is the hostname or IP address of the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", "type": "string" } } }, - "v1.Binding": { - "description": "Binding ties one object to another. For example, a pod is bound to a node by a scheduler.", + "v1beta1.PodSecurityPolicySpec": { + "description": "Pod Security Policy Spec defines the policy enforced.", "required": [ - "target" + "seLinux", + "runAsUser", + "supplementalGroups", + "fsGroup" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "target": { - "description": "The target object that you want to bind to the standard object.", - "$ref": "#/definitions/v1.ObjectReference" - } - } - }, - "v1.Capabilities": { - "description": "Adds and removes POSIX capabilities from running containers.", - "properties": { - "add": { - "description": "Added capabilities", + "allowedCapabilities": { + "description": "AllowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities.", "type": "array", "items": { "type": "string" } }, - "drop": { - "description": "Removed capabilities", + "defaultAddCapabilities": { + "description": "DefaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities.", "type": "array", "items": { "type": "string" } - } - } - }, - "v1.CephFSVolumeSource": { - "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", - "required": [ - "monitors" - ], - "properties": { - "monitors": { - "description": "Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + }, + "fsGroup": { + "description": "FSGroup is the strategy that will dictate what fs group is used by the SecurityContext.", + "$ref": "#/definitions/v1beta1.FSGroupStrategyOptions" + }, + "hostIPC": { + "description": "hostIPC determines if the policy allows the use of HostIPC in the pod spec.", + "type": "boolean" + }, + "hostNetwork": { + "description": "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.", + "type": "boolean" + }, + "hostPID": { + "description": "hostPID determines if the policy allows the use of HostPID in the pod spec.", + "type": "boolean" + }, + "hostPorts": { + "description": "hostPorts determines which host port ranges are allowed to be exposed.", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1beta1.HostPortRange" } }, - "path": { - "description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "type": "string" + "privileged": { + "description": "privileged determines if a pod can request to be run as privileged.", + "type": "boolean" }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "readOnlyRootFilesystem": { + "description": "ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.", "type": "boolean" }, - "secretFile": { - "description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "string" + "requiredDropCapabilities": { + "description": "RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.", + "type": "array", + "items": { + "type": "string" + } }, - "secretRef": { - "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "$ref": "#/definitions/v1.LocalObjectReference" + "runAsUser": { + "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.", + "$ref": "#/definitions/v1beta1.RunAsUserStrategyOptions" }, - "user": { - "description": "Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - } - } - }, - "v1.CinderVolumeSource": { - "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", - "required": [ - "volumeID" - ], - "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "type": "string" + "seLinux": { + "description": "seLinux is the strategy that will dictate the allowable labels that may be set.", + "$ref": "#/definitions/v1beta1.SELinuxStrategyOptions" }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "type": "boolean" + "supplementalGroups": { + "description": "SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.", + "$ref": "#/definitions/v1beta1.SupplementalGroupsStrategyOptions" }, - "volumeID": { - "description": "volume id used to identify the volume in cinder More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "type": "string" + "volumes": { + "description": "volumes is a white list of allowed volume plugins. Empty indicates that all plugins may be used.", + "type": "array", + "items": { + "type": "string" + } } } }, - "v1.ComponentCondition": { - "description": "Information about the condition of a component.", - "required": [ - "type", - "status" - ], + "v1.ListMeta": { + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", "properties": { - "error": { - "description": "Condition error code for a component. For example, a health check error code.", - "type": "string" - }, - "message": { - "description": "Message about the condition for a component. For example, information about a health check.", - "type": "string" - }, - "status": { - "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", + "resourceVersion": { + "description": "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", "type": "string" }, - "type": { - "description": "Type of condition for a component. Valid value: \"Healthy\"", + "selfLink": { + "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.", "type": "string" } } }, - "v1.ComponentStatus": { - "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info.", + "v1beta1.ReplicaSetList": { + "description": "ReplicaSetList is a collection of ReplicaSets.", + "required": [ + "items" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "conditions": { - "description": "List of component conditions observed", + "items": { + "description": "List of ReplicaSets. More info: http://kubernetes.io/docs/user-guide/replication-controller", "type": "array", "items": { - "$ref": "#/definitions/v1.ComponentCondition" + "$ref": "#/definitions/v1beta1.ReplicaSet" } }, "kind": { @@ -29722,13 +35215,20 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "ReplicaSetList" + } + ] }, - "v1.ComponentStatusList": { - "description": "Status of all the conditions for the component as a list of ComponentStatus objects.", + "v1.ServiceAccountList": { + "description": "ServiceAccountList is a list of ServiceAccount objects", "required": [ "items" ], @@ -29738,10 +35238,10 @@ "type": "string" }, "items": { - "description": "List of ComponentStatus objects.", + "description": "List of ServiceAccounts. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts", "type": "array", "items": { - "$ref": "#/definitions/v1.ComponentStatus" + "$ref": "#/definitions/v1.ServiceAccount" } }, "kind": { @@ -29750,22 +35250,32 @@ }, "metadata": { "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "ServiceAccountList" + } + ] }, - "v1.ConfigMap": { - "description": "ConfigMap holds configuration data for pods to consume.", + "v1.HorizontalPodAutoscalerList": { + "description": "list of horizontal pod autoscaler objects.", + "required": [ + "items" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "data": { - "description": "Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot.", - "type": "object", - "additionalProperties": { - "type": "string" + "items": { + "description": "list of horizontal pod autoscaler objects.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "kind": { @@ -29773,29 +35283,94 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" + "description": "Standard list metadata.", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "autoscaling", + "Version": "v1", + "Kind": "HorizontalPodAutoscalerList" + } + ] }, - "v1.ConfigMapKeySelector": { - "description": "Selects a key from a ConfigMap.", + "v1.Probe": { + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "properties": { + "exec": { + "description": "One and only one of the following should be specified. Exec specifies the action to take.", + "$ref": "#/definitions/v1.ExecAction" + }, + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "type": "integer", + "format": "int32" + }, + "httpGet": { + "description": "HTTPGet specifies the http request to perform.", + "$ref": "#/definitions/v1.HTTPGetAction" + }, + "initialDelaySeconds": { + "description": "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", + "type": "integer", + "format": "int32" + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "type": "integer", + "format": "int32" + }, + "successThreshold": { + "description": "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.", + "type": "integer", + "format": "int32" + }, + "tcpSocket": { + "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", + "$ref": "#/definitions/v1.TCPSocketAction" + }, + "timeoutSeconds": { + "description": "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", + "type": "integer", + "format": "int32" + } + } + }, + "v1.SecretKeySelector": { + "description": "SecretKeySelector selects a key of a Secret.", "required": [ "key" ], "properties": { "key": { - "description": "The key to select.", + "description": "The key of the secret to select from. Must be a valid secret key.", "type": "string" }, "name": { "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", "type": "string" + }, + "optional": { + "description": "Specify whether the Secret or it's key must be defined", + "type": "boolean" } } }, - "v1.ConfigMapList": { - "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "v1.NamespaceSpec": { + "description": "NamespaceSpec describes the attributes on a Namespace.", + "properties": { + "finalizers": { + "description": "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", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "v1beta1.ClusterRoleBindingList": { + "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", "required": [ "items" ], @@ -29805,10 +35380,10 @@ "type": "string" }, "items": { - "description": "Items is the list of ConfigMaps.", + "description": "Items is a list of ClusterRoleBindings", "type": "array", "items": { - "$ref": "#/definitions/v1.ConfigMap" + "$ref": "#/definitions/v1beta1.ClusterRoleBinding" } }, "kind": { @@ -29816,632 +35391,454 @@ "type": "string" }, "metadata": { - "description": "More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/unversioned.ListMeta" + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ListMeta" } - } - }, - "v1.ConfigMapVolumeSource": { - "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", - "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "items": { - "description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - } - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1beta1", + "Kind": "ClusterRoleBindingList" } - } + ] }, - "v1.Container": { - "description": "A single application container that you want to run within a pod.", + "v1.Volume": { + "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", "required": [ "name" ], "properties": { - "args": { - "description": "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", - "type": "array", - "items": { - "type": "string" - } + "awsElasticBlockStore": { + "description": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", + "$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource" }, - "command": { - "description": "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", - "type": "array", - "items": { - "type": "string" - } + "azureDisk": { + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "$ref": "#/definitions/v1.AzureDiskVolumeSource" }, - "env": { - "description": "List of environment variables to set in the container. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EnvVar" - } + "azureFile": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "$ref": "#/definitions/v1.AzureFileVolumeSource" }, - "image": { - "description": "Docker image name. More info: http://kubernetes.io/docs/user-guide/images", - "type": "string" + "cephfs": { + "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + "$ref": "#/definitions/v1.CephFSVolumeSource" }, - "imagePullPolicy": { - "description": "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", - "type": "string" + "cinder": { + "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", + "$ref": "#/definitions/v1.CinderVolumeSource" }, - "lifecycle": { - "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", - "$ref": "#/definitions/v1.Lifecycle" + "configMap": { + "description": "ConfigMap represents a configMap that should populate this volume", + "$ref": "#/definitions/v1.ConfigMapVolumeSource" }, - "livenessProbe": { - "description": "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", - "$ref": "#/definitions/v1.Probe" + "downwardAPI": { + "description": "DownwardAPI represents downward API about the pod that should populate this volume", + "$ref": "#/definitions/v1.DownwardAPIVolumeSource" }, - "name": { - "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", - "type": "string" + "emptyDir": { + "description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir", + "$ref": "#/definitions/v1.EmptyDirVolumeSource" }, - "ports": { - "description": "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ContainerPort" - } + "fc": { + "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", + "$ref": "#/definitions/v1.FCVolumeSource" }, - "readinessProbe": { - "description": "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", - "$ref": "#/definitions/v1.Probe" + "flexVolume": { + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", + "$ref": "#/definitions/v1.FlexVolumeSource" }, - "resources": { - "description": "Compute Resources required by this container. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources", - "$ref": "#/definitions/v1.ResourceRequirements" + "flocker": { + "description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", + "$ref": "#/definitions/v1.FlockerVolumeSource" }, - "securityContext": { - "description": "Security options the pod should run with. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md", - "$ref": "#/definitions/v1.SecurityContext" + "gcePersistentDisk": { + "description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", + "$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource" }, - "stdin": { - "description": "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.", - "type": "boolean" + "gitRepo": { + "description": "GitRepo represents a git repository at a particular revision.", + "$ref": "#/definitions/v1.GitRepoVolumeSource" }, - "stdinOnce": { - "description": "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", - "type": "boolean" + "glusterfs": { + "description": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md", + "$ref": "#/definitions/v1.GlusterfsVolumeSource" }, - "terminationMessagePath": { - "description": "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.", + "hostPath": { + "description": "HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath", + "$ref": "#/definitions/v1.HostPathVolumeSource" + }, + "iscsi": { + "description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md", + "$ref": "#/definitions/v1.ISCSIVolumeSource" + }, + "name": { + "description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names", "type": "string" }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", - "type": "boolean" + "nfs": { + "description": "NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://kubernetes.io/docs/user-guide/volumes#nfs", + "$ref": "#/definitions/v1.NFSVolumeSource" }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.VolumeMount" - } + "persistentVolumeClaim": { + "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", + "$ref": "#/definitions/v1.PersistentVolumeClaimVolumeSource" }, - "workingDir": { - "description": "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.", - "type": "string" - } - } - }, - "v1.ContainerImage": { - "description": "Describe a container image", - "required": [ - "names" - ], - "properties": { - "names": { - "description": "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\"]", - "type": "array", - "items": { - "type": "string" - } + "photonPersistentDisk": { + "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource" }, - "sizeBytes": { - "description": "The size of the image in bytes.", - "type": "integer", - "format": "int64" - } - } - }, - "v1.ContainerPort": { - "description": "ContainerPort represents a network port in a single container.", - "required": [ - "containerPort" - ], - "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", - "type": "integer", - "format": "int32" + "portworxVolume": { + "description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine", + "$ref": "#/definitions/v1.PortworxVolumeSource" }, - "hostIP": { - "description": "What host IP to bind the external port to.", - "type": "string" + "projected": { + "description": "Items for all in one resources secrets, configmaps, and downward API", + "$ref": "#/definitions/v1.ProjectedVolumeSource" }, - "hostPort": { - "description": "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.", - "type": "integer", - "format": "int32" + "quobyte": { + "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + "$ref": "#/definitions/v1.QuobyteVolumeSource" }, - "name": { - "description": "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.", - "type": "string" + "rbd": { + "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", + "$ref": "#/definitions/v1.RBDVolumeSource" }, - "protocol": { - "description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\".", - "type": "string" - } - } - }, - "v1.ContainerState": { - "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", - "properties": { - "running": { - "description": "Details about a running container", - "$ref": "#/definitions/v1.ContainerStateRunning" + "scaleIO": { + "description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", + "$ref": "#/definitions/v1.ScaleIOVolumeSource" }, - "terminated": { - "description": "Details about a terminated container", - "$ref": "#/definitions/v1.ContainerStateTerminated" + "secret": { + "description": "Secret represents a secret that should populate this volume. More info: http://kubernetes.io/docs/user-guide/volumes#secrets", + "$ref": "#/definitions/v1.SecretVolumeSource" }, - "waiting": { - "description": "Details about a waiting container", - "$ref": "#/definitions/v1.ContainerStateWaiting" - } - } - }, - "v1.ContainerStateRunning": { - "description": "ContainerStateRunning is a running state of a container.", - "properties": { - "startedAt": { - "description": "Time at which the container was last (re-)started", - "$ref": "#/definitions/unversioned.Time" + "vsphereVolume": { + "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource" } } }, - "v1.ContainerStateTerminated": { - "description": "ContainerStateTerminated is a terminated state of a container.", + "v1.ConfigMapKeySelector": { + "description": "Selects a key from a ConfigMap.", "required": [ - "exitCode" + "key" ], "properties": { - "containerID": { - "description": "Container's ID in the format 'docker://'", - "type": "string" - }, - "exitCode": { - "description": "Exit status from the last termination of the container", - "type": "integer", - "format": "int32" - }, - "finishedAt": { - "description": "Time at which the container last terminated", - "$ref": "#/definitions/unversioned.Time" - }, - "message": { - "description": "Message regarding the last termination of the container", + "key": { + "description": "The key to select.", "type": "string" }, - "reason": { - "description": "(brief) reason from the last termination of the container", + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", "type": "string" }, - "signal": { - "description": "Signal from the last termination of the container", - "type": "integer", - "format": "int32" - }, - "startedAt": { - "description": "Time at which previous execution of the container started", - "$ref": "#/definitions/unversioned.Time" + "optional": { + "description": "Specify whether the ConfigMap or it's key must be defined", + "type": "boolean" } } }, - "v1.ContainerStateWaiting": { - "description": "ContainerStateWaiting is a waiting state of a container.", - "properties": { - "message": { - "description": "Message regarding why the container is not yet running.", - "type": "string" - }, - "reason": { - "description": "(brief) reason the container is not yet running.", - "type": "string" - } - } + "v1.Patch": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body." }, - "v1.ContainerStatus": { - "description": "ContainerStatus contains details for the current status of this container.", + "v1beta1.IngressList": { + "description": "IngressList is a collection of Ingress.", "required": [ - "name", - "ready", - "restartCount", - "image", - "imageID" + "items" ], "properties": { - "containerID": { - "description": "Container's ID in the format 'docker://'. More info: http://kubernetes.io/docs/user-guide/container-environment#container-information", - "type": "string" - }, - "image": { - "description": "The image the container is running. More info: http://kubernetes.io/docs/user-guide/images", - "type": "string" - }, - "imageID": { - "description": "ImageID of the container's image.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "lastState": { - "description": "Details about the container's last termination condition.", - "$ref": "#/definitions/v1.ContainerState" + "items": { + "description": "Items is the list of Ingress.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.Ingress" + } }, - "name": { - "description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "ready": { - "description": "Specifies whether the container has passed its readiness probe.", - "type": "boolean" - }, - "restartCount": { - "description": "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.", - "type": "integer", - "format": "int32" - }, - "state": { - "description": "Details about the container's current condition.", - "$ref": "#/definitions/v1.ContainerState" + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "IngressList" + } + ] }, - "v1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "required": [ - "kind", - "name" - ], + "v1beta1.ReplicaSet": { + "description": "ReplicaSet represents the configuration of a ReplicaSet.", "properties": { "apiVersion": { - "description": "API version of the referent", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, "kind": { - "description": "Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\"", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" + "metadata": { + "description": "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", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "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", + "$ref": "#/definitions/v1beta1.ReplicaSetSpec" + }, + "status": { + "description": "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", + "$ref": "#/definitions/v1beta1.ReplicaSetStatus" } - } - }, - "v1.DaemonEndpoint": { - "description": "DaemonEndpoint contains information about a single Daemon endpoint.", - "required": [ - "Port" - ], - "properties": { - "Port": { - "description": "Port number of the given endpoint.", - "type": "integer", - "format": "int32" + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "ReplicaSet" } - } + ] }, - "v1.DeleteOptions": { - "description": "DeleteOptions may be provided when deleting an API object", + "v2alpha1.CronJob": { + "description": "CronJob represents the configuration of a single cron job.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "gracePeriodSeconds": { - "description": "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.", - "type": "integer", - "format": "int64" - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "orphanDependents": { - "description": "Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.", - "type": "boolean" + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" }, - "preconditions": { - "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", - "$ref": "#/definitions/v1.Preconditions" + "spec": { + "description": "Spec is a structure defining the expected behavior of a job, including the schedule. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v2alpha1.CronJobSpec" + }, + "status": { + "description": "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", + "$ref": "#/definitions/v2alpha1.CronJobStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "batch", + "Version": "v2alpha1", + "Kind": "CronJob" + }, + { + "Group": "batch", + "Version": "v2alpha1", + "Kind": "ScheduledJob" + } + ] }, - "v1.DownwardAPIVolumeFile": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "v1.VsphereVirtualDiskVolumeSource": { + "description": "Represents a vSphere volume resource.", "required": [ - "path" + "volumePath" ], "properties": { - "fieldRef": { - "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", - "$ref": "#/definitions/v1.ObjectFieldSelector" - }, - "mode": { - "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", "type": "string" }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "$ref": "#/definitions/v1.ResourceFieldSelector" + "volumePath": { + "description": "Path that identifies vSphere volume vmdk", + "type": "string" } } }, - "v1.DownwardAPIVolumeSource": { - "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", + "v1.Status": { + "description": "Status is a return value for calls that don't return other objects.", "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "code": { + "description": "Suggested HTTP return code for this status, 0 if not set.", "type": "integer", "format": "int32" }, - "items": { - "description": "Items is a list of downward API volume file", - "type": "array", - "items": { - "$ref": "#/definitions/v1.DownwardAPIVolumeFile" - } - } - } - }, - "v1.EmptyDirVolumeSource": { - "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", - "properties": { - "medium": { - "description": "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir", - "type": "string" - } - } - }, - "v1.EndpointAddress": { - "description": "EndpointAddress is a tuple that describes single IP address.", - "required": [ - "ip" - ], - "properties": { - "hostname": { - "description": "The Hostname of this endpoint", + "details": { + "description": "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.", + "$ref": "#/definitions/v1.StatusDetails" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "ip": { - "description": "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.", + "message": { + "description": "A human-readable description of the status of this operation.", "type": "string" }, - "nodeName": { - "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/v1.ListMeta" + }, + "reason": { + "description": "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.", "type": "string" }, - "targetRef": { - "description": "Reference to object providing the endpoint.", - "$ref": "#/definitions/v1.ObjectReference" + "status": { + "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "type": "string" } } }, - "v1.EndpointPort": { - "description": "EndpointPort is a tuple that describes a single port.", + "v1.ReplicationControllerStatus": { + "description": "ReplicationControllerStatus represents the current status of a replication controller.", "required": [ - "port" + "replicas" ], "properties": { - "name": { - "description": "The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.", - "type": "string" - }, - "port": { - "description": "The port number of the endpoint.", + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", "type": "integer", "format": "int32" }, - "protocol": { - "description": "The IP protocol for this port. Must be UDP or TCP. Default is TCP.", - "type": "string" - } - } - }, - "v1.EndpointSubset": { - "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]", - "properties": { - "addresses": { - "description": "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.", + "conditions": { + "description": "Represents the latest available observations of a replication controller's current state.", "type": "array", "items": { - "$ref": "#/definitions/v1.EndpointAddress" + "$ref": "#/definitions/v1.ReplicationControllerCondition" } }, - "notReadyAddresses": { - "description": "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EndpointAddress" - } + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replication controller.", + "type": "integer", + "format": "int32" }, - "ports": { - "description": "Port numbers available on the related IP addresses.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EndpointPort" - } + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed replication controller.", + "type": "integer", + "format": "int64" + }, + "readyReplicas": { + "description": "The number of ready replicas for this replication controller.", + "type": "integer", + "format": "int32" + }, + "replicas": { + "description": "Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", + "type": "integer", + "format": "int32" } } }, - "v1.Endpoints": { - "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n Name: \"mysvc\",\n Subsets: [\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n },\n {\n Addresses: [{\"ip\": \"10.10.3.3\"}],\n Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n },\n ]", - "required": [ - "subsets" - ], + "v1.LoadBalancerStatus": { + "description": "LoadBalancerStatus represents the status of a load-balancer.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "subsets": { - "description": "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.", + "ingress": { + "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", "type": "array", "items": { - "$ref": "#/definitions/v1.EndpointSubset" + "$ref": "#/definitions/v1.LoadBalancerIngress" } } } }, - "v1.EndpointsList": { - "description": "EndpointsList is a list of endpoints.", + "v1.Binding": { + "description": "Binding ties one object to another. For example, a pod is bound to a node by a scheduler.", "required": [ - "items" + "target" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "List of endpoints.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Endpoints" - } - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "target": { + "description": "The target object that you want to bind to the standard object.", + "$ref": "#/definitions/v1.ObjectReference" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "Binding" + } + ] }, - "v1.EnvVar": { - "description": "EnvVar represents an environment variable present in a Container.", - "required": [ - "name" - ], + "v1.VolumeProjection": { + "description": "Projection that may be projected along with other supported volume types", "properties": { - "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", - "type": "string" + "configMap": { + "description": "information about the configMap data to project", + "$ref": "#/definitions/v1.ConfigMapProjection" }, - "value": { - "description": "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 \"\".", - "type": "string" + "downwardAPI": { + "description": "information about the downwardAPI data to project", + "$ref": "#/definitions/v1.DownwardAPIProjection" }, - "valueFrom": { - "description": "Source for the environment variable's value. Cannot be used if value is not empty.", - "$ref": "#/definitions/v1.EnvVarSource" + "secret": { + "description": "information about the secret data to project", + "$ref": "#/definitions/v1.SecretProjection" } } }, - "v1.EnvVarSource": { - "description": "EnvVarSource represents a source for the value of an EnvVar.", + "v1.Time": { + "type": "string", + "format": "date-time" + }, + "v1.TokenReviewSpec": { + "description": "TokenReviewSpec is a description of the token authentication request.", "properties": { - "configMapKeyRef": { - "description": "Selects a key of a ConfigMap.", - "$ref": "#/definitions/v1.ConfigMapKeySelector" - }, - "fieldRef": { - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP.", - "$ref": "#/definitions/v1.ObjectFieldSelector" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "$ref": "#/definitions/v1.ResourceFieldSelector" - }, - "secretKeyRef": { - "description": "Selects a key of a secret in the pod's namespace", - "$ref": "#/definitions/v1.SecretKeySelector" + "token": { + "description": "Token is the opaque bearer token.", + "type": "string" } } }, - "v1.Event": { - "description": "Event is a report of an event somewhere in the cluster.", + "v1beta1.Subject": { + "description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", "required": [ - "metadata", - "involvedObject" + "kind", + "name" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "apiGroup": { + "description": "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", "type": "string" }, - "count": { - "description": "The number of times this event has occurred.", - "type": "integer", - "format": "int32" - }, - "firstTimestamp": { - "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", - "$ref": "#/definitions/unversioned.Time" - }, - "involvedObject": { - "description": "The object that this event is about.", - "$ref": "#/definitions/v1.ObjectReference" - }, "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "lastTimestamp": { - "description": "The time at which the most recent occurrence of this event was recorded.", - "$ref": "#/definitions/unversioned.Time" - }, - "message": { - "description": "A human-readable description of the status of this operation.", + "description": "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.", "type": "string" }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "reason": { - "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", + "name": { + "description": "Name of the object being referenced.", "type": "string" }, - "source": { - "description": "The component reporting this event. Should be a short machine understandable string.", - "$ref": "#/definitions/v1.EventSource" - }, - "type": { - "description": "Type of this event (Normal, Warning), new types could be added in the future", + "namespace": { + "description": "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.", "type": "string" } } }, - "v1.EventList": { - "description": "EventList is a list of events.", + "v1.NodeList": { + "description": "NodeList is the whole list of all Nodes which have been registered with master.", "required": [ "items" ], @@ -30451,10 +35848,10 @@ "type": "string" }, "items": { - "description": "List of events", + "description": "List of nodes", "type": "array", "items": { - "$ref": "#/definitions/v1.Event" + "$ref": "#/definitions/v1.Node" } }, "kind": { @@ -30463,32 +35860,44 @@ }, "metadata": { "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "NodeList" + } + ] }, - "v1.EventSource": { - "description": "EventSource contains information for an event.", + "v1.ContainerPort": { + "description": "ContainerPort represents a network port in a single container.", + "required": [ + "containerPort" + ], "properties": { - "component": { - "description": "Component from which the event is generated.", + "containerPort": { + "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", + "type": "integer", + "format": "int32" + }, + "hostIP": { + "description": "What host IP to bind the external port to.", "type": "string" }, - "host": { - "description": "Node name on which the event is generated.", + "hostPort": { + "description": "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.", + "type": "integer", + "format": "int32" + }, + "name": { + "description": "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.", + "type": "string" + }, + "protocol": { + "description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\".", "type": "string" - } - } - }, - "v1.ExecAction": { - "description": "ExecAction describes a \"run in container\" action.", - "properties": { - "command": { - "description": "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.", - "type": "array", - "items": { - "type": "string" - } } } }, @@ -30521,208 +35930,207 @@ } } }, - "v1.FlexVolumeSource": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", + "runtime.RawExtension": { + "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.Object `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// External package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// On the wire, the JSON will look something like this: {\n\t\"kind\":\"MyAPIObject\",\n\t\"apiVersion\":\"v1\",\n\t\"myPlugin\": {\n\t\t\"kind\":\"PluginA\",\n\t\t\"aOption\":\"foo\",\n\t},\n}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", "required": [ - "driver" + "Raw" ], "properties": { - "driver": { - "description": "Driver is the name of the driver to use for this volume.", - "type": "string" - }, - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", - "type": "string" - }, - "options": { - "description": "Optional: Extra command options if any.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.", - "$ref": "#/definitions/v1.LocalObjectReference" + "Raw": { + "description": "Raw is the underlying serialization of this object.", + "type": "string", + "format": "byte" } } }, - "v1.FlockerVolumeSource": { - "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", + "v1alpha1.ClusterRoleBinding": { + "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", + "required": [ + "subjects", + "roleRef" + ], "properties": { - "datasetName": { - "description": "Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "datasetUUID": { - "description": "UUID of the dataset. This is unique identifier of a Flocker dataset", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "roleRef": { + "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", + "$ref": "#/definitions/v1alpha1.RoleRef" + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "type": "array", + "items": { + "$ref": "#/definitions/v1alpha1.Subject" + } } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1alpha1", + "Kind": "ClusterRoleBinding" + } + ] }, - "v1.GCEPersistentDiskVolumeSource": { - "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", + "version.Info": { + "description": "Info contains versioning information. how we'll want to distribute that information.", "required": [ - "pdName" + "major", + "minor", + "gitVersion", + "gitCommit", + "gitTreeState", + "buildDate", + "goVersion", + "compiler", + "platform" ], "properties": { - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", + "buildDate": { "type": "string" }, - "partition": { - "description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", - "type": "integer", - "format": "int32" + "compiler": { + "type": "string" }, - "pdName": { - "description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", + "gitCommit": { "type": "string" }, - "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", - "type": "boolean" - } - } - }, - "v1.GitRepoVolumeSource": { - "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.", - "required": [ - "repository" - ], - "properties": { - "directory": { - "description": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", + "gitTreeState": { "type": "string" }, - "repository": { - "description": "Repository URL", + "gitVersion": { "type": "string" }, - "revision": { - "description": "Commit hash for the specified revision.", + "goVersion": { "type": "string" - } - } - }, - "v1.GlusterfsVolumeSource": { - "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", - "required": [ - "endpoints", - "path" - ], - "properties": { - "endpoints": { - "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", + }, + "major": { "type": "string" }, - "path": { - "description": "Path is the Glusterfs volume path. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", + "minor": { "type": "string" }, - "readOnly": { - "description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" + "platform": { + "type": "string" } } }, - "v1.HTTPGetAction": { - "description": "HTTPGetAction describes an action based on HTTP Get requests.", - "required": [ - "port" - ], + "v2alpha1.HorizontalPodAutoscaler": { + "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.HTTPHeader" - } - }, - "path": { - "description": "Path to access on the HTTP server.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "port": { - "description": "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.", - "$ref": "#/definitions/intstr.IntOrString" + "metadata": { + "description": "metadata is the standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" }, - "scheme": { - "description": "Scheme to use for connecting to the host. Defaults to HTTP.", - "type": "string" + "spec": { + "description": "spec is the specification for the behaviour of the autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscalerSpec" + }, + "status": { + "description": "status is the current information about the autoscaler.", + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscalerStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "autoscaling", + "Version": "v2alpha1", + "Kind": "HorizontalPodAutoscaler" + } + ] }, - "v1.HTTPHeader": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "required": [ - "name", - "value" - ], + "v1.ReplicationControllerSpec": { + "description": "ReplicationControllerSpec is the specification of a replication controller.", "properties": { - "name": { - "description": "The header field name", - "type": "string" + "minReadySeconds": { + "description": "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)", + "type": "integer", + "format": "int32" }, - "value": { - "description": "The header field value", - "type": "string" + "replicas": { + "description": "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", + "type": "integer", + "format": "int32" + }, + "selector": { + "description": "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", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "template": { + "description": "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", + "$ref": "#/definitions/v1.PodTemplateSpec" } } }, - "v1.Handler": { - "description": "Handler defines a specific action that should be taken", + "v1.TCPSocketAction": { + "description": "TCPSocketAction describes an action based on opening a socket", + "required": [ + "port" + ], "properties": { - "exec": { - "description": "One and only one of the following should be specified. Exec specifies the action to take.", - "$ref": "#/definitions/v1.ExecAction" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "$ref": "#/definitions/v1.HTTPGetAction" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", - "$ref": "#/definitions/v1.TCPSocketAction" + "port": { + "description": "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.", + "$ref": "#/definitions/intstr.IntOrString" } } }, - "v1.HorizontalPodAutoscaler": { - "description": "configuration of a horizontal pod autoscaler.", + "v1alpha1.RoleList": { + "description": "RoleList is a collection of Roles", + "required": [ + "items" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "items": { + "description": "Items is a list of Roles", + "type": "array", + "items": { + "$ref": "#/definitions/v1alpha1.Role" + } + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/v1.HorizontalPodAutoscalerSpec" - }, - "status": { - "description": "current information about the autoscaler.", - "$ref": "#/definitions/v1.HorizontalPodAutoscalerStatus" + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1alpha1", + "Kind": "RoleList" } - } + ] }, - "v1.HorizontalPodAutoscalerList": { - "description": "list of horizontal pod autoscaler objects.", + "v1beta1.StatefulSetList": { + "description": "StatefulSetList is a collection of StatefulSets.", "required": [ "items" ], @@ -30732,10 +36140,9 @@ "type": "string" }, "items": { - "description": "list of horizontal pod autoscaler objects.", "type": "array", "items": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1beta1.StatefulSet" } }, "kind": { @@ -30743,83 +36150,16 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/unversioned.ListMeta" - } - } - }, - "v1.HorizontalPodAutoscalerSpec": { - "description": "specification of a horizontal pod autoscaler.", - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "properties": { - "maxReplicas": { - "description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", - "type": "integer", - "format": "int32" - }, - "minReplicas": { - "description": "lower limit for the number of pods that can be set by the autoscaler, default 1.", - "type": "integer", - "format": "int32" - }, - "scaleTargetRef": { - "description": "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.", - "$ref": "#/definitions/v1.CrossVersionObjectReference" - }, - "targetCPUUtilizationPercentage": { - "description": "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.", - "type": "integer", - "format": "int32" - } - } - }, - "v1.HorizontalPodAutoscalerStatus": { - "description": "current status of a horizontal pod autoscaler", - "required": [ - "currentReplicas", - "desiredReplicas" - ], - "properties": { - "currentCPUUtilizationPercentage": { - "description": "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.", - "type": "integer", - "format": "int32" - }, - "currentReplicas": { - "description": "current number of replicas of pods managed by this autoscaler.", - "type": "integer", - "format": "int32" - }, - "desiredReplicas": { - "description": "desired number of replicas of pods managed by this autoscaler.", - "type": "integer", - "format": "int32" - }, - "lastScaleTime": { - "description": "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.", - "$ref": "#/definitions/unversioned.Time" - }, - "observedGeneration": { - "description": "most recent generation observed by this autoscaler.", - "type": "integer", - "format": "int64" + "$ref": "#/definitions/v1.ListMeta" } - } - }, - "v1.HostPathVolumeSource": { - "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", - "required": [ - "path" - ], - "properties": { - "path": { - "description": "Path of the directory on the host. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath", - "type": "string" + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "apps", + "Version": "v1beta1", + "Kind": "StatefulSetList" } - } + ] }, "v1.ISCSIVolumeSource": { "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", @@ -30846,6 +36186,13 @@ "type": "integer", "format": "int32" }, + "portals": { + "description": "iSCSI target portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": "array", + "items": { + "type": "string" + } + }, "readOnly": { "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", "type": "boolean" @@ -30856,8 +36203,8 @@ } } }, - "v1.Job": { - "description": "Job represents the configuration of a single job.", + "v1.PodTemplate": { + "description": "PodTemplate describes a template for creating copies of a predefined pod.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -30871,51 +36218,47 @@ "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, - "spec": { - "description": "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", - "$ref": "#/definitions/v1.JobSpec" - }, - "status": { - "description": "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", - "$ref": "#/definitions/v1.JobStatus" + "template": { + "description": "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", + "$ref": "#/definitions/v1.PodTemplateSpec" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "PodTemplate" + } + ] }, - "v1.JobCondition": { - "description": "JobCondition describes current state of a job.", - "required": [ - "type", - "status" - ], + "v1.Toleration": { + "description": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", "properties": { - "lastProbeTime": { - "description": "Last time the condition was checked.", - "$ref": "#/definitions/unversioned.Time" - }, - "lastTransitionTime": { - "description": "Last time the condition transit from one status to another.", - "$ref": "#/definitions/unversioned.Time" - }, - "message": { - "description": "Human readable message indicating details about last transition.", + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", "type": "string" }, - "reason": { - "description": "(brief) reason for the condition's last transition.", + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", "type": "string" }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", + "operator": { + "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.", "type": "string" }, - "type": { - "description": "Type of job condition, Complete or Failed.", + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.", + "type": "integer", + "format": "int64" + }, + "value": { + "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", "type": "string" } } }, - "v1.JobList": { - "description": "JobList is a collection of jobs.", + "v1beta1.ClusterRoleList": { + "description": "ClusterRoleList is a collection of ClusterRoles", "required": [ "items" ], @@ -30925,10 +36268,10 @@ "type": "string" }, "items": { - "description": "Items is the list of Job.", + "description": "Items is a list of ClusterRoles", "type": "array", "items": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v1beta1.ClusterRole" } }, "kind": { @@ -30936,183 +36279,196 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/unversioned.ListMeta" + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1beta1", + "Kind": "ClusterRoleList" + } + ] }, - "v1.JobSpec": { - "description": "JobSpec describes how the job execution will look like.", + "extensions.v1beta1.DeploymentList": { + "description": "DeploymentList is a list of Deployments.", "required": [ - "template" + "items" ], "properties": { - "activeDeadlineSeconds": { - "description": "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", - "type": "integer", - "format": "int64" - }, - "completions": { - "description": "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", - "type": "integer", - "format": "int32" - }, - "manualSelector": { - "description": "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", - "type": "boolean" - }, - "parallelism": { - "description": "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", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "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", - "$ref": "#/definitions/unversioned.LabelSelector" - }, - "template": { - "description": "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", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - } - }, - "v1.JobStatus": { - "description": "JobStatus represents the current state of a Job.", - "properties": { - "active": { - "description": "Active is the number of actively running pods.", - "type": "integer", - "format": "int32" - }, - "completionTime": { - "description": "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.", - "$ref": "#/definitions/unversioned.Time" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "conditions": { - "description": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs", + "items": { + "description": "Items is the list of Deployments.", "type": "array", "items": { - "$ref": "#/definitions/v1.JobCondition" + "$ref": "#/definitions/extensions.v1beta1.Deployment" } }, - "failed": { - "description": "Failed is the number of pods which reached Phase Failed.", - "type": "integer", - "format": "int32" - }, - "startTime": { - "description": "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.", - "$ref": "#/definitions/unversioned.Time" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "succeeded": { - "description": "Succeeded is the number of pods which reached Phase Succeeded.", - "type": "integer", - "format": "int32" + "metadata": { + "description": "Standard list metadata.", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "DeploymentList" + } + ] }, - "v1.KeyToPath": { - "description": "Maps a string key to a path within a volume.", + "v1.ScaleStatus": { + "description": "ScaleStatus represents the current status of a scale subresource.", "required": [ - "key", - "path" + "replicas" ], "properties": { - "key": { - "description": "The key to project.", - "type": "string" - }, - "mode": { - "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "replicas": { + "description": "actual number of observed instances of the scaled object.", "type": "integer", "format": "int32" }, - "path": { - "description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "selector": { + "description": "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", "type": "string" } } }, - "v1.Lifecycle": { - "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", + "v1.ServiceStatus": { + "description": "ServiceStatus represents the current status of a service.", "properties": { - "postStart": { - "description": "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", - "$ref": "#/definitions/v1.Handler" - }, - "preStop": { - "description": "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", - "$ref": "#/definitions/v1.Handler" + "loadBalancer": { + "description": "LoadBalancer contains the current status of the load-balancer, if one is present.", + "$ref": "#/definitions/v1.LoadBalancerStatus" } } }, - "v1.LimitRange": { - "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", + "v1.PodSpec": { + "description": "PodSpec is a description of a pod.", + "required": [ + "containers" + ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" + "activeDeadlineSeconds": { + "description": "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.", + "type": "integer", + "format": "int64" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" + "affinity": { + "description": "If specified, the pod's scheduling constraints", + "$ref": "#/definitions/v1.Affinity" }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" + "automountServiceAccountToken": { + "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", + "type": "boolean" }, - "spec": { - "description": "Spec defines the limits enforced. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.LimitRangeSpec" - } - } - }, - "v1.LimitRangeItem": { - "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", - "properties": { - "default": { - "description": "Default resource requirement limit value by resource name if resource limit is omitted.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "containers": { + "description": "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", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Container" } }, - "defaultRequest": { - "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } + "dnsPolicy": { + "description": "Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.", + "type": "string" }, - "max": { - "description": "Max usage constraints on this kind by resource name.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "hostIPC": { + "description": "Use the host's ipc namespace. Optional: Default to false.", + "type": "boolean" + }, + "hostNetwork": { + "description": "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.", + "type": "boolean" + }, + "hostPID": { + "description": "Use the host's pid namespace. Optional: Default to false.", + "type": "boolean" + }, + "hostname": { + "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", + "type": "string" + }, + "imagePullSecrets": { + "description": "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", + "type": "array", + "items": { + "$ref": "#/definitions/v1.LocalObjectReference" } }, - "maxLimitRequestRatio": { - "description": "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.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "initContainers": { + "description": "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Container" } }, - "min": { - "description": "Min usage constraints on this kind by resource name.", + "nodeName": { + "description": "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.", + "type": "string" + }, + "nodeSelector": { + "description": "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", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } }, - "type": { - "description": "Type of resource that this limit applies to.", + "restartPolicy": { + "description": "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", + "type": "string" + }, + "schedulerName": { + "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", "type": "string" + }, + "securityContext": { + "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", + "$ref": "#/definitions/v1.PodSecurityContext" + }, + "serviceAccount": { + "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", + "type": "string" + }, + "serviceAccountName": { + "description": "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", + "type": "string" + }, + "subdomain": { + "description": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", + "type": "string" + }, + "terminationGracePeriodSeconds": { + "description": "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.", + "type": "integer", + "format": "int64" + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Toleration" + } + }, + "volumes": { + "description": "List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Volume" + } } } }, - "v1.LimitRangeList": { - "description": "LimitRangeList is a list of LimitRange items.", + "v1.NamespaceList": { + "description": "NamespaceList is a list of Namespaces.", "required": [ "items" ], @@ -31122,10 +36478,10 @@ "type": "string" }, "items": { - "description": "Items is a list of LimitRange objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md", + "description": "Items is the list of Namespace objects in the list. More info: http://kubernetes.io/docs/user-guide/namespaces", "type": "array", "items": { - "$ref": "#/definitions/v1.LimitRange" + "$ref": "#/definitions/v1.Namespace" } }, "kind": { @@ -31134,107 +36490,147 @@ }, "metadata": { "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "NamespaceList" + } + ] }, - "v1.LimitRangeSpec": { - "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", + "v1.NodeSystemInfo": { + "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", "required": [ - "limits" + "machineID", + "systemUUID", + "bootID", + "kernelVersion", + "osImage", + "containerRuntimeVersion", + "kubeletVersion", + "kubeProxyVersion", + "operatingSystem", + "architecture" ], "properties": { - "limits": { - "description": "Limits is the list of LimitRangeItem objects that are enforced.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LimitRangeItem" - } - } - } - }, - "v1.LoadBalancerIngress": { - "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", - "properties": { - "hostname": { - "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", + "architecture": { + "description": "The Architecture reported by the node", "type": "string" }, - "ip": { - "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", + "bootID": { + "description": "Boot ID reported by the node.", + "type": "string" + }, + "containerRuntimeVersion": { + "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).", + "type": "string" + }, + "kernelVersion": { + "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", + "type": "string" + }, + "kubeProxyVersion": { + "description": "KubeProxy Version reported by the node.", + "type": "string" + }, + "kubeletVersion": { + "description": "Kubelet Version reported by the node.", + "type": "string" + }, + "machineID": { + "description": "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", + "type": "string" + }, + "operatingSystem": { + "description": "The Operating System reported by the node", + "type": "string" + }, + "osImage": { + "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", + "type": "string" + }, + "systemUUID": { + "description": "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", "type": "string" } } }, - "v1.LoadBalancerStatus": { - "description": "LoadBalancerStatus represents the status of a load-balancer.", + "v1.KeyToPath": { + "description": "Maps a string key to a path within a volume.", + "required": [ + "key", + "path" + ], "properties": { - "ingress": { - "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LoadBalancerIngress" - } + "key": { + "description": "The key to project.", + "type": "string" + }, + "mode": { + "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "path": { + "description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": "string" } } }, - "v1.LocalObjectReference": { - "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "v1beta1.ResourceAttributes": { + "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", "properties": { + "group": { + "description": "Group is the API Group of the Resource. \"*\" means all.", + "type": "string" + }, "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", "type": "string" - } - } - }, - "v1.NFSVolumeSource": { - "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", - "required": [ - "server", - "path" - ], - "properties": { - "path": { - "description": "Path that is exported by the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", + }, + "namespace": { + "description": "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", "type": "string" }, - "readOnly": { - "description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", - "type": "boolean" + "resource": { + "description": "Resource is one of the existing resource types. \"*\" means all.", + "type": "string" }, - "server": { - "description": "Server is the hostname or IP address of the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", + "subresource": { + "description": "Subresource is one of the existing resource types. \"\" means none.", + "type": "string" + }, + "verb": { + "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "type": "string" + }, + "version": { + "description": "Version is the API Version of the Resource. \"*\" means all.", "type": "string" } } }, - "v1.Namespace": { - "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", + "v1.EnvFromSource": { + "description": "EnvFromSource represents the source of a set of ConfigMaps", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" + "configMapRef": { + "description": "The ConfigMap to select from", + "$ref": "#/definitions/v1.ConfigMapEnvSource" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "prefix": { + "description": "An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", "type": "string" }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NamespaceSpec" - }, - "status": { - "description": "Status describes the current status of a Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NamespaceStatus" + "secretRef": { + "description": "The Secret to select from", + "$ref": "#/definitions/v1.SecretEnvSource" } } }, - "v1.NamespaceList": { - "description": "NamespaceList is a list of Namespaces.", + "v1beta1.CertificateSigningRequestList": { "required": [ "items" ], @@ -31244,10 +36640,9 @@ "type": "string" }, "items": { - "description": "Items is the list of Namespace objects in the list. More info: http://kubernetes.io/docs/user-guide/namespaces", "type": "array", "items": { - "$ref": "#/definitions/v1.Namespace" + "$ref": "#/definitions/v1beta1.CertificateSigningRequest" } }, "kind": { @@ -31255,95 +36650,82 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "certificates.k8s.io", + "Version": "v1beta1", + "Kind": "CertificateSigningRequestList" + } + ] }, - "v1.NamespaceSpec": { - "description": "NamespaceSpec describes the attributes on a Namespace.", + "v1.JobStatus": { + "description": "JobStatus represents the current state of a Job.", "properties": { - "finalizers": { - "description": "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", + "active": { + "description": "Active is the number of actively running pods.", + "type": "integer", + "format": "int32" + }, + "completionTime": { + "description": "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.", + "$ref": "#/definitions/v1.Time" + }, + "conditions": { + "description": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1.JobCondition" } - } - } - }, - "v1.NamespaceStatus": { - "description": "NamespaceStatus is information about the current status of a Namespace.", - "properties": { - "phase": { - "description": "Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#phases", - "type": "string" - } - } - }, - "v1.Node": { - "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" + "failed": { + "description": "Failed is the number of pods which reached Phase Failed.", + "type": "integer", + "format": "int32" }, - "spec": { - "description": "Spec defines the behavior of a node. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NodeSpec" + "startTime": { + "description": "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.", + "$ref": "#/definitions/v1.Time" }, - "status": { - "description": "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", - "$ref": "#/definitions/v1.NodeStatus" + "succeeded": { + "description": "Succeeded is the number of pods which reached Phase Succeeded.", + "type": "integer", + "format": "int32" } } }, - "v1.NodeAddress": { - "description": "NodeAddress contains information for the node's address.", - "required": [ - "type", - "address" - ], + "v1.EventSource": { + "description": "EventSource contains information for an event.", "properties": { - "address": { - "description": "The node address.", + "component": { + "description": "Component from which the event is generated.", "type": "string" }, - "type": { - "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", + "host": { + "description": "Node name on which the event is generated.", "type": "string" } } }, - "v1.NodeCondition": { - "description": "NodeCondition contains condition information for a node.", + "v1beta1.ReplicaSetCondition": { + "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", "required": [ "type", "status" ], "properties": { - "lastHeartbeatTime": { - "description": "Last time we got an update on a given condition.", - "$ref": "#/definitions/unversioned.Time" - }, "lastTransitionTime": { - "description": "Last time the condition transit from one status to another.", - "$ref": "#/definitions/unversioned.Time" + "description": "The last time the condition transitioned from one status to another.", + "$ref": "#/definitions/v1.Time" }, "message": { - "description": "Human readable message indicating details about last transition.", + "description": "A human readable message indicating details about the transition.", "type": "string" }, "reason": { - "description": "(brief) reason for the condition's last transition.", + "description": "The reason for the condition's last transition.", "type": "string" }, "status": { @@ -31351,35 +36733,52 @@ "type": "string" }, "type": { - "description": "Type of node condition.", + "description": "Type of replica set condition.", "type": "string" } } }, - "v1.NodeDaemonEndpoints": { - "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", + "v1.GCEPersistentDiskVolumeSource": { + "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", + "required": [ + "pdName" + ], "properties": { - "kubeletEndpoint": { - "description": "Endpoint on which Kubelet is listening.", - "$ref": "#/definitions/v1.DaemonEndpoint" + "fsType": { + "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", + "type": "string" + }, + "partition": { + "description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", + "type": "integer", + "format": "int32" + }, + "pdName": { + "description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", + "type": "string" + }, + "readOnly": { + "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", + "type": "boolean" } } }, - "v1.NodeList": { - "description": "NodeList is the whole list of all Nodes which have been registered with master.", - "required": [ - "items" - ], + "v1.ServiceAccount": { + "description": "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "List of nodes", + "automountServiceAccountToken": { + "description": "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", + "type": "boolean" + }, + "imagePullSecrets": { + "description": "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", "type": "array", "items": { - "$ref": "#/definitions/v1.Node" + "$ref": "#/definitions/v1.LocalObjectReference" } }, "kind": { @@ -31387,336 +36786,499 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" - } - } - }, - "v1.NodeSpec": { - "description": "NodeSpec describes the attributes that a node is created with.", - "properties": { - "externalID": { - "description": "External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated.", - "type": "string" - }, - "podCIDR": { - "description": "PodCIDR represents the pod IP range assigned to the node.", - "type": "string" - }, - "providerID": { - "description": "ID of the node assigned by the cloud provider in the format: ://", - "type": "string" + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" }, - "unschedulable": { - "description": "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\"", - "type": "boolean" + "secrets": { + "description": "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", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ObjectReference" + } } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "ServiceAccount" + } + ] }, - "v1.NodeStatus": { - "description": "NodeStatus is information about the current status of a node.", + "v1.PersistentVolumeSpec": { + "description": "PersistentVolumeSpec is the specification of a persistent volume.", "properties": { - "addresses": { - "description": "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", + "accessModes": { + "description": "AccessModes contains all ways the volume can be mounted. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes", "type": "array", "items": { - "$ref": "#/definitions/v1.NodeAddress" + "type": "string" } }, - "allocatable": { - "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } + "awsElasticBlockStore": { + "description": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", + "$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource" + }, + "azureDisk": { + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "$ref": "#/definitions/v1.AzureDiskVolumeSource" + }, + "azureFile": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "$ref": "#/definitions/v1.AzureFileVolumeSource" }, "capacity": { - "description": "Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details.", + "description": "A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity", "type": "object", "additionalProperties": { "$ref": "#/definitions/resource.Quantity" } }, - "conditions": { - "description": "Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NodeCondition" - } + "cephfs": { + "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + "$ref": "#/definitions/v1.CephFSVolumeSource" }, - "daemonEndpoints": { - "description": "Endpoints of daemons running on the Node.", - "$ref": "#/definitions/v1.NodeDaemonEndpoints" + "cinder": { + "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", + "$ref": "#/definitions/v1.CinderVolumeSource" }, - "images": { - "description": "List of container images on this node", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ContainerImage" - } + "claimRef": { + "description": "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", + "$ref": "#/definitions/v1.ObjectReference" }, - "nodeInfo": { - "description": "Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-info", - "$ref": "#/definitions/v1.NodeSystemInfo" + "fc": { + "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", + "$ref": "#/definitions/v1.FCVolumeSource" }, - "phase": { - "description": "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.", + "flexVolume": { + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", + "$ref": "#/definitions/v1.FlexVolumeSource" + }, + "flocker": { + "description": "Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running", + "$ref": "#/definitions/v1.FlockerVolumeSource" + }, + "gcePersistentDisk": { + "description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", + "$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource" + }, + "glusterfs": { + "description": "Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md", + "$ref": "#/definitions/v1.GlusterfsVolumeSource" + }, + "hostPath": { + "description": "HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath", + "$ref": "#/definitions/v1.HostPathVolumeSource" + }, + "iscsi": { + "description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.", + "$ref": "#/definitions/v1.ISCSIVolumeSource" + }, + "nfs": { + "description": "NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", + "$ref": "#/definitions/v1.NFSVolumeSource" + }, + "persistentVolumeReclaimPolicy": { + "description": "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", "type": "string" }, - "volumesAttached": { - "description": "List of volumes that are attached to the node.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.AttachedVolume" - } + "photonPersistentDisk": { + "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource" }, - "volumesInUse": { - "description": "List of attachable volumes in use (mounted) by the node.", + "portworxVolume": { + "description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine", + "$ref": "#/definitions/v1.PortworxVolumeSource" + }, + "quobyte": { + "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + "$ref": "#/definitions/v1.QuobyteVolumeSource" + }, + "rbd": { + "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", + "$ref": "#/definitions/v1.RBDVolumeSource" + }, + "scaleIO": { + "description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", + "$ref": "#/definitions/v1.ScaleIOVolumeSource" + }, + "storageClassName": { + "description": "Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.", + "type": "string" + }, + "vsphereVolume": { + "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource" + } + } + }, + "v1beta1.CertificateSigningRequestStatus": { + "properties": { + "certificate": { + "description": "If request was approved, the controller will place the issued certificate here.", + "type": "string", + "format": "byte" + }, + "conditions": { + "description": "Conditions applied to the request, such as approval or denial.", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1beta1.CertificateSigningRequestCondition" } } } }, - "v1.NodeSystemInfo": { - "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", - "required": [ - "machineID", - "systemUUID", - "bootID", - "kernelVersion", - "osImage", - "containerRuntimeVersion", - "kubeletVersion", - "kubeProxyVersion", - "operatingSystem", - "architecture" - ], + "v1.Service": { + "description": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", "properties": { - "architecture": { - "description": "The Architecture reported by the node", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "bootID": { - "description": "Boot ID reported by the node.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "containerRuntimeVersion": { - "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).", - "type": "string" + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" }, - "kernelVersion": { - "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", - "type": "string" + "spec": { + "description": "Spec defines the behavior of a service. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.ServiceSpec" }, - "kubeProxyVersion": { - "description": "KubeProxy Version reported by the node.", + "status": { + "description": "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", + "$ref": "#/definitions/v1.ServiceStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "Service" + } + ] + }, + "v1beta1.IngressRule": { + "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", + "properties": { + "host": { + "description": "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\n\t IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth 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.", "type": "string" }, - "kubeletVersion": { - "description": "Kubelet Version reported by the node.", + "http": { + "$ref": "#/definitions/v1beta1.HTTPIngressRuleValue" + } + } + }, + "apps.v1beta1.DeploymentSpec": { + "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", + "required": [ + "template" + ], + "properties": { + "minReadySeconds": { + "description": "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)", + "type": "integer", + "format": "int32" + }, + "paused": { + "description": "Indicates that the deployment is paused.", + "type": "boolean" + }, + "progressDeadlineSeconds": { + "description": "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. Defaults to 600s.", + "type": "integer", + "format": "int32" + }, + "replicas": { + "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", + "type": "integer", + "format": "int32" + }, + "revisionHistoryLimit": { + "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2.", + "type": "integer", + "format": "int32" + }, + "rollbackTo": { + "description": "The config this deployment is rolling back to. Will be cleared after rollback is done.", + "$ref": "#/definitions/apps.v1beta1.RollbackConfig" + }, + "selector": { + "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", + "$ref": "#/definitions/v1.LabelSelector" + }, + "strategy": { + "description": "The deployment strategy to use to replace existing pods with new ones.", + "$ref": "#/definitions/apps.v1beta1.DeploymentStrategy" + }, + "template": { + "description": "Template describes the pods that will be created.", + "$ref": "#/definitions/v1.PodTemplateSpec" + } + } + }, + "v1.SubjectAccessReviewStatus": { + "description": "SubjectAccessReviewStatus", + "required": [ + "allowed" + ], + "properties": { + "allowed": { + "description": "Allowed is required. True if the action would be allowed, false otherwise.", + "type": "boolean" + }, + "evaluationError": { + "description": "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.", "type": "string" }, - "machineID": { - "description": "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", + "reason": { + "description": "Reason is optional. It indicates why a request was allowed or denied.", + "type": "string" + } + } + }, + "v2alpha1.CrossVersionObjectReference": { + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "required": [ + "kind", + "name" + ], + "properties": { + "apiVersion": { + "description": "API version of the referent", "type": "string" }, - "operatingSystem": { - "description": "The Operating System reported by the node", + "kind": { + "description": "Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\"", "type": "string" }, - "osImage": { - "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", + "name": { + "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + } + } + }, + "v1.PortworxVolumeSource": { + "description": "PortworxVolumeSource represents a Portworx volume resource.", + "required": [ + "volumeID" + ], + "properties": { + "fsType": { + "description": "FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", "type": "string" }, - "systemUUID": { - "description": "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", + "readOnly": { + "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "volumeID": { + "description": "VolumeID uniquely identifies a Portworx volume", "type": "string" } } }, - "v1.ObjectFieldSelector": { - "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "v1.NodeCondition": { + "description": "NodeCondition contains condition information for a node.", "required": [ - "fieldPath" + "type", + "status" ], "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "lastHeartbeatTime": { + "description": "Last time we got an update on a given condition.", + "$ref": "#/definitions/v1.Time" + }, + "lastTransitionTime": { + "description": "Last time the condition transit from one status to another.", + "$ref": "#/definitions/v1.Time" + }, + "message": { + "description": "Human readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "(brief) reason for the condition's last transition.", "type": "string" }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of node condition.", "type": "string" } } }, - "v1.ObjectMeta": { - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "v1.EndpointSubset": { + "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]", "properties": { - "annotations": { - "description": "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", - "type": "object", - "additionalProperties": { - "type": "string" + "addresses": { + "description": "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.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EndpointAddress" } }, - "clusterName": { - "description": "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.", - "type": "string" - }, - "creationTimestamp": { - "description": "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.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/unversioned.Time" - }, - "deletionGracePeriodSeconds": { - "description": "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.", - "type": "integer", - "format": "int64" - }, - "deletionTimestamp": { - "description": "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 is expected to 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. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/unversioned.Time" - }, - "finalizers": { - "description": "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.", + "notReadyAddresses": { + "description": "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.", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1.EndpointAddress" } }, - "generateName": { - "description": "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.\n\nIf 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).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency", - "type": "string" - }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "type": "integer", - "format": "int64" - }, - "labels": { - "description": "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", + "ports": { + "description": "Port numbers available on the related IP addresses.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EndpointPort" + } + } + } + }, + "v1.SubjectAccessReviewSpec": { + "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "properties": { + "extra": { + "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", "type": "object", "additionalProperties": { - "type": "string" + "type": "array", + "items": { + "type": "string" + } } }, - "name": { - "description": "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", - "type": "string" - }, - "namespace": { - "description": "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.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" - }, - "ownerReferences": { - "description": "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.", + "groups": { + "description": "Groups is the groups you're testing for.", "type": "array", "items": { - "$ref": "#/definitions/v1.OwnerReference" + "type": "string" } }, - "resourceVersion": { - "description": "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.\n\nPopulated 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", - "type": "string" + "nonResourceAttributes": { + "description": "NonResourceAttributes describes information for a non-resource access request", + "$ref": "#/definitions/v1.NonResourceAttributes" }, - "selfLink": { - "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.", - "type": "string" + "resourceAttributes": { + "description": "ResourceAuthorizationAttributes describes information for a resource access request", + "$ref": "#/definitions/v1.ResourceAttributes" }, - "uid": { - "description": "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.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "user": { + "description": "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", "type": "string" } } }, - "v1.ObjectReference": { - "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", + "apps.v1beta1.ScaleSpec": { + "description": "ScaleSpec describes the attributes of a scale subresource", "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "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.", - "type": "string" - }, - "kind": { - "description": "Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "namespace": { - "description": "Namespace of the referent. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" - }, - "resourceVersion": { - "description": "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", - "type": "string" - }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" + "replicas": { + "description": "desired number of instances for the scaled object.", + "type": "integer", + "format": "int32" } } }, - "v1.OwnerReference": { - "description": "OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.", + "v1alpha1.RoleRef": { + "description": "RoleRef contains information that points to the role being used", "required": [ - "apiVersion", + "apiGroup", "kind", - "name", - "uid" + "name" ], "properties": { - "apiVersion": { - "description": "API version of the referent.", + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced", "type": "string" }, - "controller": { - "description": "If true, this reference points to the managing controller.", - "type": "boolean" - }, "kind": { - "description": "Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "description": "Kind is the type of resource being referenced", "type": "string" }, "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "description": "Name is the name of resource being referenced", "type": "string" + } + } + }, + "v1beta1.IngressSpec": { + "description": "IngressSpec describes the Ingress the user wishes to exist.", + "properties": { + "backend": { + "description": "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.", + "$ref": "#/definitions/v1beta1.IngressBackend" }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" + "rules": { + "description": "A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.IngressRule" + } + }, + "tls": { + "description": "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.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.IngressTLS" + } } } }, - "v1.PersistentVolume": { - "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes", + "v1beta1.SubjectAccessReviewSpec": { + "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" + "extra": { + "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" + "group": { + "description": "Groups is the groups you're testing for.", + "type": "array", + "items": { + "type": "string" + } }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" + "nonResourceAttributes": { + "description": "NonResourceAttributes describes information for a non-resource access request", + "$ref": "#/definitions/v1beta1.NonResourceAttributes" }, - "spec": { - "description": "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", - "$ref": "#/definitions/v1.PersistentVolumeSpec" + "resourceAttributes": { + "description": "ResourceAuthorizationAttributes describes information for a resource access request", + "$ref": "#/definitions/v1beta1.ResourceAttributes" }, - "status": { - "description": "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", - "$ref": "#/definitions/v1.PersistentVolumeStatus" + "user": { + "description": "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", + "type": "string" + } + } + }, + "v1beta1.NetworkPolicyIngressRule": { + "description": "This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from.", + "properties": { + "from": { + "description": "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.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.NetworkPolicyPeer" + } + }, + "ports": { + "description": "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.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.NetworkPolicyPort" + } } } }, @@ -31743,10 +37305,17 @@ "description": "Status represents the current information/status of a persistent volume claim. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", "$ref": "#/definitions/v1.PersistentVolumeClaimStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "PersistentVolumeClaim" + } + ] }, - "v1.PersistentVolumeClaimList": { - "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", + "v1.SecretList": { + "description": "SecretList is a list of Secret.", "required": [ "items" ], @@ -31756,10 +37325,10 @@ "type": "string" }, "items": { - "description": "A list of persistent volume claims. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", + "description": "Items is a list of secret objects. More info: http://kubernetes.io/docs/user-guide/secrets", "type": "array", "items": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "$ref": "#/definitions/v1.Secret" } }, "kind": { @@ -31768,250 +37337,285 @@ }, "metadata": { "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "SecretList" + } + ] + }, + "v1.SecretEnvSource": { + "description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", + "properties": { + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the Secret must be defined", + "type": "boolean" } } }, - "v1.PersistentVolumeClaimSpec": { - "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", + "v1.Capabilities": { + "description": "Adds and removes POSIX capabilities from running containers.", "properties": { - "accessModes": { - "description": "AccessModes contains the desired access modes the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1", + "add": { + "description": "Added capabilities", "type": "array", "items": { "type": "string" } }, - "resources": { - "description": "Resources represents the minimum resources the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources", - "$ref": "#/definitions/v1.ResourceRequirements" - }, - "selector": { - "description": "A label query over volumes to consider for binding.", - "$ref": "#/definitions/unversioned.LabelSelector" - }, - "volumeName": { - "description": "VolumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" + "drop": { + "description": "Removed capabilities", + "type": "array", + "items": { + "type": "string" + } } } }, - "v1.PersistentVolumeClaimStatus": { - "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", + "v1.ResourceQuotaStatus": { + "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", "properties": { - "accessModes": { - "description": "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", - "type": "array", - "items": { - "type": "string" + "hard": { + "description": "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", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" } }, - "capacity": { - "description": "Represents the actual resources of the underlying volume.", + "used": { + "description": "Used is the current observed total usage of the resource in the namespace.", "type": "object", "additionalProperties": { "$ref": "#/definitions/resource.Quantity" } - }, - "phase": { - "description": "Phase represents the current phase of PersistentVolumeClaim.", - "type": "string" } } }, - "v1.PersistentVolumeClaimVolumeSource": { - "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", + "v1.OwnerReference": { + "description": "OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.", "required": [ - "claimName" + "apiVersion", + "kind", + "name", + "uid" ], "properties": { - "claimName": { - "description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", + "apiVersion": { + "description": "API version of the referent.", "type": "string" }, - "readOnly": { - "description": "Will force the ReadOnly setting in VolumeMounts. Default false.", + "blockOwnerDeletion": { + "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", + "type": "boolean" + }, + "controller": { + "description": "If true, this reference points to the managing controller.", "type": "boolean" + }, + "kind": { + "description": "Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "uid": { + "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" } } }, - "v1.PersistentVolumeList": { - "description": "PersistentVolumeList is a list of PersistentVolume items.", - "required": [ - "items" - ], + "v1alpha1.PodPreset": { + "description": "PodPreset is a policy resource that defines additional runtime requirements for a Pod.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "List of persistent volumes. More info: http://kubernetes.io/docs/user-guide/persistent-volumes", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/v1alpha1.PodPresetSpec" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "settings.k8s.io", + "Version": "v1alpha1", + "Kind": "PodPreset" + } + ] }, - "v1.PersistentVolumeSpec": { - "description": "PersistentVolumeSpec is the specification of a persistent volume.", + "v1beta1.ReplicaSetSpec": { + "description": "ReplicaSetSpec is the specification of a ReplicaSet.", "properties": { - "accessModes": { - "description": "AccessModes contains all ways the volume can be mounted. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes", - "type": "array", - "items": { - "type": "string" - } - }, - "awsElasticBlockStore": { - "description": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", - "$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource" - }, - "azureDisk": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "$ref": "#/definitions/v1.AzureDiskVolumeSource" - }, - "azureFile": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "$ref": "#/definitions/v1.AzureFileVolumeSource" - }, - "capacity": { - "description": "A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - }, - "cephfs": { - "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/v1.CephFSVolumeSource" - }, - "cinder": { - "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "$ref": "#/definitions/v1.CinderVolumeSource" - }, - "claimRef": { - "description": "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", - "$ref": "#/definitions/v1.ObjectReference" - }, - "fc": { - "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "$ref": "#/definitions/v1.FCVolumeSource" - }, - "flexVolume": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", - "$ref": "#/definitions/v1.FlexVolumeSource" - }, - "flocker": { - "description": "Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running", - "$ref": "#/definitions/v1.FlockerVolumeSource" - }, - "gcePersistentDisk": { - "description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", - "$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource" - }, - "glusterfs": { - "description": "Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md", - "$ref": "#/definitions/v1.GlusterfsVolumeSource" - }, - "hostPath": { - "description": "HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath", - "$ref": "#/definitions/v1.HostPathVolumeSource" + "minReadySeconds": { + "description": "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)", + "type": "integer", + "format": "int32" }, - "iscsi": { - "description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.", - "$ref": "#/definitions/v1.ISCSIVolumeSource" + "replicas": { + "description": "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", + "type": "integer", + "format": "int32" }, - "nfs": { - "description": "NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", - "$ref": "#/definitions/v1.NFSVolumeSource" + "selector": { + "description": "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", + "$ref": "#/definitions/v1.LabelSelector" }, - "persistentVolumeReclaimPolicy": { - "description": "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", + "template": { + "description": "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", + "$ref": "#/definitions/v1.PodTemplateSpec" + } + } + }, + "v1.PhotonPersistentDiskVolumeSource": { + "description": "Represents a Photon Controller persistent disk resource.", + "required": [ + "pdID" + ], + "properties": { + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", "type": "string" }, - "photonPersistentDisk": { - "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource" + "pdID": { + "description": "ID that identifies Photon Controller persistent disk", + "type": "string" + } + } + }, + "v1.SecretVolumeSource": { + "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" }, - "quobyte": { - "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/v1.QuobyteVolumeSource" + "items": { + "description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.KeyToPath" + } }, - "rbd": { - "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", - "$ref": "#/definitions/v1.RBDVolumeSource" + "optional": { + "description": "Specify whether the Secret or it's keys must be defined", + "type": "boolean" }, - "vsphereVolume": { - "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource" + "secretName": { + "description": "Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets", + "type": "string" } } }, - "v1.PersistentVolumeStatus": { - "description": "PersistentVolumeStatus is the current status of a persistent volume.", + "v1.PersistentVolumeClaimSpec": { + "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", "properties": { - "message": { - "description": "A human-readable message indicating details about why the volume is in this state.", - "type": "string" + "accessModes": { + "description": "AccessModes contains the desired access modes the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1", + "type": "array", + "items": { + "type": "string" + } + }, + "resources": { + "description": "Resources represents the minimum resources the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources", + "$ref": "#/definitions/v1.ResourceRequirements" }, - "phase": { - "description": "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", + "selector": { + "description": "A label query over volumes to consider for binding.", + "$ref": "#/definitions/v1.LabelSelector" + }, + "storageClassName": { + "description": "Name of the StorageClass required by the claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1", "type": "string" }, - "reason": { - "description": "Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", + "volumeName": { + "description": "VolumeName is the binding reference to the PersistentVolume backing this claim.", "type": "string" } } }, - "v1.PhotonPersistentDiskVolumeSource": { - "description": "Represents a Photon Controller persistent disk resource.", + "v1.PersistentVolumeClaimList": { + "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", "required": [ - "pdID" + "items" ], "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "pdID": { - "description": "ID that identifies Photon Controller persistent disk", + "items": { + "description": "A list of persistent volume claims. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", + "type": "array", + "items": { + "$ref": "#/definitions/v1.PersistentVolumeClaim" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "PersistentVolumeClaimList" + } + ] }, - "v1.Pod": { - "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", + "v1.ObjectReference": { + "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", "properties": { "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "description": "API version of the referent.", + "type": "string" + }, + "fieldPath": { + "description": "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.", "type": "string" }, "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "description": "Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" }, - "spec": { - "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.PodSpec" + "namespace": { + "description": "Namespace of the referent. More info: http://kubernetes.io/docs/user-guide/namespaces", + "type": "string" }, - "status": { - "description": "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", - "$ref": "#/definitions/v1.PodStatus" + "resourceVersion": { + "description": "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", + "type": "string" + }, + "uid": { + "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" } } }, @@ -32024,11 +37628,11 @@ "properties": { "lastProbeTime": { "description": "Last time we probed the condition.", - "$ref": "#/definitions/unversioned.Time" + "$ref": "#/definitions/v1.Time" }, "lastTransitionTime": { "description": "Last time the condition transitioned from one status to another.", - "$ref": "#/definitions/unversioned.Time" + "$ref": "#/definitions/v1.Time" }, "message": { "description": "Human-readable message indicating details about last transition.", @@ -32048,199 +37652,224 @@ } } }, - "v1.PodList": { - "description": "PodList is a list of Pods.", + "v1beta1.RoleRef": { + "description": "RoleRef contains information that points to the role being used", "required": [ - "items" + "apiGroup", + "kind", + "name" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced", "type": "string" }, - "items": { - "description": "List of pods. More info: http://kubernetes.io/docs/user-guide/pods", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Pod" - } - }, "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "description": "Kind is the type of resource being referenced", "type": "string" }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" } } }, - "v1.PodSecurityContext": { - "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", + "v2alpha1.MetricStatus": { + "description": "MetricStatus describes the last-read state of a single metric.", + "required": [ + "type" + ], "properties": { - "fsGroup": { - "description": "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:\n\n1. 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----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.", - "type": "integer", - "format": "int64" + "object": { + "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", + "$ref": "#/definitions/v2alpha1.ObjectMetricStatus" }, - "runAsNonRoot": { - "description": "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.", - "type": "boolean" + "pods": { + "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", + "$ref": "#/definitions/v2alpha1.PodsMetricStatus" }, - "runAsUser": { - "description": "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.", - "type": "integer", - "format": "int64" + "resource": { + "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "$ref": "#/definitions/v2alpha1.ResourceMetricStatus" }, - "seLinuxOptions": { - "description": "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.", - "$ref": "#/definitions/v1.SELinuxOptions" + "type": { + "description": "type is the type of metric source. It will match one of the fields below.", + "type": "string" + } + } + }, + "v1beta1.IngressStatus": { + "description": "IngressStatus describe the current state of the Ingress.", + "properties": { + "loadBalancer": { + "description": "LoadBalancer contains the current status of the load-balancer.", + "$ref": "#/definitions/v1.LoadBalancerStatus" + } + } + }, + "v1.ConfigMapEnvSource": { + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", + "properties": { + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" }, - "supplementalGroups": { - "description": "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.", - "type": "array", - "items": { - "type": "integer", - "format": "int64" - } + "optional": { + "description": "Specify whether the ConfigMap must be defined", + "type": "boolean" } } }, - "v1.PodSpec": { - "description": "PodSpec is a description of a pod.", + "v1beta1.CertificateSigningRequestCondition": { "required": [ - "containers" + "type" ], "properties": { - "activeDeadlineSeconds": { - "description": "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.", - "type": "integer", - "format": "int64" - }, - "containers": { - "description": "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", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Container" - } + "lastUpdateTime": { + "description": "timestamp for the last update to this condition", + "$ref": "#/definitions/v1.Time" }, - "dnsPolicy": { - "description": "Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\".", + "message": { + "description": "human readable message with details about the request state", "type": "string" }, - "hostIPC": { - "description": "Use the host's ipc namespace. Optional: Default to false.", - "type": "boolean" - }, - "hostNetwork": { - "description": "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.", - "type": "boolean" - }, - "hostPID": { - "description": "Use the host's pid namespace. Optional: Default to false.", - "type": "boolean" + "reason": { + "description": "brief reason for the request state", + "type": "string" }, - "hostname": { - "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", + "type": { + "description": "request approval state, currently Approved or Denied.", "type": "string" + } + } + }, + "v1.ContainerState": { + "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", + "properties": { + "running": { + "description": "Details about a running container", + "$ref": "#/definitions/v1.ContainerStateRunning" }, - "imagePullSecrets": { - "description": "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", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LocalObjectReference" - } + "terminated": { + "description": "Details about a terminated container", + "$ref": "#/definitions/v1.ContainerStateTerminated" }, - "nodeName": { - "description": "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.", + "waiting": { + "description": "Details about a waiting container", + "$ref": "#/definitions/v1.ContainerStateWaiting" + } + } + }, + "v1beta1.TokenReview": { + "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", + "required": [ + "spec" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "nodeSelector": { - "description": "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", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "restartPolicy": { - "description": "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", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "securityContext": { - "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", - "$ref": "#/definitions/v1.PodSecurityContext" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" }, - "serviceAccount": { - "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", - "type": "string" + "spec": { + "description": "Spec holds information about the request being evaluated", + "$ref": "#/definitions/v1beta1.TokenReviewSpec" }, - "serviceAccountName": { - "description": "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", + "status": { + "description": "Status is filled in by the server and indicates whether the request can be authenticated.", + "$ref": "#/definitions/v1beta1.TokenReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "authentication.k8s.io", + "Version": "v1beta1", + "Kind": "TokenReview" + } + ] + }, + "v1.GroupVersionForDiscovery": { + "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "required": [ + "groupVersion", + "version" + ], + "properties": { + "groupVersion": { + "description": "groupVersion specifies the API group and version in the form \"group/version\"", "type": "string" }, - "subdomain": { - "description": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", + "version": { + "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", "type": "string" + } + } + }, + "v1.ResourceQuotaSpec": { + "description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", + "properties": { + "hard": { + "description": "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", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + } }, - "terminationGracePeriodSeconds": { - "description": "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.", - "type": "integer", - "format": "int64" - }, - "volumes": { - "description": "List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes", + "scopes": { + "description": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", "type": "array", "items": { - "$ref": "#/definitions/v1.Volume" + "type": "string" } } } }, - "v1.PodStatus": { - "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system.", + "v1beta1.PodSecurityPolicyList": { + "description": "Pod Security Policy List is a list of PodSecurityPolicy objects.", + "required": [ + "items" + ], "properties": { - "conditions": { - "description": "Current service state of pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PodCondition" - } + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "containerStatuses": { - "description": "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", + "items": { + "description": "Items is a list of schema objects.", "type": "array", "items": { - "$ref": "#/definitions/v1.ContainerStatus" + "$ref": "#/definitions/v1beta1.PodSecurityPolicy" } }, - "hostIP": { - "description": "IP address of the host to which the pod is assigned. Empty if not yet scheduled.", - "type": "string" - }, - "message": { - "description": "A human readable message indicating details about why the pod is in this condition.", - "type": "string" - }, - "phase": { - "description": "Current condition of the pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase", - "type": "string" - }, - "podIP": { - "description": "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", - "type": "string" - }, - "reason": { - "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk'", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "startTime": { - "description": "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.", - "$ref": "#/definitions/unversioned.Time" + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "PodSecurityPolicyList" + } + ] }, - "v1.PodTemplate": { - "description": "PodTemplate describes a template for creating copies of a predefined pod.", + "v1beta1.ClusterRoleBinding": { + "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", + "required": [ + "subjects", + "roleRef" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -32251,17 +37880,31 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "Standard object's metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, - "template": { - "description": "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", - "$ref": "#/definitions/v1.PodTemplateSpec" + "roleRef": { + "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", + "$ref": "#/definitions/v1beta1.RoleRef" + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.Subject" + } } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1beta1", + "Kind": "ClusterRoleBinding" + } + ] }, - "v1.PodTemplateList": { - "description": "PodTemplateList is a list of PodTemplates.", + "v1alpha1.RoleBindingList": { + "description": "RoleBindingList is a collection of RoleBindings", "required": [ "items" ], @@ -32271,10 +37914,10 @@ "type": "string" }, "items": { - "description": "List of pod templates", + "description": "Items is a list of RoleBindings", "type": "array", "items": { - "$ref": "#/definitions/v1.PodTemplate" + "$ref": "#/definitions/v1alpha1.RoleBinding" } }, "kind": { @@ -32282,204 +37925,183 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ListMeta" } - } - }, - "v1.PodTemplateSpec": { - "description": "PodTemplateSpec describes the data a pod should have when created from a template", - "properties": { - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.PodSpec" + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1alpha1", + "Kind": "RoleBindingList" } - } + ] }, - "v1.Preconditions": { - "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "v1.EmptyDirVolumeSource": { + "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", "properties": { - "uid": { - "description": "Specifies the target UID.", + "medium": { + "description": "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir", "type": "string" } } }, - "v1.Probe": { - "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", - "properties": { - "exec": { - "description": "One and only one of the following should be specified. Exec specifies the action to take.", - "$ref": "#/definitions/v1.ExecAction" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "type": "integer", - "format": "int32" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "$ref": "#/definitions/v1.HTTPGetAction" - }, - "initialDelaySeconds": { - "description": "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", - "type": "integer", - "format": "int32" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "type": "integer", - "format": "int32" - }, - "successThreshold": { - "description": "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.", - "type": "integer", - "format": "int32" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", - "$ref": "#/definitions/v1.TCPSocketAction" - }, - "timeoutSeconds": { - "description": "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", - "type": "integer", - "format": "int32" - } - } - }, - "v1.QuobyteVolumeSource": { - "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", + "v1.LocalSubjectAccessReview": { + "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", "required": [ - "registry", - "volume" + "spec" ], "properties": { - "group": { - "description": "Group to map volume access to Default is no group", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "readOnly": { - "description": "ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", - "type": "boolean" - }, - "registry": { - "description": "Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "user": { - "description": "User to map volume access to Defaults to serivceaccount user", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" }, - "volume": { - "description": "Volume is a string that references an already created Quobyte volume by name.", - "type": "string" + "spec": { + "description": "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.", + "$ref": "#/definitions/v1.SubjectAccessReviewSpec" + }, + "status": { + "description": "Status is filled in by the server and indicates whether the request is allowed or not", + "$ref": "#/definitions/v1.SubjectAccessReviewStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "authorization.k8s.io", + "Version": "v1", + "Kind": "LocalSubjectAccessReview" + } + ] }, - "v1.RBDVolumeSource": { - "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "v1alpha1.PodPresetList": { + "description": "PodPresetList is a list of PodPreset objects.", "required": [ - "monitors", - "image" + "items" ], "properties": { - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#rbd", - "type": "string" - }, - "image": { - "description": "The rados image name. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "keyring": { - "description": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "monitors": { - "description": "A collection of Ceph monitors. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "items": { + "description": "Items is a list of schema objects.", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1alpha1.PodPreset" } }, - "pool": { - "description": "The rados pool name. Default is rbd. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "boolean" - }, - "secretRef": { - "description": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "$ref": "#/definitions/v1.LocalObjectReference" - }, - "user": { - "description": "The rados user name. Default is admin. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "string" + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "settings.k8s.io", + "Version": "v1alpha1", + "Kind": "PodPresetList" } - } + ] }, - "v1.ReplicationController": { - "description": "ReplicationController represents the configuration of a replication controller.", + "v1alpha1.ClusterRoleList": { + "description": "ClusterRoleList is a collection of ClusterRoles", + "required": [ + "items" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "items": { + "description": "Items is a list of ClusterRoles", + "type": "array", + "items": { + "$ref": "#/definitions/v1alpha1.ClusterRole" + } + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "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", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "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", - "$ref": "#/definitions/v1.ReplicationControllerSpec" + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1alpha1", + "Kind": "ClusterRoleList" + } + ] + }, + "v1beta1.StatefulSetStatus": { + "description": "StatefulSetStatus represents the current state of a StatefulSet.", + "required": [ + "replicas" + ], + "properties": { + "observedGeneration": { + "description": "most recent generation observed by this StatefulSet.", + "type": "integer", + "format": "int64" }, - "status": { - "description": "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", - "$ref": "#/definitions/v1.ReplicationControllerStatus" + "replicas": { + "description": "Replicas is the number of actual replicas.", + "type": "integer", + "format": "int32" } } }, - "v1.ReplicationControllerCondition": { - "description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", + "v1beta1.RoleBindingList": { + "description": "RoleBindingList is a collection of RoleBindings", "required": [ - "type", - "status" + "items" ], "properties": { - "lastTransitionTime": { - "description": "The last time the condition transitioned from one status to another.", - "$ref": "#/definitions/unversioned.Time" - }, - "message": { - "description": "A human readable message indicating details about the transition.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "reason": { - "description": "The reason for the condition's last transition.", - "type": "string" + "items": { + "description": "Items is a list of RoleBindings", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.RoleBinding" + } }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "type": { - "description": "Type of replication controller condition.", - "type": "string" + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1beta1", + "Kind": "RoleBindingList" + } + ] }, - "v1.ReplicationControllerList": { - "description": "ReplicationControllerList is a collection of replication controllers.", + "v1.LimitRangeList": { + "description": "LimitRangeList is a list of LimitRange items.", "required": [ "items" ], @@ -32489,10 +38111,10 @@ "type": "string" }, "items": { - "description": "List of replication controllers. More info: http://kubernetes.io/docs/user-guide/replication-controller", + "description": "Items is a list of LimitRange objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md", "type": "array", "items": { - "$ref": "#/definitions/v1.ReplicationController" + "$ref": "#/definitions/v1.LimitRange" } }, "kind": { @@ -32501,98 +38123,211 @@ }, "metadata": { "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "LimitRangeList" + } + ] + }, + "v1.AzureFileVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "required": [ + "secretName", + "shareName" + ], + "properties": { + "readOnly": { + "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretName": { + "description": "the name of secret that contains Azure Storage Account Name and Key", + "type": "string" + }, + "shareName": { + "description": "Share Name", + "type": "string" } } }, - "v1.ReplicationControllerSpec": { - "description": "ReplicationControllerSpec is the specification of a replication controller.", + "v1.DownwardAPIVolumeSource": { + "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", "properties": { - "minReadySeconds": { - "description": "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)", + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", "type": "integer", "format": "int32" }, + "items": { + "description": "Items is a list of downward API volume file", + "type": "array", + "items": { + "$ref": "#/definitions/v1.DownwardAPIVolumeFile" + } + } + } + }, + "extensions.v1beta1.ScaleStatus": { + "description": "represents the current status of a scale subresource.", + "required": [ + "replicas" + ], + "properties": { "replicas": { - "description": "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", + "description": "actual number of observed instances of the scaled object.", "type": "integer", "format": "int32" }, "selector": { - "description": "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", + "description": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", "type": "object", "additionalProperties": { "type": "string" } }, - "template": { - "description": "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", - "$ref": "#/definitions/v1.PodTemplateSpec" + "targetSelector": { + "description": "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", + "type": "string" } } }, - "v1.ReplicationControllerStatus": { - "description": "ReplicationControllerStatus represents the current status of a replication controller.", - "required": [ - "replicas" - ], + "v1.ObjectMeta": { + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", "properties": { - "availableReplicas": { - "description": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", + "annotations": { + "description": "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", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "clusterName": { + "description": "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.", + "type": "string" + }, + "creationTimestamp": { + "description": "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.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.Time" + }, + "deletionGracePeriodSeconds": { + "description": "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.", "type": "integer", - "format": "int32" + "format": "int64" }, - "conditions": { - "description": "Represents the latest available observations of a replication controller's current state.", + "deletionTimestamp": { + "description": "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 is expected to 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. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.Time" + }, + "finalizers": { + "description": "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.", "type": "array", "items": { - "$ref": "#/definitions/v1.ReplicationControllerCondition" + "type": "string" } }, - "fullyLabeledReplicas": { - "description": "The number of pods that have labels matching the labels of the pod template of the replication controller.", - "type": "integer", - "format": "int32" + "generateName": { + "description": "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.\n\nIf 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).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency", + "type": "string" }, - "observedGeneration": { - "description": "ObservedGeneration reflects the generation of the most recently observed replication controller.", + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", "type": "integer", "format": "int64" }, - "readyReplicas": { - "description": "The number of ready replicas for this replication controller.", - "type": "integer", - "format": "int32" + "labels": { + "description": "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", + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "replicas": { - "description": "Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", - "type": "integer", - "format": "int32" + "name": { + "description": "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", + "type": "string" + }, + "namespace": { + "description": "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.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", + "type": "string" + }, + "ownerReferences": { + "description": "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.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.OwnerReference" + } + }, + "resourceVersion": { + "description": "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.\n\nPopulated 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", + "type": "string" + }, + "selfLink": { + "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.", + "type": "string" + }, + "uid": { + "description": "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.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" } } }, - "v1.ResourceFieldSelector": { - "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "v1.StorageClassList": { + "description": "StorageClassList is a collection of storage classes.", "required": [ - "resource" + "items" ], "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "divisor": { - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "$ref": "#/definitions/resource.Quantity" + "items": { + "description": "Items is the list of StorageClasses", + "type": "array", + "items": { + "$ref": "#/definitions/v1.StorageClass" + } }, - "resource": { - "description": "Required: resource to select", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "storage.k8s.io", + "Version": "v1", + "Kind": "StorageClassList" + } + ] + }, + "v1.Handler": { + "description": "Handler defines a specific action that should be taken", + "properties": { + "exec": { + "description": "One and only one of the following should be specified. Exec specifies the action to take.", + "$ref": "#/definitions/v1.ExecAction" + }, + "httpGet": { + "description": "HTTPGet specifies the http request to perform.", + "$ref": "#/definitions/v1.HTTPGetAction" + }, + "tcpSocket": { + "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", + "$ref": "#/definitions/v1.TCPSocketAction" } } }, - "v1.ResourceQuota": { - "description": "ResourceQuota sets aggregate quota restrictions enforced per namespace", + "v1.Namespace": { + "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -32607,122 +38342,132 @@ "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Spec defines the desired quota. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ResourceQuotaSpec" + "description": "Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.NamespaceSpec" }, "status": { - "description": "Status defines the actual enforced quota and its current usage. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ResourceQuotaStatus" + "description": "Status describes the current status of a Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.NamespaceStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "Namespace" + } + ] }, - "v1.ResourceQuotaList": { - "description": "ResourceQuotaList is a list of ResourceQuota items.", + "v1.Event": { + "description": "Event is a report of an event somewhere in the cluster.", "required": [ - "items" + "metadata", + "involvedObject" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ResourceQuota" - } + "count": { + "description": "The number of times this event has occurred.", + "type": "integer", + "format": "int32" + }, + "firstTimestamp": { + "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", + "$ref": "#/definitions/v1.Time" + }, + "involvedObject": { + "description": "The object that this event is about.", + "$ref": "#/definitions/v1.ObjectReference" }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, + "lastTimestamp": { + "description": "The time at which the most recent occurrence of this event was recorded.", + "$ref": "#/definitions/v1.Time" + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": "string" + }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" - } - } - }, - "v1.ResourceQuotaSpec": { - "description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", - "properties": { - "hard": { - "description": "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", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" }, - "scopes": { - "description": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.ResourceQuotaStatus": { - "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", - "properties": { - "hard": { - "description": "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", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } + "reason": { + "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", + "type": "string" }, - "used": { - "description": "Used is the current observed total usage of the resource in the namespace.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } + "source": { + "description": "The component reporting this event. Should be a short machine understandable string.", + "$ref": "#/definitions/v1.EventSource" + }, + "type": { + "description": "Type of this event (Normal, Warning), new types could be added in the future", + "type": "string" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "Event" + } + ] }, - "v1.ResourceRequirements": { - "description": "ResourceRequirements describes the compute resource requirements.", + "apps.v1beta1.ScaleStatus": { + "description": "ScaleStatus represents the current status of a scale subresource.", + "required": [ + "replicas" + ], "properties": { - "limits": { - "description": "Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } + "replicas": { + "description": "actual number of observed instances of the scaled object.", + "type": "integer", + "format": "int32" }, - "requests": { - "description": "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/", + "selector": { + "description": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } + }, + "targetSelector": { + "description": "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", + "type": "string" } } }, - "v1.SELinuxOptions": { - "description": "SELinuxOptions are the labels to be applied to the container", + "v1.ResourceFieldSelector": { + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "required": [ + "resource" + ], "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", - "type": "string" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", + "containerName": { + "description": "Container name: required for volumes, optional for env vars", "type": "string" }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" + "divisor": { + "description": "Specifies the output format of the exposed resources, defaults to \"1\"", + "$ref": "#/definitions/resource.Quantity" }, - "user": { - "description": "User is a SELinux user label that applies to the container.", + "resource": { + "description": "Required: resource to select", "type": "string" } } }, - "v1.Scale": { - "description": "Scale represents a scaling request for a resource.", + "v1.StorageClass": { + "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", + "required": [ + "provisioner" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -32733,100 +38478,155 @@ "type": "string" }, "metadata": { - "description": "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.", + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, - "spec": { - "description": "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/v1.ScaleSpec" + "parameters": { + "description": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "status": { - "description": "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/v1.ScaleStatus" + "provisioner": { + "description": "Provisioner indicates the type of the provisioner.", + "type": "string" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "storage.k8s.io", + "Version": "v1", + "Kind": "StorageClass" + } + ] + }, + "v1.SelfSubjectAccessReviewSpec": { + "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "properties": { + "nonResourceAttributes": { + "description": "NonResourceAttributes describes information for a non-resource access request", + "$ref": "#/definitions/v1.NonResourceAttributes" + }, + "resourceAttributes": { + "description": "ResourceAuthorizationAttributes describes information for a resource access request", + "$ref": "#/definitions/v1.ResourceAttributes" } } }, - "v1.ScaleSpec": { - "description": "ScaleSpec describes the attributes of a scale subresource.", + "v1.AttachedVolume": { + "description": "AttachedVolume describes a volume attached to a node", + "required": [ + "name", + "devicePath" + ], "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" + "devicePath": { + "description": "DevicePath represents the device path where the volume should be available", + "type": "string" + }, + "name": { + "description": "Name of the attached volume", + "type": "string" } } }, - "v1.ScaleStatus": { - "description": "ScaleStatus represents the current status of a scale subresource.", + "v1beta1.StatefulSetSpec": { + "description": "A StatefulSetSpec is the specification of a StatefulSet.", "required": [ - "replicas" + "template", + "serviceName" ], "properties": { "replicas": { - "description": "actual number of observed instances of the scaled object.", + "description": "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.", "type": "integer", "format": "int32" }, "selector": { - "description": "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", + "description": "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", + "$ref": "#/definitions/v1.LabelSelector" + }, + "serviceName": { + "description": "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.", "type": "string" + }, + "template": { + "description": "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.", + "$ref": "#/definitions/v1.PodTemplateSpec" + }, + "volumeClaimTemplates": { + "description": "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.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.PersistentVolumeClaim" + } } } }, - "v1.Secret": { - "description": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", + "apps.v1beta1.Deployment": { + "description": "Deployment enables declarative updates for Pods and ReplicaSets.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "data": { - "description": "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", - "type": "object", - "additionalProperties": { - "type": "string", - "format": "byte" - } - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "Standard object metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, - "stringData": { - "description": "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.", - "type": "object", - "additionalProperties": { - "type": "string" - } + "spec": { + "description": "Specification of the desired behavior of the Deployment.", + "$ref": "#/definitions/apps.v1beta1.DeploymentSpec" }, - "type": { - "description": "Used to facilitate programmatic handling of secret data.", - "type": "string" + "status": { + "description": "Most recently observed status of the Deployment.", + "$ref": "#/definitions/apps.v1beta1.DeploymentStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "apps", + "Version": "v1beta1", + "Kind": "Deployment" + } + ] }, - "v1.SecretKeySelector": { - "description": "SecretKeySelector selects a key of a Secret.", - "required": [ - "key" - ], + "v1.StatusDetails": { + "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", + "causes": { + "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.StatusCause" + } + }, + "group": { + "description": "The group attribute of the resource associated with the status StatusReason.", + "type": "string" + }, + "kind": { + "description": "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", "type": "string" }, "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", "type": "string" + }, + "retryAfterSeconds": { + "description": "If specified, the time in seconds before the operation should be retried.", + "type": "integer", + "format": "int32" } } }, - "v1.SecretList": { - "description": "SecretList is a list of Secret.", + "v1.ResourceQuotaList": { + "description": "ResourceQuotaList is a list of ResourceQuota items.", "required": [ "items" ], @@ -32836,10 +38636,10 @@ "type": "string" }, "items": { - "description": "Items is a list of secret objects. More info: http://kubernetes.io/docs/user-guide/secrets", + "description": "Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota", "type": "array", "items": { - "$ref": "#/definitions/v1.Secret" + "$ref": "#/definitions/v1.ResourceQuota" } }, "kind": { @@ -32848,170 +38648,153 @@ }, "metadata": { "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "ResourceQuotaList" + } + ] }, - "v1.SecretVolumeSource": { - "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", + "v1.LimitRangeSpec": { + "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", + "required": [ + "limits" + ], "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "items": { - "description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'.", + "limits": { + "description": "Limits is the list of LimitRangeItem objects that are enforced.", "type": "array", "items": { - "$ref": "#/definitions/v1.KeyToPath" + "$ref": "#/definitions/v1.LimitRangeItem" } - }, - "secretName": { - "description": "Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets", - "type": "string" - } - } - }, - "v1.SecurityContext": { - "description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", - "properties": { - "capabilities": { - "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.", - "$ref": "#/definitions/v1.Capabilities" - }, - "privileged": { - "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.", - "type": "boolean" - }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem. Default is false.", - "type": "boolean" - }, - "runAsNonRoot": { - "description": "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.", - "type": "boolean" - }, - "runAsUser": { - "description": "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.", - "type": "integer", - "format": "int64" - }, - "seLinuxOptions": { - "description": "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.", - "$ref": "#/definitions/v1.SELinuxOptions" } } }, - "v1.Service": { - "description": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", + "v1.FlexVolumeSource": { + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", + "required": [ + "driver" + ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "driver": { + "description": "Driver is the name of the driver to use for this volume.", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", "type": "string" }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" + "options": { + "description": "Optional: Extra command options if any.", + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "spec": { - "description": "Spec defines the behavior of a service. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ServiceSpec" + "readOnly": { + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" }, - "status": { - "description": "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", - "$ref": "#/definitions/v1.ServiceStatus" + "secretRef": { + "description": "Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.", + "$ref": "#/definitions/v1.LocalObjectReference" } } }, - "v1.ServiceAccount": { - "description": "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", + "v1.PodAffinity": { + "description": "Pod affinity is a group of inter pod affinity scheduling rules.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "imagePullSecrets": { - "description": "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", + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", "type": "array", "items": { - "$ref": "#/definitions/v1.LocalObjectReference" + "$ref": "#/definitions/v1.WeightedPodAffinityTerm" } }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "secrets": { - "description": "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", + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", "type": "array", "items": { - "$ref": "#/definitions/v1.ObjectReference" + "$ref": "#/definitions/v1.PodAffinityTerm" } } } }, - "v1.ServiceAccountList": { - "description": "ServiceAccountList is a list of ServiceAccount objects", + "v1beta1.SELinuxStrategyOptions": { + "description": "SELinux Strategy Options defines the strategy type and any options used to create the strategy.", "required": [ - "items" + "rule" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "rule": { + "description": "type is the strategy that will dictate the allowable labels that may be set.", "type": "string" }, - "items": { - "description": "List of ServiceAccounts. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ServiceAccount" - } + "seLinuxOptions": { + "description": "seLinuxOptions required to run as; required for MustRunAs More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context", + "$ref": "#/definitions/v1.SELinuxOptions" + } + } + }, + "v1.TokenReviewStatus": { + "description": "TokenReviewStatus is the result of the token authentication request.", + "properties": { + "authenticated": { + "description": "Authenticated indicates that the token was associated with a known user.", + "type": "boolean" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "error": { + "description": "Error indicates that the token couldn't be checked", "type": "string" }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "user": { + "description": "User is the UserInfo associated with the provided token.", + "$ref": "#/definitions/v1.UserInfo" } } }, - "v1.ServiceList": { - "description": "ServiceList holds a list of services.", + "v1beta1.RoleBinding": { + "description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", "required": [ - "items" + "subjects", + "roleRef" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "List of services", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Service" - } - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "roleRef": { + "description": "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.", + "$ref": "#/definitions/v1beta1.RoleRef" + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.Subject" + } } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1beta1", + "Kind": "RoleBinding" + } + ] }, "v1.ServicePort": { "description": "ServicePort contains information on service's port.", @@ -33043,237 +38826,404 @@ } } }, - "v1.ServiceSpec": { - "description": "ServiceSpec describes the attributes that a user creates on a service.", + "v1.ProjectedVolumeSource": { + "description": "Represents a projected volume source", "required": [ - "ports" + "sources" ], "properties": { - "clusterIP": { - "description": "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", - "type": "string" - }, - "deprecatedPublicIPs": { - "description": "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.", - "type": "array", - "items": { - "type": "string" - } + "defaultMode": { + "description": "Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" }, - "externalIPs": { - "description": "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.", + "sources": { + "description": "list of volume projections", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1.VolumeProjection" } - }, - "externalName": { - "description": "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.", + } + } + }, + "v1alpha1.Role": { + "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", + "required": [ + "rules" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "loadBalancerIP": { - "description": "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.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "loadBalancerSourceRanges": { - "description": "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", - "type": "array", - "items": { - "type": "string" - } + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" }, - "ports": { - "description": "The list of ports that are exposed by this service. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies", + "rules": { + "description": "Rules holds all the PolicyRules for this Role", "type": "array", "items": { - "$ref": "#/definitions/v1.ServicePort" - } - }, - "selector": { - "description": "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", - "type": "object", - "additionalProperties": { - "type": "string" + "$ref": "#/definitions/v1alpha1.PolicyRule" } - }, - "sessionAffinity": { - "description": "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", - "type": "string" - }, - "type": { - "description": "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", + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1alpha1", + "Kind": "Role" + } + ] + }, + "v1.Preconditions": { + "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "properties": { + "uid": { + "description": "Specifies the target UID.", "type": "string" } } }, - "v1.ServiceStatus": { - "description": "ServiceStatus represents the current status of a service.", + "v1.Scale": { + "description": "Scale represents a scaling request for a resource.", "properties": { - "loadBalancer": { - "description": "LoadBalancer contains the current status of the load-balancer, if one is present.", - "$ref": "#/definitions/v1.LoadBalancerStatus" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", + "$ref": "#/definitions/v1.ScaleSpec" + }, + "status": { + "description": "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.", + "$ref": "#/definitions/v1.ScaleStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "autoscaling", + "Version": "v1", + "Kind": "Scale" + } + ] }, - "v1.TCPSocketAction": { - "description": "TCPSocketAction describes an action based on opening a socket", + "v2alpha1.HorizontalPodAutoscalerSpec": { + "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", "required": [ - "port" + "scaleTargetRef", + "maxReplicas" ], "properties": { - "port": { - "description": "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.", - "$ref": "#/definitions/intstr.IntOrString" + "maxReplicas": { + "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", + "type": "integer", + "format": "int32" + }, + "metrics": { + "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond.", + "type": "array", + "items": { + "$ref": "#/definitions/v2alpha1.MetricSpec" + } + }, + "minReplicas": { + "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod.", + "type": "integer", + "format": "int32" + }, + "scaleTargetRef": { + "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.", + "$ref": "#/definitions/v2alpha1.CrossVersionObjectReference" } } }, - "v1.Volume": { - "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + "apps.v1beta1.DeploymentRollback": { + "description": "DeploymentRollback stores the information required to rollback a deployment.", "required": [ - "name" + "name", + "rollbackTo" ], "properties": { - "awsElasticBlockStore": { - "description": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", - "$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource" - }, - "azureDisk": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "$ref": "#/definitions/v1.AzureDiskVolumeSource" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "azureFile": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "$ref": "#/definitions/v1.AzureFileVolumeSource" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "cephfs": { - "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/v1.CephFSVolumeSource" + "name": { + "description": "Required: This must match the Name of a deployment.", + "type": "string" }, - "cinder": { - "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "$ref": "#/definitions/v1.CinderVolumeSource" + "rollbackTo": { + "description": "The config of this deployment rollback.", + "$ref": "#/definitions/apps.v1beta1.RollbackConfig" }, - "configMap": { - "description": "ConfigMap represents a configMap that should populate this volume", - "$ref": "#/definitions/v1.ConfigMapVolumeSource" + "updatedAnnotations": { + "description": "The annotations to be updated to a deployment", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "apps", + "Version": "v1beta1", + "Kind": "DeploymentRollback" + } + ] + }, + "v2alpha1.JobTemplateSpec": { + "description": "JobTemplateSpec describes the data a Job should have when created from a template", + "properties": { + "metadata": { + "description": "Standard object's metadata of the jobs created from this template. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" }, - "downwardAPI": { - "description": "DownwardAPI represents downward API about the pod that should populate this volume", - "$ref": "#/definitions/v1.DownwardAPIVolumeSource" + "spec": { + "description": "Specification of the desired behavior of the job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.JobSpec" + } + } + }, + "v1.Secret": { + "description": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "emptyDir": { - "description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir", - "$ref": "#/definitions/v1.EmptyDirVolumeSource" + "data": { + "description": "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", + "type": "object", + "additionalProperties": { + "type": "string", + "format": "byte" + } }, - "fc": { - "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "$ref": "#/definitions/v1.FCVolumeSource" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "flexVolume": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", - "$ref": "#/definitions/v1.FlexVolumeSource" + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" }, - "flocker": { - "description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", - "$ref": "#/definitions/v1.FlockerVolumeSource" + "stringData": { + "description": "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.", + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "gcePersistentDisk": { - "description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", - "$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource" + "type": { + "description": "Used to facilitate programmatic handling of secret data.", + "type": "string" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "Secret" + } + ] + }, + "extensions.v1beta1.DeploymentRollback": { + "description": "DeploymentRollback stores the information required to rollback a deployment.", + "required": [ + "name", + "rollbackTo" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "gitRepo": { - "description": "GitRepo represents a git repository at a particular revision.", - "$ref": "#/definitions/v1.GitRepoVolumeSource" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "glusterfs": { - "description": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md", - "$ref": "#/definitions/v1.GlusterfsVolumeSource" + "name": { + "description": "Required: This must match the Name of a deployment.", + "type": "string" }, - "hostPath": { - "description": "HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath", - "$ref": "#/definitions/v1.HostPathVolumeSource" + "rollbackTo": { + "description": "The config of this deployment rollback.", + "$ref": "#/definitions/extensions.v1beta1.RollbackConfig" }, - "iscsi": { - "description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md", - "$ref": "#/definitions/v1.ISCSIVolumeSource" + "updatedAnnotations": { + "description": "The annotations to be updated to a deployment", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "DeploymentRollback" + } + ] + }, + "v1beta1.SelfSubjectAccessReviewSpec": { + "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "properties": { + "nonResourceAttributes": { + "description": "NonResourceAttributes describes information for a non-resource access request", + "$ref": "#/definitions/v1beta1.NonResourceAttributes" }, - "name": { - "description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" + "resourceAttributes": { + "description": "ResourceAuthorizationAttributes describes information for a resource access request", + "$ref": "#/definitions/v1beta1.ResourceAttributes" + } + } + }, + "v1beta1.DaemonSetStatus": { + "description": "DaemonSetStatus represents the current status of a daemon set.", + "required": [ + "currentNumberScheduled", + "numberMisscheduled", + "desiredNumberScheduled", + "numberReady" + ], + "properties": { + "currentNumberScheduled": { + "description": "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", + "type": "integer", + "format": "int32" }, - "nfs": { - "description": "NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://kubernetes.io/docs/user-guide/volumes#nfs", - "$ref": "#/definitions/v1.NFSVolumeSource" + "desiredNumberScheduled": { + "description": "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", + "type": "integer", + "format": "int32" }, - "persistentVolumeClaim": { - "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", - "$ref": "#/definitions/v1.PersistentVolumeClaimVolumeSource" + "numberAvailable": { + "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", + "type": "integer", + "format": "int32" }, - "photonPersistentDisk": { - "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource" + "numberMisscheduled": { + "description": "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", + "type": "integer", + "format": "int32" }, - "quobyte": { - "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/v1.QuobyteVolumeSource" + "numberReady": { + "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.", + "type": "integer", + "format": "int32" }, - "rbd": { - "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", - "$ref": "#/definitions/v1.RBDVolumeSource" + "numberUnavailable": { + "description": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", + "type": "integer", + "format": "int32" }, - "secret": { - "description": "Secret represents a secret that should populate this volume. More info: http://kubernetes.io/docs/user-guide/volumes#secrets", - "$ref": "#/definitions/v1.SecretVolumeSource" + "observedGeneration": { + "description": "The most recent generation observed by the daemon set controller.", + "type": "integer", + "format": "int64" }, - "vsphereVolume": { - "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource" + "updatedNumberScheduled": { + "description": "The total number of nodes that are running updated daemon pod", + "type": "integer", + "format": "int32" } } }, - "v1.VolumeMount": { - "description": "VolumeMount describes a mounting of a Volume within a container.", + "v2alpha1.CronJobList": { + "description": "CronJobList is a collection of cron jobs.", "required": [ - "name", - "mountPath" + "items" ], "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "name": { - "description": "This must match the Name of a Volume.", + "items": { + "description": "Items is the list of CronJob.", + "type": "array", + "items": { + "$ref": "#/definitions/v2alpha1.CronJob" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", - "type": "boolean" + "metadata": { + "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "batch", + "Version": "v2alpha1", + "Kind": "CronJobList" }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", - "type": "string" + { + "Group": "batch", + "Version": "v2alpha1", + "Kind": "ScheduledJobList" } - } + ] }, - "v1.VsphereVirtualDiskVolumeSource": { - "description": "Represents a vSphere volume resource.", + "v1.JobList": { + "description": "JobList is a collection of jobs.", "required": [ - "volumePath" + "items" ], "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "volumePath": { - "description": "Path that identifies vSphere volume vmdk", + "items": { + "description": "Items is the list of Job.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Job" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "batch", + "Version": "v1", + "Kind": "JobList" + } + ] }, - "v1alpha1.CertificateSigningRequest": { - "description": "Describes a certificate signing request", + "extensions.v1beta1.Scale": { + "description": "represents a scaling request for a resource.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -33284,54 +39234,146 @@ "type": "string" }, "metadata": { + "description": "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "The certificate request itself and any additional information.", - "$ref": "#/definitions/v1alpha1.CertificateSigningRequestSpec" + "description": "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", + "$ref": "#/definitions/extensions.v1beta1.ScaleSpec" }, "status": { - "description": "Derived information about the request.", - "$ref": "#/definitions/v1alpha1.CertificateSigningRequestStatus" + "description": "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.", + "$ref": "#/definitions/extensions.v1beta1.ScaleStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "Scale" + } + ] }, - "v1alpha1.CertificateSigningRequestCondition": { + "v1.Taint": { + "description": "The node this Taint is attached to has the effect \"effect\" on any pod that that does not tolerate the Taint.", "required": [ - "type" + "key", + "effect" ], "properties": { - "lastUpdateTime": { - "description": "timestamp for the last update to this condition", - "$ref": "#/definitions/unversioned.Time" + "effect": { + "description": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", + "type": "string" }, - "message": { - "description": "human readable message with details about the request state", + "key": { + "description": "Required. The taint key to be applied to a node.", "type": "string" }, - "reason": { - "description": "brief reason for the request state", + "timeAdded": { + "description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", + "$ref": "#/definitions/v1.Time" + }, + "value": { + "description": "Required. The taint value corresponding to the taint key.", + "type": "string" + } + } + }, + "v1beta1.Eviction": { + "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "type": { - "description": "request approval state, currently Approved or Denied.", + "deleteOptions": { + "description": "DeleteOptions may be provided", + "$ref": "#/definitions/v1.DeleteOptions" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "description": "ObjectMeta describes the pod that is being evicted.", + "$ref": "#/definitions/v1.ObjectMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "policy", + "Version": "v1beta1", + "Kind": "Eviction" + } + ] + }, + "v1.NodeDaemonEndpoints": { + "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", + "properties": { + "kubeletEndpoint": { + "description": "Endpoint on which Kubelet is listening.", + "$ref": "#/definitions/v1.DaemonEndpoint" } } }, - "v1alpha1.CertificateSigningRequestList": { + "v1.ObjectFieldSelector": { + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", "required": [ - "items" + "fieldPath" ], + "properties": { + "apiVersion": { + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "type": "string" + }, + "fieldPath": { + "description": "Path of the field to select in the specified API version.", + "type": "string" + } + } + }, + "v1.SecurityContext": { + "description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", + "properties": { + "capabilities": { + "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.", + "$ref": "#/definitions/v1.Capabilities" + }, + "privileged": { + "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.", + "type": "boolean" + }, + "readOnlyRootFilesystem": { + "description": "Whether this container has a read-only root filesystem. Default is false.", + "type": "boolean" + }, + "runAsNonRoot": { + "description": "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.", + "type": "boolean" + }, + "runAsUser": { + "description": "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.", + "type": "integer", + "format": "int64" + }, + "seLinuxOptions": { + "description": "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.", + "$ref": "#/definitions/v1.SELinuxOptions" + } + } + }, + "v1.ConfigMap": { + "description": "ConfigMap holds configuration data for pods to consume.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.CertificateSigningRequest" + "data": { + "description": "Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot.", + "type": "object", + "additionalProperties": { + "type": "string" } }, "kind": { @@ -33339,17 +39381,55 @@ "type": "string" }, "metadata": { - "$ref": "#/definitions/unversioned.ListMeta" + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "ConfigMap" + } + ] + }, + "v1beta1.IDRange": { + "description": "ID Range provides a min/max of an allowed range of IDs.", + "required": [ + "min", + "max" + ], + "properties": { + "max": { + "description": "Max is the end of the range, inclusive.", + "type": "integer", + "format": "int64" + }, + "min": { + "description": "Min is the start of the range, inclusive.", + "type": "integer", + "format": "int64" } } }, - "v1alpha1.CertificateSigningRequestSpec": { - "description": "This information is immutable after the request is created. Only the Request and ExtraInfo fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users.", + "v1beta1.CertificateSigningRequestSpec": { + "description": "This information is immutable after the request is created. Only the Request and Usages fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users.", "required": [ "request" ], "properties": { + "extra": { + "description": "Extra information about the requesting user. See user.Info interface for details.", + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, "groups": { + "description": "Group information about the requesting user. See user.Info interface for details.", "type": "array", "items": { "type": "string" @@ -33361,34 +39441,26 @@ "format": "byte" }, "uid": { + "description": "UID information about the requesting user. See user.Info interface for details.", "type": "string" }, - "username": { - "description": "Information about the requesting user (if relevant) See user.Info interface for details", - "type": "string" - } - } - }, - "v1alpha1.CertificateSigningRequestStatus": { - "properties": { - "certificate": { - "description": "If request was approved, the controller will place the issued certificate here.", - "type": "string", - "format": "byte" - }, - "conditions": { - "description": "Conditions applied to the request, such as approval or denial.", + "usages": { + "description": "allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3\n https://tools.ietf.org/html/rfc5280#section-4.2.1.12", "type": "array", "items": { - "$ref": "#/definitions/v1alpha1.CertificateSigningRequestCondition" + "type": "string" } + }, + "username": { + "description": "Information about the requesting user. See user.Info interface for details.", + "type": "string" } } }, - "v1alpha1.ClusterRole": { - "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", + "v1.TokenReview": { + "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", "required": [ - "rules" + "spec" ], "properties": { "apiVersion": { @@ -33400,23 +39472,58 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", + "spec": { + "description": "Spec holds information about the request being evaluated", + "$ref": "#/definitions/v1.TokenReviewSpec" + }, + "status": { + "description": "Status is filled in by the server and indicates whether the request can be authenticated.", + "$ref": "#/definitions/v1.TokenReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "authentication.k8s.io", + "Version": "v1", + "Kind": "TokenReview" + } + ] + }, + "v1beta1.TokenReviewSpec": { + "description": "TokenReviewSpec is a description of the token authentication request.", + "properties": { + "token": { + "description": "Token is the opaque bearer token.", + "type": "string" + } + } + }, + "v1.SecretProjection": { + "description": "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.", + "properties": { + "items": { + "description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", "type": "array", "items": { - "$ref": "#/definitions/v1alpha1.PolicyRule" + "$ref": "#/definitions/v1.KeyToPath" } + }, + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the Secret or its key must be defined", + "type": "boolean" } } }, - "v1alpha1.ClusterRoleBinding": { - "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", + "v1beta1.SelfSubjectAccessReview": { + "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", "required": [ - "subjects", - "roleRef" + "spec" ], "properties": { "apiVersion": { @@ -33428,127 +39535,158 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, - "roleRef": { - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/v1alpha1.RoleRef" + "spec": { + "description": "Spec holds information about the request being evaluated. user and groups must be empty", + "$ref": "#/definitions/v1beta1.SelfSubjectAccessReviewSpec" }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.Subject" - } + "status": { + "description": "Status is filled in by the server and indicates whether the request is allowed or not", + "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "authorization.k8s.io", + "Version": "v1beta1", + "Kind": "SelfSubjectAccessReview" + } + ] }, - "v1alpha1.ClusterRoleBindingList": { - "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", + "v1beta1.DaemonSetSpec": { + "description": "DaemonSetSpec is the specification of a daemon set.", "required": [ - "items" + "template" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" + "minReadySeconds": { + "description": "The minimum number of seconds for which a newly created DaemonSet 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).", + "type": "integer", + "format": "int32" }, - "items": { - "description": "Items is a list of ClusterRoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } + "selector": { + "description": "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", + "$ref": "#/definitions/v1.LabelSelector" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" + "template": { + "description": "An 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", + "$ref": "#/definitions/v1.PodTemplateSpec" }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/unversioned.ListMeta" + "templateGeneration": { + "description": "A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation.", + "type": "integer", + "format": "int64" + }, + "updateStrategy": { + "description": "An update strategy to replace existing DaemonSet pods with new pods.", + "$ref": "#/definitions/v1beta1.DaemonSetUpdateStrategy" } } }, - "v1alpha1.ClusterRoleList": { - "description": "ClusterRoleList is a collection of ClusterRoles", + "v2alpha1.CronJobSpec": { + "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", "required": [ - "items" + "schedule", + "jobTemplate" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "concurrencyPolicy": { + "description": "ConcurrencyPolicy specifies how to treat concurrent executions of a Job.", "type": "string" }, - "items": { - "description": "Items is a list of ClusterRoles", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } + "failedJobsHistoryLimit": { + "description": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", + "type": "integer", + "format": "int32" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "jobTemplate": { + "description": "JobTemplate is the object that describes the job that will be created when executing a CronJob.", + "$ref": "#/definitions/v2alpha1.JobTemplateSpec" + }, + "schedule": { + "description": "Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", "type": "string" }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/unversioned.ListMeta" + "startingDeadlineSeconds": { + "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", + "type": "integer", + "format": "int64" + }, + "successfulJobsHistoryLimit": { + "description": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", + "type": "integer", + "format": "int32" + }, + "suspend": { + "description": "Suspend flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", + "type": "boolean" } } }, - "v1alpha1.PolicyRule": { - "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", - "required": [ - "verbs" - ], + "v1.PersistentVolumeClaimStatus": { + "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", "properties": { - "apiGroups": { - "description": "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.", + "accessModes": { + "description": "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", "type": "array", "items": { "type": "string" } }, - "attributeRestrictions": { - "description": "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.", - "$ref": "#/definitions/runtime.RawExtension" - }, - "nonResourceURLs": { - "description": "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.", - "type": "array", - "items": { - "type": "string" + "capacity": { + "description": "Represents the actual resources of the underlying volume.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" } }, - "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", - "type": "array", - "items": { - "type": "string" - } + "phase": { + "description": "Phase represents the current phase of PersistentVolumeClaim.", + "type": "string" + } + } + }, + "v1beta1.TokenReviewStatus": { + "description": "TokenReviewStatus is the result of the token authentication request.", + "properties": { + "authenticated": { + "description": "Authenticated indicates that the token was associated with a known user.", + "type": "boolean" }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", - "type": "array", - "items": { - "type": "string" - } + "error": { + "description": "Error indicates that the token couldn't be checked", + "type": "string" }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", - "type": "array", - "items": { - "type": "string" - } + "user": { + "description": "User is the UserInfo associated with the provided token.", + "$ref": "#/definitions/v1beta1.UserInfo" } } }, - "v1alpha1.Role": { - "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", + "v1beta1.HostPortRange": { + "description": "Host Port Range defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.", "required": [ - "rules" + "min", + "max" + ], + "properties": { + "max": { + "description": "max is the end of the range, inclusive.", + "type": "integer", + "format": "int32" + }, + "min": { + "description": "min is the start of the range, inclusive.", + "type": "integer", + "format": "int32" + } + } + }, + "v1.Endpoints": { + "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n Name: \"mysvc\",\n Subsets: [\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n },\n {\n Addresses: [{\"ip\": \"10.10.3.3\"}],\n Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n },\n ]", + "required": [ + "subsets" ], "properties": { "apiVersion": { @@ -33560,24 +39698,27 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata.", + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", + "subsets": { + "description": "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.", "type": "array", "items": { - "$ref": "#/definitions/v1alpha1.PolicyRule" + "$ref": "#/definitions/v1.EndpointSubset" } } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "Endpoints" + } + ] }, - "v1alpha1.RoleBinding": { - "description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", - "required": [ - "subjects", - "roleRef" - ], + "v1.Job": { + "description": "Job represents the configuration of a single job.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -33588,24 +39729,28 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata.", + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, - "roleRef": { - "description": "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.", - "$ref": "#/definitions/v1alpha1.RoleRef" + "spec": { + "description": "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", + "$ref": "#/definitions/v1.JobSpec" }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.Subject" - } + "status": { + "description": "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", + "$ref": "#/definitions/v1.JobStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "batch", + "Version": "v1", + "Kind": "Job" + } + ] }, - "v1alpha1.RoleBindingList": { - "description": "RoleBindingList is a collection of RoleBindings", + "v2alpha1.HorizontalPodAutoscalerList": { + "description": "HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.", "required": [ "items" ], @@ -33615,10 +39760,10 @@ "type": "string" }, "items": { - "description": "Items is a list of RoleBindings", + "description": "items is the list of horizontal pod autoscaler objects.", "type": "array", "items": { - "$ref": "#/definitions/v1alpha1.RoleBinding" + "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" } }, "kind": { @@ -33626,108 +39771,220 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/unversioned.ListMeta" + "description": "metadata is the standard list metadata.", + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "autoscaling", + "Version": "v2alpha1", + "Kind": "HorizontalPodAutoscalerList" + } + ] + }, + "v1.LimitRangeItem": { + "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "properties": { + "default": { + "description": "Default resource requirement limit value by resource name if resource limit is omitted.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + } + }, + "defaultRequest": { + "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + } + }, + "max": { + "description": "Max usage constraints on this kind by resource name.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + } + }, + "maxLimitRequestRatio": { + "description": "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.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + } + }, + "min": { + "description": "Min usage constraints on this kind by resource name.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + } + }, + "type": { + "description": "Type of resource that this limit applies to.", + "type": "string" } } }, - "v1alpha1.RoleList": { - "description": "RoleList is a collection of Roles", + "v1.SubjectAccessReview": { + "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", "required": [ - "items" + "spec" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "Items is a list of Roles", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.Role" - } - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/unversioned.ListMeta" + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec holds information about the request being evaluated", + "$ref": "#/definitions/v1.SubjectAccessReviewSpec" + }, + "status": { + "description": "Status is filled in by the server and indicates whether the request is allowed or not", + "$ref": "#/definitions/v1.SubjectAccessReviewStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "authorization.k8s.io", + "Version": "v1", + "Kind": "SubjectAccessReview" + } + ] }, - "v1alpha1.RoleRef": { - "description": "RoleRef contains information that points to the role being used", + "v1beta1.PodDisruptionBudgetStatus": { + "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", "required": [ - "apiGroup", - "kind", - "name" + "disruptedPods", + "disruptionsAllowed", + "currentHealthy", + "desiredHealthy", + "expectedPods" ], "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", - "type": "string" + "currentHealthy": { + "description": "current number of healthy pods", + "type": "integer", + "format": "int32" }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" + "desiredHealthy": { + "description": "minimum desired number of healthy pods", + "type": "integer", + "format": "int32" }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" + "disruptedPods": { + "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/v1.Time" + } + }, + "disruptionsAllowed": { + "description": "Number of pod disruptions that are currently allowed.", + "type": "integer", + "format": "int32" + }, + "expectedPods": { + "description": "total number of pods counted by this disruption budget", + "type": "integer", + "format": "int32" + }, + "observedGeneration": { + "description": "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation.", + "type": "integer", + "format": "int64" } } }, - "v1alpha1.Subject": { - "description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", - "required": [ - "kind", - "name" - ], + "v1.ResourceAttributes": { + "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", "properties": { - "apiVersion": { - "description": "APIVersion holds the API group and version of the referenced object.", - "type": "string" - }, - "kind": { - "description": "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.", + "group": { + "description": "Group is the API Group of the Resource. \"*\" means all.", "type": "string" }, "name": { - "description": "Name of the object being referenced.", + "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", "type": "string" }, "namespace": { - "description": "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.", + "description": "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", + "type": "string" + }, + "resource": { + "description": "Resource is one of the existing resource types. \"*\" means all.", + "type": "string" + }, + "subresource": { + "description": "Subresource is one of the existing resource types. \"\" means none.", + "type": "string" + }, + "verb": { + "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "type": "string" + }, + "version": { + "description": "Version is the API Version of the Resource. \"*\" means all.", "type": "string" } } }, - "v1beta1.APIVersion": { - "description": "An APIVersion represents a single concrete version of an object model.", + "v1.ConfigMapVolumeSource": { + "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", "properties": { + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "items": { + "description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.KeyToPath" + } + }, "name": { - "description": "Name of this version (e.g. 'v1').", + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap or it's keys must be defined", + "type": "boolean" } } }, - "v1beta1.CPUTargetUtilization": { + "v1.HTTPHeader": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", "required": [ - "targetPercentage" + "name", + "value" ], "properties": { - "targetPercentage": { - "description": "fraction of the requested CPU that should be utilized/used, e.g. 70 means that 70% of the requested CPU should be in use.", - "type": "integer", - "format": "int32" + "name": { + "description": "The header field name", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" } } }, - "v1beta1.DaemonSet": { - "description": "DaemonSet represents the configuration of a daemon set.", + "resource.Quantity": { + "type": "string" + }, + "v1.ReplicationController": { + "description": "ReplicationController represents the configuration of a replication controller.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -33738,95 +39995,184 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "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", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Spec defines the desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.DaemonSetSpec" + "description": "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", + "$ref": "#/definitions/v1.ReplicationControllerSpec" }, "status": { - "description": "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", - "$ref": "#/definitions/v1beta1.DaemonSetStatus" + "description": "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", + "$ref": "#/definitions/v1.ReplicationControllerStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "ReplicationController" + } + ] }, - "v1beta1.DaemonSetList": { - "description": "DaemonSetList is a collection of daemon sets.", + "v1.APIGroupList": { + "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", "required": [ - "items" + "groups" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "Items is a list of daemon sets.", + "groups": { + "description": "groups is a list of APIGroup.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.DaemonSet" + "$ref": "#/definitions/v1.APIGroup" } }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + } + } + }, + "v1beta1.NetworkPolicy": { + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/unversioned.ListMeta" + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Specification of the desired behavior for this NetworkPolicy.", + "$ref": "#/definitions/v1beta1.NetworkPolicySpec" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "NetworkPolicy" + } + ] }, - "v1beta1.DaemonSetSpec": { - "description": "DaemonSetSpec is the specification of a daemon set.", - "required": [ - "template" - ], + "apps.v1beta1.RollingUpdateDeployment": { + "description": "Spec to control the desired behavior of rolling update.", "properties": { - "selector": { - "description": "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", - "$ref": "#/definitions/unversioned.LabelSelector" + "maxSurge": { + "description": "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. Defaults to 25%. 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.", + "$ref": "#/definitions/intstr.IntOrString" }, - "template": { - "description": "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", - "$ref": "#/definitions/v1.PodTemplateSpec" + "maxUnavailable": { + "description": "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 down. This can not be 0 if MaxSurge is 0. Defaults to 25%. 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.", + "$ref": "#/definitions/intstr.IntOrString" } } }, - "v1beta1.DaemonSetStatus": { - "description": "DaemonSetStatus represents the current status of a daemon set.", + "v1beta1.ReplicaSetStatus": { + "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", "required": [ - "currentNumberScheduled", - "numberMisscheduled", - "desiredNumberScheduled", - "numberReady" + "replicas" ], "properties": { - "currentNumberScheduled": { - "description": "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", + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", "type": "integer", "format": "int32" }, - "desiredNumberScheduled": { - "description": "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", + "conditions": { + "description": "Represents the latest available observations of a replica set's current state.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.ReplicaSetCondition" + } + }, + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replicaset.", "type": "integer", "format": "int32" }, - "numberMisscheduled": { - "description": "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", + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", + "type": "integer", + "format": "int64" + }, + "readyReplicas": { + "description": "The number of ready replicas for this replica set.", "type": "integer", "format": "int32" }, - "numberReady": { - "description": "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.", + "replicas": { + "description": "Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", "type": "integer", "format": "int32" } } }, - "v1beta1.Deployment": { - "description": "Deployment enables declarative updates for Pods and ReplicaSets.", + "v1.HTTPGetAction": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "required": [ + "port" + ], + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.HTTPHeader" + } + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": "string" + }, + "port": { + "description": "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.", + "$ref": "#/definitions/intstr.IntOrString" + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "type": "string" + } + } + }, + "v1.Affinity": { + "description": "Affinity is a group of affinity scheduling rules.", + "properties": { + "nodeAffinity": { + "description": "Describes node affinity scheduling rules for the pod.", + "$ref": "#/definitions/v1.NodeAffinity" + }, + "podAffinity": { + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", + "$ref": "#/definitions/v1.PodAffinity" + }, + "podAntiAffinity": { + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", + "$ref": "#/definitions/v1.PodAntiAffinity" + } + } + }, + "v1.APIGroup": { + "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "required": [ + "name", + "versions", + "serverAddressByClientCIDRs" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -33836,34 +40182,65 @@ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "metadata": { - "description": "Standard object metadata.", - "$ref": "#/definitions/v1.ObjectMeta" + "name": { + "description": "name is the name of the group.", + "type": "string" }, - "spec": { - "description": "Specification of the desired behavior of the Deployment.", - "$ref": "#/definitions/v1beta1.DeploymentSpec" + "preferredVersion": { + "description": "preferredVersion is the version preferred by the API server, which probably is the storage version.", + "$ref": "#/definitions/v1.GroupVersionForDiscovery" + }, + "serverAddressByClientCIDRs": { + "description": "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.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ServerAddressByClientCIDR" + } + }, + "versions": { + "description": "versions are the versions supported in this group.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.GroupVersionForDiscovery" + } + } + } + }, + "v1.ComponentCondition": { + "description": "Information about the condition of a component.", + "required": [ + "type", + "status" + ], + "properties": { + "error": { + "description": "Condition error code for a component. For example, a health check error code.", + "type": "string" + }, + "message": { + "description": "Message about the condition for a component. For example, information about a health check.", + "type": "string" }, "status": { - "description": "Most recently observed status of the Deployment.", - "$ref": "#/definitions/v1beta1.DeploymentStatus" + "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", + "type": "string" + }, + "type": { + "description": "Type of condition for a component. Valid value: \"Healthy\"", + "type": "string" } } }, - "v1beta1.DeploymentCondition": { - "description": "DeploymentCondition describes the state of a deployment at a certain point.", + "v1.ReplicationControllerCondition": { + "description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", "required": [ "type", "status" ], "properties": { "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "$ref": "#/definitions/unversioned.Time" - }, - "lastUpdateTime": { - "description": "The last time this condition was updated.", - "$ref": "#/definitions/unversioned.Time" + "description": "The last time the condition transitioned from one status to another.", + "$ref": "#/definitions/v1.Time" }, "message": { "description": "A human readable message indicating details about the transition.", @@ -33878,44 +40255,44 @@ "type": "string" }, "type": { - "description": "Type of deployment condition.", + "description": "Type of replication controller condition.", "type": "string" } } }, - "v1beta1.DeploymentList": { - "description": "DeploymentList is a list of Deployments.", + "v1.APIVersions": { + "description": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", "required": [ - "items" + "versions", + "serverAddressByClientCIDRs" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "Items is the list of Deployments.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.Deployment" - } - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/unversioned.ListMeta" + "serverAddressByClientCIDRs": { + "description": "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.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ServerAddressByClientCIDR" + } + }, + "versions": { + "description": "versions are the api versions that are available.", + "type": "array", + "items": { + "type": "string" + } } } }, - "v1beta1.DeploymentRollback": { - "description": "DeploymentRollback stores the information required to rollback a deployment.", - "required": [ - "name", - "rollbackTo" - ], + "v1beta1.CertificateSigningRequest": { + "description": "Describes a certificate signing request", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -33925,175 +40302,214 @@ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "name": { - "description": "Required: This must match the Name of a deployment.", - "type": "string" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" }, - "rollbackTo": { - "description": "The config of this deployment rollback.", - "$ref": "#/definitions/v1beta1.RollbackConfig" + "spec": { + "description": "The certificate request itself and any additional information.", + "$ref": "#/definitions/v1beta1.CertificateSigningRequestSpec" }, - "updatedAnnotations": { - "description": "The annotations to be updated to a deployment", - "type": "object", - "additionalProperties": { - "type": "string" - } + "status": { + "description": "Derived information about the request.", + "$ref": "#/definitions/v1beta1.CertificateSigningRequestStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "certificates.k8s.io", + "Version": "v1beta1", + "Kind": "CertificateSigningRequest" + } + ] }, - "v1beta1.DeploymentSpec": { - "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", - "required": [ - "template" - ], - "properties": { - "minReadySeconds": { - "description": "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)", - "type": "integer", - "format": "int32" - }, - "paused": { - "description": "Indicates that the deployment is paused and will not be processed by the deployment controller.", - "type": "boolean" - }, - "progressDeadlineSeconds": { - "description": "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.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "type": "integer", - "format": "int32" - }, - "revisionHistoryLimit": { - "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified.", - "type": "integer", - "format": "int32" - }, - "rollbackTo": { - "description": "The config this deployment is rolling back to. Will be cleared after rollback is done.", - "$ref": "#/definitions/v1beta1.RollbackConfig" - }, - "selector": { - "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", - "$ref": "#/definitions/unversioned.LabelSelector" + "v2alpha1.ObjectMetricStatus": { + "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "required": [ + "target", + "metricName", + "currentValue" + ], + "properties": { + "currentValue": { + "description": "currentValue is the current value of the metric (as a quantity).", + "$ref": "#/definitions/resource.Quantity" }, - "strategy": { - "description": "The deployment strategy to use to replace existing pods with new ones.", - "$ref": "#/definitions/v1beta1.DeploymentStrategy" + "metricName": { + "description": "metricName is the name of the metric in question.", + "type": "string" }, - "template": { - "description": "Template describes the pods that will be created.", - "$ref": "#/definitions/v1.PodTemplateSpec" + "target": { + "description": "target is the described Kubernetes object.", + "$ref": "#/definitions/v2alpha1.CrossVersionObjectReference" } } }, - "v1beta1.DeploymentStatus": { - "description": "DeploymentStatus is the most recently observed status of the Deployment.", + "v1beta1.LocalSubjectAccessReview": { + "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", + "required": [ + "spec" + ], "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", - "type": "integer", - "format": "int32" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "conditions": { - "description": "Represents the latest available observations of a deployment's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.DeploymentCondition" - } + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "observedGeneration": { - "description": "The generation observed by the deployment controller.", - "type": "integer", - "format": "int64" + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "type": "integer", - "format": "int32" + "spec": { + "description": "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.", + "$ref": "#/definitions/v1beta1.SubjectAccessReviewSpec" }, - "unavailableReplicas": { - "description": "Total number of unavailable pods targeted by this deployment.", - "type": "integer", - "format": "int32" + "status": { + "description": "Status is filled in by the server and indicates whether the request is allowed or not", + "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "authorization.k8s.io", + "Version": "v1beta1", + "Kind": "LocalSubjectAccessReview" + } + ] + }, + "v1.WatchEvent": { + "description": "Event represents a single event to a watched resource.", + "required": [ + "type", + "object" + ], + "properties": { + "object": { + "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.", + "$ref": "#/definitions/runtime.RawExtension" }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "type": "integer", - "format": "int32" + "type": { + "type": "string" } } }, - "v1beta1.DeploymentStrategy": { - "description": "DeploymentStrategy describes how to replace existing pods with new ones.", + "v1.CinderVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "required": [ + "volumeID" + ], "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - "$ref": "#/definitions/v1beta1.RollingUpdateDeployment" + "fsType": { + "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", + "type": "string" }, - "type": { - "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", + "readOnly": { + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", + "type": "boolean" + }, + "volumeID": { + "description": "volume id used to identify the volume in cinder More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", "type": "string" } } }, - "v1beta1.Eviction": { - "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", + "v1.ResourceQuota": { + "description": "ResourceQuota sets aggregate quota restrictions enforced per namespace", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "deleteOptions": { - "description": "DeleteOptions may be provided", - "$ref": "#/definitions/v1.DeleteOptions" - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "ObjectMeta describes the pod that is being evicted.", + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec defines the desired quota. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.ResourceQuotaSpec" + }, + "status": { + "description": "Status defines the actual enforced quota and its current usage. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.ResourceQuotaStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "ResourceQuota" + } + ] }, - "v1beta1.HTTPIngressPath": { - "description": "HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.", - "required": [ - "backend" - ], + "v1.LimitRange": { + "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", "properties": { - "backend": { - "description": "Backend defines the referenced service endpoint to which the traffic will be forwarded to.", - "$ref": "#/definitions/v1beta1.IngressBackend" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "path": { - "description": "Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" + }, + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec defines the limits enforced. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.LimitRangeSpec" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "LimitRange" + } + ] }, - "v1beta1.HTTPIngressRuleValue": { - "description": "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", + "v1beta1.DaemonSetList": { + "description": "DaemonSetList is a collection of daemon sets.", "required": [ - "paths" + "items" ], "properties": { - "paths": { - "description": "A collection of paths that map requests to backends.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "A list of daemon sets.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.HTTPIngressPath" + "$ref": "#/definitions/v1beta1.DaemonSet" } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "DaemonSetList" + } + ] }, - "v1beta1.HorizontalPodAutoscaler": { - "description": "configuration of a horizontal pod autoscaler.", + "apps.v1beta1.Scale": { + "description": "Scale represents a scaling request for a resource.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -34104,21 +40520,28 @@ "type": "string" }, "metadata": { - "description": "Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "description": "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscalerSpec" + "description": "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", + "$ref": "#/definitions/apps.v1beta1.ScaleSpec" }, "status": { - "description": "current information about the autoscaler.", - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscalerStatus" + "description": "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.", + "$ref": "#/definitions/apps.v1beta1.ScaleStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "apps", + "Version": "v1beta1", + "Kind": "Scale" + } + ] }, - "v1beta1.HorizontalPodAutoscalerList": { - "description": "list of horizontal pod autoscaler objects.", + "v1.PodTemplateList": { + "description": "PodTemplateList is a list of PodTemplates.", "required": [ "items" ], @@ -34128,10 +40551,10 @@ "type": "string" }, "items": { - "description": "list of horizontal pod autoscaler objects.", + "description": "List of pod templates", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.PodTemplate" } }, "kind": { @@ -34139,73 +40562,49 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/unversioned.ListMeta" + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "PodTemplateList" + } + ] }, - "v1beta1.HorizontalPodAutoscalerSpec": { - "description": "specification of a horizontal pod autoscaler.", - "required": [ - "scaleRef", - "maxReplicas" - ], + "v1beta1.RollingUpdateDaemonSet": { + "description": "Spec to control the desired behavior of daemon set rolling update.", "properties": { - "cpuUtilization": { - "description": "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.", - "$ref": "#/definitions/v1beta1.CPUTargetUtilization" - }, - "maxReplicas": { - "description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", - "type": "integer", - "format": "int32" - }, - "minReplicas": { - "description": "lower limit for the number of pods that can be set by the autoscaler, default 1.", - "type": "integer", - "format": "int32" - }, - "scaleRef": { - "description": "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.", - "$ref": "#/definitions/v1beta1.SubresourceReference" + "maxUnavailable": { + "description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.", + "$ref": "#/definitions/intstr.IntOrString" } } }, - "v1beta1.HorizontalPodAutoscalerStatus": { - "description": "current status of a horizontal pod autoscaler", - "required": [ - "currentReplicas", - "desiredReplicas" - ], + "v1.PodAffinityTerm": { + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key tches that of any node on which a pod of the set of pods is running", "properties": { - "currentCPUUtilizationPercentage": { - "description": "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.", - "type": "integer", - "format": "int32" - }, - "currentReplicas": { - "description": "current number of replicas of pods managed by this autoscaler.", - "type": "integer", - "format": "int32" - }, - "desiredReplicas": { - "description": "desired number of replicas of pods managed by this autoscaler.", - "type": "integer", - "format": "int32" + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.", + "$ref": "#/definitions/v1.LabelSelector" }, - "lastScaleTime": { - "description": "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.", - "$ref": "#/definitions/unversioned.Time" + "namespaces": { + "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"", + "type": "array", + "items": { + "type": "string" + } }, - "observedGeneration": { - "description": "most recent generation observed by this autoscaler.", - "type": "integer", - "format": "int64" + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.", + "type": "string" } } }, - "v1beta1.Ingress": { - "description": "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", + "v1beta1.PodDisruptionBudget": { + "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -34216,183 +40615,297 @@ "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Spec is the desired state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.IngressSpec" + "description": "Specification of the desired behavior of the PodDisruptionBudget.", + "$ref": "#/definitions/v1beta1.PodDisruptionBudgetSpec" }, "status": { - "description": "Status is the current state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.IngressStatus" + "description": "Most recently observed status of the PodDisruptionBudget.", + "$ref": "#/definitions/v1beta1.PodDisruptionBudgetStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "policy", + "Version": "v1beta1", + "Kind": "PodDisruptionBudget" + } + ] }, - "v1beta1.IngressBackend": { - "description": "IngressBackend describes all endpoints for a given service and port.", + "v1.VolumeMount": { + "description": "VolumeMount describes a mounting of a Volume within a container.", "required": [ - "serviceName", - "servicePort" + "name", + "mountPath" ], "properties": { - "serviceName": { - "description": "Specifies the name of the referenced service.", + "mountPath": { + "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", "type": "string" }, - "servicePort": { - "description": "Specifies the port of the referenced service.", - "$ref": "#/definitions/intstr.IntOrString" + "name": { + "description": "This must match the Name of a Volume.", + "type": "string" + }, + "readOnly": { + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", + "type": "boolean" + }, + "subPath": { + "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", + "type": "string" } } }, - "v1beta1.IngressList": { - "description": "IngressList is a collection of Ingress.", + "v1beta1.ClusterRole": { + "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", "required": [ - "items" + "rules" ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "Items is the list of Ingress.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "rules": { + "description": "Rules holds all the PolicyRules for this ClusterRole", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.Ingress" + "$ref": "#/definitions/v1beta1.PolicyRule" } + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1beta1", + "Kind": "ClusterRole" + } + ] + }, + "v1.PersistentVolumeStatus": { + "description": "PersistentVolumeStatus is the current status of a persistent volume.", + "properties": { + "message": { + "description": "A human-readable message indicating details about why the volume is in this state.", + "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "phase": { + "description": "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", "type": "string" }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/unversioned.ListMeta" + "reason": { + "description": "Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", + "type": "string" } } }, - "v1beta1.IngressRule": { - "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", + "v1.SelfSubjectAccessReview": { + "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", + "required": [ + "spec" + ], "properties": { - "host": { - "description": "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\n\t IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth 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.", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "http": { - "$ref": "#/definitions/v1beta1.HTTPIngressRuleValue" + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec holds information about the request being evaluated. user and groups must be empty", + "$ref": "#/definitions/v1.SelfSubjectAccessReviewSpec" + }, + "status": { + "description": "Status is filled in by the server and indicates whether the request is allowed or not", + "$ref": "#/definitions/v1.SubjectAccessReviewStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "authorization.k8s.io", + "Version": "v1", + "Kind": "SelfSubjectAccessReview" + } + ] }, - "v1beta1.IngressSpec": { - "description": "IngressSpec describes the Ingress the user wishes to exist.", + "v1alpha1.RoleBinding": { + "description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", + "required": [ + "subjects", + "roleRef" + ], "properties": { - "backend": { - "description": "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.", - "$ref": "#/definitions/v1beta1.IngressBackend" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "rules": { - "description": "A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.IngressRule" - } + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" }, - "tls": { - "description": "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.", + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ObjectMeta" + }, + "roleRef": { + "description": "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.", + "$ref": "#/definitions/v1alpha1.RoleRef" + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.IngressTLS" + "$ref": "#/definitions/v1alpha1.Subject" } } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1alpha1", + "Kind": "RoleBinding" + } + ] }, - "v1beta1.IngressStatus": { - "description": "IngressStatus describe the current state of the Ingress.", + "extensions.v1beta1.RollbackConfig": { "properties": { - "loadBalancer": { - "description": "LoadBalancer contains the current status of the load-balancer.", - "$ref": "#/definitions/v1.LoadBalancerStatus" + "revision": { + "description": "The revision to rollback to. If set to 0, rollbck to the last revision.", + "type": "integer", + "format": "int64" } } }, - "v1beta1.IngressTLS": { - "description": "IngressTLS describes the transport layer security associated with an Ingress.", + "v1beta1.NetworkPolicyPeer": { "properties": { - "hosts": { - "description": "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.", - "type": "array", - "items": { - "type": "string" - } + "namespaceSelector": { + "description": "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.", + "$ref": "#/definitions/v1.LabelSelector" }, - "secretName": { - "description": "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.", - "type": "string" + "podSelector": { + "description": "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.", + "$ref": "#/definitions/v1.LabelSelector" } } }, - "v1beta1.Job": { - "description": "Job represents the configuration of a single job. DEPRECATED: extensions/v1beta1.Job is deprecated, use batch/v1.Job instead.", + "v1.PodList": { + "description": "PodList is a list of Pods.", + "required": [ + "items" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, + "items": { + "description": "List of pods. More info: http://kubernetes.io/docs/user-guide/pods", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Pod" + } + }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "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", - "$ref": "#/definitions/v1beta1.JobSpec" - }, - "status": { - "description": "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", - "$ref": "#/definitions/v1beta1.JobStatus" + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "PodList" + } + ] }, - "v1beta1.JobCondition": { - "description": "JobCondition describes current state of a job.", - "required": [ - "type", - "status" - ], + "v1.NodeStatus": { + "description": "NodeStatus is information about the current status of a node.", "properties": { - "lastProbeTime": { - "description": "Last time the condition was checked.", - "$ref": "#/definitions/unversioned.Time" + "addresses": { + "description": "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", + "type": "array", + "items": { + "$ref": "#/definitions/v1.NodeAddress" + } }, - "lastTransitionTime": { - "description": "Last time the condition transit from one status to another.", - "$ref": "#/definitions/unversioned.Time" + "allocatable": { + "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + } }, - "message": { - "description": "Human readable message indicating details about last transition.", - "type": "string" + "capacity": { + "description": "Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + } }, - "reason": { - "description": "(brief) reason for the condition's last transition.", - "type": "string" + "conditions": { + "description": "Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition", + "type": "array", + "items": { + "$ref": "#/definitions/v1.NodeCondition" + } }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", + "daemonEndpoints": { + "description": "Endpoints of daemons running on the Node.", + "$ref": "#/definitions/v1.NodeDaemonEndpoints" + }, + "images": { + "description": "List of container images on this node", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ContainerImage" + } + }, + "nodeInfo": { + "description": "Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-info", + "$ref": "#/definitions/v1.NodeSystemInfo" + }, + "phase": { + "description": "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.", "type": "string" }, - "type": { - "description": "Type of job condition, Complete or Failed.", - "type": "string" + "volumesAttached": { + "description": "List of volumes that are attached to the node.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.AttachedVolume" + } + }, + "volumesInUse": { + "description": "List of attachable volumes in use (mounted) by the node.", + "type": "array", + "items": { + "type": "string" + } } } }, - "v1beta1.JobList": { - "description": "JobList is a collection of jobs. DEPRECATED: extensions/v1beta1.JobList is deprecated, use batch/v1.JobList instead.", + "v1.EventList": { + "description": "EventList is a list of events.", "required": [ "items" ], @@ -34402,10 +40915,10 @@ "type": "string" }, "items": { - "description": "Items is the list of Job.", + "description": "List of events", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.Job" + "$ref": "#/definitions/v1.Event" } }, "kind": { @@ -34413,109 +40926,90 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/unversioned.ListMeta" + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "EventList" + } + ] }, - "v1beta1.JobSpec": { - "description": "JobSpec describes how the job execution will look like.", + "v1.HostPathVolumeSource": { + "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", "required": [ - "template" + "path" ], "properties": { - "activeDeadlineSeconds": { - "description": "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", - "type": "integer", - "format": "int64" - }, - "autoSelector": { - "description": "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", - "type": "boolean" - }, - "completions": { - "description": "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", - "type": "integer", - "format": "int32" - }, - "parallelism": { - "description": "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", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "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", - "$ref": "#/definitions/unversioned.LabelSelector" - }, - "template": { - "description": "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", - "$ref": "#/definitions/v1.PodTemplateSpec" + "path": { + "description": "Path of the directory on the host. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath", + "type": "string" } } }, - "v1beta1.JobStatus": { - "description": "JobStatus represents the current state of a Job.", + "v1.ExecAction": { + "description": "ExecAction describes a \"run in container\" action.", "properties": { - "active": { - "description": "Active is the number of actively running pods.", - "type": "integer", - "format": "int32" - }, - "completionTime": { - "description": "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.", - "$ref": "#/definitions/unversioned.Time" - }, - "conditions": { - "description": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs", + "command": { + "description": "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.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.JobCondition" + "type": "string" } - }, - "failed": { - "description": "Failed is the number of pods which reached Phase Failed.", - "type": "integer", - "format": "int32" - }, - "startTime": { - "description": "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.", - "$ref": "#/definitions/unversioned.Time" - }, - "succeeded": { - "description": "Succeeded is the number of pods which reached Phase Succeeded.", - "type": "integer", - "format": "int32" } } }, - "v1beta1.LocalSubjectAccessReview": { - "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", - "required": [ - "spec" - ], + "v1.ContainerStateRunning": { + "description": "ContainerStateRunning is a running state of a container.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" + "startedAt": { + "description": "Time at which the container was last (re-)started", + "$ref": "#/definitions/v1.Time" + } + } + }, + "v1alpha1.PodPresetSpec": { + "description": "PodPresetSpec is a description of a pod injection policy.", + "properties": { + "env": { + "description": "Env defines the collection of EnvVar to inject into containers.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EnvVar" + } }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" + "envFrom": { + "description": "EnvFrom defines the collection of EnvFromSource to inject into containers.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EnvFromSource" + } }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" + "selector": { + "description": "Selector is a label query over a set of resources, in this case pods. Required.", + "$ref": "#/definitions/v1.LabelSelector" }, - "spec": { - "description": "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.", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewSpec" + "volumeMounts": { + "description": "VolumeMounts defines the collection of VolumeMount to inject into containers.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.VolumeMount" + } }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" + "volumes": { + "description": "Volumes defines the collection of Volume to inject into the pod.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Volume" + } } } }, - "v1beta1.NetworkPolicy": { + "v1beta1.PodSecurityPolicy": { + "description": "Pod Security Policy governs the ability to make requests that affect the Security Context that will be applied to a pod and container.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -34530,158 +41024,110 @@ "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Specification of the desired behavior for this NetworkPolicy.", - "$ref": "#/definitions/v1beta1.NetworkPolicySpec" + "description": "spec defines the policy enforced.", + "$ref": "#/definitions/v1beta1.PodSecurityPolicySpec" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "PodSecurityPolicy" + } + ] }, - "v1beta1.NetworkPolicyIngressRule": { - "description": "This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from.", + "v1.PodStatus": { + "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system.", "properties": { - "from": { - "description": "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.", + "conditions": { + "description": "Current service state of pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyPeer" + "$ref": "#/definitions/v1.PodCondition" } }, - "ports": { - "description": "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.", + "containerStatuses": { + "description": "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", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyPort" + "$ref": "#/definitions/v1.ContainerStatus" } - } - } - }, - "v1beta1.NetworkPolicyList": { - "description": "Network Policy List is a list of NetworkPolicy objects.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + }, + "hostIP": { + "description": "IP address of the host to which the pod is assigned. Empty if not yet scheduled.", "type": "string" }, - "items": { - "description": "Items is a list of schema objects.", + "initContainerStatuses": { + "description": "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" + "$ref": "#/definitions/v1.ContainerStatus" } }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "message": { + "description": "A human readable message indicating details about why the pod is in this condition.", "type": "string" }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/unversioned.ListMeta" - } - } - }, - "v1beta1.NetworkPolicyPeer": { - "properties": { - "namespaceSelector": { - "description": "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.", - "$ref": "#/definitions/unversioned.LabelSelector" + "phase": { + "description": "Current condition of the pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase", + "type": "string" }, - "podSelector": { - "description": "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.", - "$ref": "#/definitions/unversioned.LabelSelector" - } - } - }, - "v1beta1.NetworkPolicyPort": { - "properties": { - "port": { - "description": "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.", - "$ref": "#/definitions/intstr.IntOrString" + "podIP": { + "description": "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", + "type": "string" }, - "protocol": { - "description": "Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP.", + "qosClass": { + "description": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md", + "type": "string" + }, + "reason": { + "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk'", "type": "string" + }, + "startTime": { + "description": "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.", + "$ref": "#/definitions/v1.Time" } } }, - "v1beta1.NetworkPolicySpec": { + "v1.NodeSelector": { + "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", "required": [ - "podSelector" + "nodeSelectorTerms" ], "properties": { - "ingress": { - "description": "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.", + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyIngressRule" + "$ref": "#/definitions/v1.NodeSelectorTerm" } - }, - "podSelector": { - "description": "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.", - "$ref": "#/definitions/unversioned.LabelSelector" - } - } - }, - "v1beta1.NonResourceAttributes": { - "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", - "properties": { - "path": { - "description": "Path is the URL path of the request", - "type": "string" - }, - "verb": { - "description": "Verb is the standard HTTP verb", - "type": "string" } } }, - "v1beta1.PodDisruptionBudget": { - "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", + "v1.PodTemplateSpec": { + "description": "PodTemplateSpec describes the data a pod should have when created from a template", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Specification of the desired behavior of the PodDisruptionBudget.", - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetSpec" - }, - "status": { - "description": "Most recently observed status of the PodDisruptionBudget.", - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetStatus" + "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.PodSpec" } } }, - "v1beta1.PodDisruptionBudgetList": { - "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", - "required": [ - "items" - ], + "apps.v1beta1.DeploymentStrategy": { + "description": "DeploymentStrategy describes how to replace existing pods with new ones.", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } + "rollingUpdate": { + "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", + "$ref": "#/definitions/apps.v1beta1.RollingUpdateDeployment" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": { + "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", "type": "string" - }, - "metadata": { - "$ref": "#/definitions/unversioned.ListMeta" } } }, @@ -34694,110 +41140,28 @@ }, "selector": { "description": "Label query over pods whose evictions are managed by the disruption budget.", - "$ref": "#/definitions/unversioned.LabelSelector" + "$ref": "#/definitions/v1.LabelSelector" } } }, - "v1beta1.PodDisruptionBudgetStatus": { - "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", - "required": [ - "disruptedPods", - "disruptionsAllowed", - "currentHealthy", - "desiredHealthy", - "expectedPods" - ], + "v1.NodeAffinity": { + "description": "Node affinity is a group of node affinity scheduling rules.", "properties": { - "currentHealthy": { - "description": "current number of healthy pods", - "type": "integer", - "format": "int32" - }, - "desiredHealthy": { - "description": "minimum desired number of healthy pods", - "type": "integer", - "format": "int32" - }, - "disruptedPods": { - "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/unversioned.Time" + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.PreferredSchedulingTerm" } }, - "disruptionsAllowed": { - "description": "Number of pod disruptions that are currently allowed.", - "type": "integer", - "format": "int32" - }, - "expectedPods": { - "description": "total number of pods counted by this disruption budget", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation.", - "type": "integer", - "format": "int64" - } - } - }, - "v1beta1.ReplicaSet": { - "description": "ReplicaSet represents the configuration of a ReplicaSet.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "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", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "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", - "$ref": "#/definitions/v1beta1.ReplicaSetSpec" - }, - "status": { - "description": "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", - "$ref": "#/definitions/v1beta1.ReplicaSetStatus" - } - } - }, - "v1beta1.ReplicaSetCondition": { - "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "The last time the condition transitioned from one status to another.", - "$ref": "#/definitions/unversioned.Time" - }, - "message": { - "description": "A human readable message indicating details about the transition.", - "type": "string" - }, - "reason": { - "description": "The reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of replica set condition.", - "type": "string" + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.", + "$ref": "#/definitions/v1.NodeSelector" } } }, - "v1beta1.ReplicaSetList": { - "description": "ReplicaSetList is a collection of ReplicaSets.", + "v1beta1.ThirdPartyResourceList": { + "description": "ThirdPartyResourceList is a list of ThirdPartyResources.", "required": [ "items" ], @@ -34807,10 +41171,10 @@ "type": "string" }, "items": { - "description": "List of ReplicaSets. More info: http://kubernetes.io/docs/user-guide/replication-controller", + "description": "Items is the list of ThirdPartyResources.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.ReplicaSet" + "$ref": "#/definitions/v1beta1.ThirdPartyResource" } }, "kind": { @@ -34818,131 +41182,109 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/unversioned.ListMeta" + "description": "Standard list metadata.", + "$ref": "#/definitions/v1.ListMeta" } - } - }, - "v1beta1.ReplicaSetSpec": { - "description": "ReplicaSetSpec is the specification of a ReplicaSet.", - "properties": { - "minReadySeconds": { - "description": "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)", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "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", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "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", - "$ref": "#/definitions/unversioned.LabelSelector" - }, - "template": { - "description": "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", - "$ref": "#/definitions/v1.PodTemplateSpec" + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "ThirdPartyResourceList" } - } + ] }, - "v1beta1.ReplicaSetStatus": { - "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", + "v1beta1.StorageClass": { + "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", "required": [ - "replicas" + "provisioner" ], "properties": { - "availableReplicas": { - "description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a replica set's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ReplicaSetCondition" - } - }, - "fullyLabeledReplicas": { - "description": "The number of pods that have labels matching the labels of the pod template of the replicaset.", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "The number of ready replicas for this replica set.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", - "type": "integer", - "format": "int32" - } - } - }, - "v1beta1.ResourceAttributes": { - "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", - "properties": { - "group": { - "description": "Group is the API Group of the Resource. \"*\" means all.", - "type": "string" - }, - "name": { - "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", - "type": "string" - }, - "namespace": { - "description": "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", + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "resource": { - "description": "Resource is one of the existing resource types. \"*\" means all.", + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "subresource": { - "description": "Subresource is one of the existing resource types. \"\" means none.", - "type": "string" + "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ObjectMeta" }, - "verb": { - "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", - "type": "string" + "parameters": { + "description": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "version": { - "description": "Version is the API Version of the Resource. \"*\" means all.", + "provisioner": { + "description": "Provisioner indicates the type of the provisioner.", "type": "string" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "storage.k8s.io", + "Version": "v1beta1", + "Kind": "StorageClass" + } + ] }, - "v1beta1.RollbackConfig": { + "v1beta1.IngressBackend": { + "description": "IngressBackend describes all endpoints for a given service and port.", + "required": [ + "serviceName", + "servicePort" + ], "properties": { - "revision": { - "description": "The revision to rollback to. If set to 0, rollbck to the last revision.", - "type": "integer", - "format": "int64" + "serviceName": { + "description": "Specifies the name of the referenced service.", + "type": "string" + }, + "servicePort": { + "description": "Specifies the port of the referenced service.", + "$ref": "#/definitions/intstr.IntOrString" } } }, - "v1beta1.RollingUpdateDeployment": { - "description": "Spec to control the desired behavior of rolling update.", + "v1beta1.RoleList": { + "description": "RoleList is a collection of Roles", + "required": [ + "items" + ], "properties": { - "maxSurge": { - "description": "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.", - "$ref": "#/definitions/intstr.IntOrString" + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "type": "string" }, - "maxUnavailable": { - "description": "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.", - "$ref": "#/definitions/intstr.IntOrString" + "items": { + "description": "Items is a list of Roles", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.Role" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1beta1", + "Kind": "RoleList" + } + ] }, - "v1beta1.Scale": { - "description": "represents a scaling request for a resource.", + "v1.Pod": { + "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -34953,119 +41295,197 @@ "type": "string" }, "metadata": { - "description": "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.", + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/v1beta1.ScaleSpec" + "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.PodSpec" }, "status": { - "description": "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/v1beta1.ScaleStatus" + "description": "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", + "$ref": "#/definitions/v1.PodStatus" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "Pod" + } + ] }, - "v1beta1.ScaleSpec": { - "description": "describes the attributes of a scale subresource", + "v1.NodeSpec": { + "description": "NodeSpec describes the attributes that a node is created with.", "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" + "externalID": { + "description": "External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated.", + "type": "string" + }, + "podCIDR": { + "description": "PodCIDR represents the pod IP range assigned to the node.", + "type": "string" + }, + "providerID": { + "description": "ID of the node assigned by the cloud provider in the format: ://", + "type": "string" + }, + "taints": { + "description": "If specified, the node's taints.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Taint" + } + }, + "unschedulable": { + "description": "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", + "type": "boolean" } } }, - "v1beta1.ScaleStatus": { - "description": "represents the current status of a scale subresource.", + "v1.CephFSVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", "required": [ - "replicas" + "monitors" ], "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "object", - "additionalProperties": { + "monitors": { + "description": "Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "type": "array", + "items": { "type": "string" } }, - "targetSelector": { - "description": "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", + "path": { + "description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": "string" + }, + "readOnly": { + "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "type": "boolean" + }, + "secretFile": { + "description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + }, + "secretRef": { + "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", + "$ref": "#/definitions/v1.LocalObjectReference" + }, + "user": { + "description": "Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", "type": "string" } } }, - "v1beta1.SelfSubjectAccessReview": { - "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", + "v1.PersistentVolumeClaimVolumeSource": { + "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", "required": [ - "spec" + "claimName" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "claimName": { + "description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated. user and groups must be empty", - "$ref": "#/definitions/v1beta1.SelfSubjectAccessReviewSpec" + "readOnly": { + "description": "Will force the ReadOnly setting in VolumeMounts. Default false.", + "type": "boolean" + } + } + }, + "v1beta1.HTTPIngressPath": { + "description": "HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.", + "required": [ + "backend" + ], + "properties": { + "backend": { + "description": "Backend defines the referenced service endpoint to which the traffic will be forwarded to.", + "$ref": "#/definitions/v1beta1.IngressBackend" }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" + "path": { + "description": "Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.", + "type": "string" } } }, - "v1beta1.SelfSubjectAccessReviewSpec": { - "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "v2alpha1.HorizontalPodAutoscalerStatus": { + "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", + "required": [ + "currentReplicas", + "desiredReplicas", + "currentMetrics" + ], "properties": { - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/v1beta1.NonResourceAttributes" + "currentMetrics": { + "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", + "type": "array", + "items": { + "$ref": "#/definitions/v2alpha1.MetricStatus" + } }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/v1beta1.ResourceAttributes" + "currentReplicas": { + "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", + "type": "integer", + "format": "int32" + }, + "desiredReplicas": { + "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", + "type": "integer", + "format": "int32" + }, + "lastScaleTime": { + "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.", + "$ref": "#/definitions/v1.Time" + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed by this autoscaler.", + "type": "integer", + "format": "int64" } } }, - "v1beta1.StatefulSet": { - "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", + "v1.ContainerStateTerminated": { + "description": "ContainerStateTerminated is a terminated state of a container.", + "required": [ + "exitCode" + ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "containerID": { + "description": "Container's ID in the format 'docker://'", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "exitCode": { + "description": "Exit status from the last termination of the container", + "type": "integer", + "format": "int32" + }, + "finishedAt": { + "description": "Time at which the container last terminated", + "$ref": "#/definitions/v1.Time" + }, + "message": { + "description": "Message regarding the last termination of the container", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" + "reason": { + "description": "(brief) reason from the last termination of the container", + "type": "string" }, - "spec": { - "description": "Spec defines the desired identities of pods in this set.", - "$ref": "#/definitions/v1beta1.StatefulSetSpec" + "signal": { + "description": "Signal from the last termination of the container", + "type": "integer", + "format": "int32" }, - "status": { - "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", - "$ref": "#/definitions/v1beta1.StatefulSetStatus" + "startedAt": { + "description": "Time at which previous execution of the container started", + "$ref": "#/definitions/v1.Time" } } }, - "v1beta1.StatefulSetList": { - "description": "StatefulSetList is a collection of StatefulSets.", + "v1beta1.NetworkPolicyList": { + "description": "Network Policy List is a list of NetworkPolicy objects.", "required": [ "items" ], @@ -35075,9 +41495,10 @@ "type": "string" }, "items": { + "description": "Items is a list of schema objects.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.StatefulSet" + "$ref": "#/definitions/v1beta1.NetworkPolicy" } }, "kind": { @@ -35085,92 +41506,134 @@ "type": "string" }, "metadata": { - "$ref": "#/definitions/unversioned.ListMeta" + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "extensions", + "Version": "v1beta1", + "Kind": "NetworkPolicyList" + } + ] }, - "v1beta1.StatefulSetSpec": { - "description": "A StatefulSetSpec is the specification of a StatefulSet.", + "v1.NodeSelectorRequirement": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", "required": [ - "template", - "serviceName" + "key", + "operator" ], "properties": { - "replicas": { - "description": "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.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "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", - "$ref": "#/definitions/unversioned.LabelSelector" - }, - "serviceName": { - "description": "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.", + "key": { + "description": "The label key that the selector applies to.", "type": "string" }, - "template": { - "description": "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.", - "$ref": "#/definitions/v1.PodTemplateSpec" + "operator": { + "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" }, - "volumeClaimTemplates": { - "description": "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.", + "values": { + "description": "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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", "type": "array", "items": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" + "type": "string" } } } }, - "v1beta1.StatefulSetStatus": { - "description": "StatefulSetStatus represents the current state of a StatefulSet.", + "v1beta1.SubjectAccessReviewStatus": { + "description": "SubjectAccessReviewStatus", "required": [ - "replicas" + "allowed" ], "properties": { - "observedGeneration": { - "description": "most recent generation observed by this autoscaler.", - "type": "integer", - "format": "int64" + "allowed": { + "description": "Allowed is required. True if the action would be allowed, false otherwise.", + "type": "boolean" }, - "replicas": { - "description": "Replicas is the number of actual replicas.", - "type": "integer", - "format": "int32" + "evaluationError": { + "description": "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.", + "type": "string" + }, + "reason": { + "description": "Reason is optional. It indicates why a request was allowed or denied.", + "type": "string" } } }, - "v1beta1.StorageClass": { - "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", + "v1.RBDVolumeSource": { + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", "required": [ - "provisioner" + "monitors", + "image" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "fsType": { + "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#rbd", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "image": { + "description": "The rados image name. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", "type": "string" }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" + "keyring": { + "description": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "type": "string" }, - "parameters": { - "description": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", - "type": "object", - "additionalProperties": { + "monitors": { + "description": "A collection of Ceph monitors. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "type": "array", + "items": { "type": "string" } }, - "provisioner": { - "description": "Provisioner indicates the type of the provisioner.", + "pool": { + "description": "The rados pool name. Default is rbd. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it.", + "type": "string" + }, + "readOnly": { + "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "type": "boolean" + }, + "secretRef": { + "description": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", + "$ref": "#/definitions/v1.LocalObjectReference" + }, + "user": { + "description": "The rados user name. Default is admin. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", "type": "string" } } }, + "v1.HorizontalPodAutoscalerSpec": { + "description": "specification of a horizontal pod autoscaler.", + "required": [ + "scaleTargetRef", + "maxReplicas" + ], + "properties": { + "maxReplicas": { + "description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", + "type": "integer", + "format": "int32" + }, + "minReplicas": { + "description": "lower limit for the number of pods that can be set by the autoscaler, default 1.", + "type": "integer", + "format": "int32" + }, + "scaleTargetRef": { + "description": "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.", + "$ref": "#/definitions/v1.CrossVersionObjectReference" + }, + "targetCPUUtilizationPercentage": { + "description": "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.", + "type": "integer", + "format": "int32" + } + } + }, "v1beta1.StorageClassList": { "description": "StorageClassList is a collection of storage classes.", "required": [ @@ -35194,142 +41657,205 @@ }, "metadata": { "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/unversioned.ListMeta" + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "storage.k8s.io", + "Version": "v1beta1", + "Kind": "StorageClassList" + } + ] }, - "v1beta1.SubjectAccessReview": { - "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", + "extensions.v1beta1.DeploymentCondition": { + "description": "DeploymentCondition describes the state of a deployment at a certain point.", "required": [ - "spec" + "type", + "status" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "lastTransitionTime": { + "description": "Last time the condition transitioned from one status to another.", + "$ref": "#/definitions/v1.Time" + }, + "lastUpdateTime": { + "description": "The last time this condition was updated.", + "$ref": "#/definitions/v1.Time" + }, + "message": { + "description": "A human readable message indicating details about the transition.", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "reason": { + "description": "The reason for the condition's last transition.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" }, - "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewSpec" + "type": { + "description": "Type of deployment condition.", + "type": "string" + } + } + }, + "v1.DownwardAPIVolumeFile": { + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "required": [ + "path" + ], + "properties": { + "fieldRef": { + "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", + "$ref": "#/definitions/v1.ObjectFieldSelector" }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" + "mode": { + "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "path": { + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "type": "string" + }, + "resourceFieldRef": { + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", + "$ref": "#/definitions/v1.ResourceFieldSelector" } } }, - "v1beta1.SubjectAccessReviewSpec": { - "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "v1.PreferredSchedulingTerm": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "required": [ + "weight", + "preference" + ], "properties": { - "extra": { - "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } + "preference": { + "description": "A node selector term, associated with the corresponding weight.", + "$ref": "#/definitions/v1.NodeSelectorTerm" }, - "group": { - "description": "Groups is the groups you're testing for.", + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "v1.NodeSelectorTerm": { + "description": "A null or empty node selector term matches no objects.", + "required": [ + "matchExpressions" + ], + "properties": { + "matchExpressions": { + "description": "Required. A list of node selector requirements. The requirements are ANDed.", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1.NodeSelectorRequirement" } - }, - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/v1beta1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/v1beta1.ResourceAttributes" - }, - "user": { - "description": "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", - "type": "string" } } }, - "v1beta1.SubjectAccessReviewStatus": { - "description": "SubjectAccessReviewStatus", + "v1.LabelSelectorRequirement": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", "required": [ - "allowed" + "key", + "operator" ], "properties": { - "allowed": { - "description": "Allowed is required. True if the action would be allowed, false otherwise.", - "type": "boolean" - }, - "evaluationError": { - "description": "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.", + "key": { + "description": "key is the label key that the selector applies to.", "type": "string" }, - "reason": { - "description": "Reason is optional. It indicates why a request was allowed or denied.", + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist.", "type": "string" + }, + "values": { + "description": "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.", + "type": "array", + "items": { + "type": "string" + } } } }, - "v1beta1.SubresourceReference": { - "description": "SubresourceReference contains enough information to let you inspect or modify the referred subresource.", + "v1.GlusterfsVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "required": [ + "endpoints", + "path" + ], "properties": { - "apiVersion": { - "description": "API version of the referent", - "type": "string" - }, - "kind": { - "description": "Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "endpoints": { + "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", "type": "string" }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "path": { + "description": "Path is the Glusterfs volume path. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", "type": "string" }, - "subresource": { - "description": "Subresource name of the referent", - "type": "string" + "readOnly": { + "description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", + "type": "boolean" } } }, - "v1beta1.ThirdPartyResource": { - "description": "A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource types to the API. It consists of one or more Versions of the api.", + "apps.v1beta1.DeploymentList": { + "description": "DeploymentList is a list of Deployments.", + "required": [ + "items" + ], "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "description": { - "description": "Description is the description of this object.", - "type": "string" + "items": { + "description": "Items is the list of Deployments.", + "type": "array", + "items": { + "$ref": "#/definitions/apps.v1beta1.Deployment" + } }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "metadata": { - "description": "Standard object metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "versions": { - "description": "Versions are versions for this third party object", + "metadata": { + "description": "Standard list metadata.", + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "apps", + "Version": "v1beta1", + "Kind": "DeploymentList" + } + ] + }, + "v1beta1.SupplementalGroupsStrategyOptions": { + "description": "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.", + "properties": { + "ranges": { + "description": "Ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end.", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.APIVersion" + "$ref": "#/definitions/v1beta1.IDRange" } + }, + "rule": { + "description": "Rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.", + "type": "string" } } }, - "v1beta1.ThirdPartyResourceList": { - "description": "ThirdPartyResourceList is a list of ThirdPartyResources.", + "v1.ServiceList": { + "description": "ServiceList holds a list of services.", "required": [ "items" ], @@ -35339,10 +41865,10 @@ "type": "string" }, "items": { - "description": "Items is the list of ThirdPartyResources.", + "description": "List of services", "type": "array", "items": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" + "$ref": "#/definitions/v1.Service" } }, "kind": { @@ -35350,16 +41876,20 @@ "type": "string" }, "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/unversioned.ListMeta" + "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "$ref": "#/definitions/v1.ListMeta" } - } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "ServiceList" + } + ] }, - "v1beta1.TokenReview": { - "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", - "required": [ - "spec" - ], + "v1.Node": { + "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", @@ -35370,198 +41900,207 @@ "type": "string" }, "metadata": { + "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/v1beta1.TokenReviewSpec" + "description": "Spec defines the behavior of a node. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", + "$ref": "#/definitions/v1.NodeSpec" }, "status": { - "description": "Status is filled in by the server and indicates whether the request can be authenticated.", - "$ref": "#/definitions/v1beta1.TokenReviewStatus" + "description": "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", + "$ref": "#/definitions/v1.NodeStatus" } - } - }, - "v1beta1.TokenReviewSpec": { - "description": "TokenReviewSpec is a description of the token authentication request.", - "properties": { - "token": { - "description": "Token is the opaque bearer token.", - "type": "string" + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "", + "Version": "v1", + "Kind": "Node" } - } + ] }, - "v1beta1.TokenReviewStatus": { - "description": "TokenReviewStatus is the result of the token authentication request.", + "v1.Container": { + "description": "A single application container that you want to run within a pod.", + "required": [ + "name" + ], "properties": { - "authenticated": { - "description": "Authenticated indicates that the token was associated with a known user.", - "type": "boolean" + "args": { + "description": "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", + "type": "array", + "items": { + "type": "string" + } }, - "error": { - "description": "Error indicates that the token couldn't be checked", - "type": "string" + "command": { + "description": "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", + "type": "array", + "items": { + "type": "string" + } }, - "user": { - "description": "User is the UserInfo associated with the provided token.", - "$ref": "#/definitions/v1beta1.UserInfo" - } - } - }, - "v1beta1.UserInfo": { - "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", - "properties": { - "extra": { - "description": "Any additional information provided by the authenticator.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EnvVar" } }, - "groups": { - "description": "The names of groups this user is a part of.", + "envFrom": { + "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v1.EnvFromSource" } }, - "uid": { - "description": "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.", + "image": { + "description": "Docker image name. More info: http://kubernetes.io/docs/user-guide/images", "type": "string" }, - "username": { - "description": "The name that uniquely identifies this user among all active users.", + "imagePullPolicy": { + "description": "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", "type": "string" - } - } - }, - "v2alpha1.CronJob": { - "description": "CronJob represents the configuration of a single cron job.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + }, + "lifecycle": { + "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", + "$ref": "#/definitions/v1.Lifecycle" + }, + "livenessProbe": { + "description": "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", + "$ref": "#/definitions/v1.Probe" + }, + "name": { + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "ports": { + "description": "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.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ContainerPort" + } + }, + "readinessProbe": { + "description": "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", + "$ref": "#/definitions/v1.Probe" + }, + "resources": { + "description": "Compute Resources required by this container. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources", + "$ref": "#/definitions/v1.ResourceRequirements" + }, + "securityContext": { + "description": "Security options the pod should run with. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md", + "$ref": "#/definitions/v1.SecurityContext" + }, + "stdin": { + "description": "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.", + "type": "boolean" + }, + "stdinOnce": { + "description": "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", + "type": "boolean" + }, + "terminationMessagePath": { + "description": "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. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", "type": "string" }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", + "type": "string" }, - "spec": { - "description": "Spec is a structure defining the expected behavior of a job, including the schedule. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v2alpha1.CronJobSpec" + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": "boolean" }, - "status": { - "description": "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", - "$ref": "#/definitions/v2alpha1.CronJobStatus" + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.VolumeMount" + } + }, + "workingDir": { + "description": "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.", + "type": "string" } } }, - "v2alpha1.CronJobList": { - "description": "CronJobList is a collection of cron jobs.", + "v1.GitRepoVolumeSource": { + "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.", "required": [ - "items" + "repository" ], "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", + "directory": { + "description": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", "type": "string" }, - "items": { - "description": "Items is the list of CronJob.", - "type": "array", - "items": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "repository": { + "description": "Repository URL", "type": "string" }, - "metadata": { - "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/unversioned.ListMeta" + "revision": { + "description": "Commit hash for the specified revision.", + "type": "string" } } }, - "v2alpha1.CronJobSpec": { - "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", + "v2alpha1.PodsMetricSource": { + "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", "required": [ - "schedule", - "jobTemplate" + "metricName", + "targetAverageValue" ], "properties": { - "concurrencyPolicy": { - "description": "ConcurrencyPolicy specifies how to treat concurrent executions of a Job.", + "metricName": { + "description": "metricName is the name of the metric in question", "type": "string" }, - "jobTemplate": { - "description": "JobTemplate is the object that describes the job that will be created when executing a CronJob.", - "$ref": "#/definitions/v2alpha1.JobTemplateSpec" - }, - "schedule": { - "description": "Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", + "targetAverageValue": { + "description": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)", + "$ref": "#/definitions/resource.Quantity" + } + } + }, + "v1.EndpointPort": { + "description": "EndpointPort is a tuple that describes a single port.", + "required": [ + "port" + ], + "properties": { + "name": { + "description": "The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.", "type": "string" }, - "startingDeadlineSeconds": { - "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", + "port": { + "description": "The port number of the endpoint.", "type": "integer", - "format": "int64" + "format": "int32" }, - "suspend": { - "description": "Suspend flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", - "type": "boolean" + "protocol": { + "description": "The IP protocol for this port. Must be UDP or TCP. Default is TCP.", + "type": "string" } } }, - "v2alpha1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", + "v1beta1.FSGroupStrategyOptions": { + "description": "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.", "properties": { - "active": { - "description": "Active holds pointers to currently running jobs.", + "ranges": { + "description": "Ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end.", "type": "array", "items": { - "$ref": "#/definitions/v1.ObjectReference" + "$ref": "#/definitions/v1beta1.IDRange" } }, - "lastScheduleTime": { - "description": "LastScheduleTime keeps information of when was the last time the job was successfully scheduled.", - "$ref": "#/definitions/unversioned.Time" - } - } - }, - "v2alpha1.Job": { - "description": "Job represents the configuration of a single job.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "rule": { + "description": "Rule is the strategy that will dictate what FSGroup is used in the SecurityContext.", "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "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", - "$ref": "#/definitions/v2alpha1.JobSpec" - }, - "status": { - "description": "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", - "$ref": "#/definitions/v2alpha1.JobStatus" } } }, - "v2alpha1.JobCondition": { + "v1.JobCondition": { "description": "JobCondition describes current state of a job.", "required": [ "type", @@ -35570,11 +42109,11 @@ "properties": { "lastProbeTime": { "description": "Last time the condition was checked.", - "$ref": "#/definitions/unversioned.Time" + "$ref": "#/definitions/v1.Time" }, "lastTransitionTime": { "description": "Last time the condition transit from one status to another.", - "$ref": "#/definitions/unversioned.Time" + "$ref": "#/definitions/v1.Time" }, "message": { "description": "Human readable message indicating details about last transition.", @@ -35594,171 +42133,215 @@ } } }, - "v2alpha1.JobList": { - "description": "JobList is a collection of jobs.", - "required": [ - "items" - ], + "v1beta1.DaemonSetUpdateStrategy": { "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Job.", - "type": "array", - "items": { - "$ref": "#/definitions/v2alpha1.Job" - } + "rollingUpdate": { + "description": "Rolling update config params. Present only if type = \"RollingUpdate\".", + "$ref": "#/definitions/v1beta1.RollingUpdateDaemonSet" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", + "type": { + "description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete.", "type": "string" - }, - "metadata": { - "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/unversioned.ListMeta" } } }, - "v2alpha1.JobSpec": { - "description": "JobSpec describes how the job execution will look like.", + "v1beta1.PolicyRule": { + "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", "required": [ - "template" + "verbs" ], "properties": { - "activeDeadlineSeconds": { - "description": "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", - "type": "integer", - "format": "int64" - }, - "completions": { - "description": "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", - "type": "integer", - "format": "int32" + "apiGroups": { + "description": "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.", + "type": "array", + "items": { + "type": "string" + } }, - "manualSelector": { - "description": "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", - "type": "boolean" + "nonResourceURLs": { + "description": "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 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.", + "type": "array", + "items": { + "type": "string" + } }, - "parallelism": { - "description": "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", - "type": "integer", - "format": "int32" + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "type": "array", + "items": { + "type": "string" + } }, - "selector": { - "description": "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", - "$ref": "#/definitions/unversioned.LabelSelector" + "resources": { + "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", + "type": "array", + "items": { + "type": "string" + } }, - "template": { - "description": "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", - "$ref": "#/definitions/v1.PodTemplateSpec" + "verbs": { + "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", + "type": "array", + "items": { + "type": "string" + } } } }, - "v2alpha1.JobStatus": { - "description": "JobStatus represents the current state of a Job.", + "v1.NamespaceStatus": { + "description": "NamespaceStatus is information about the current status of a Namespace.", "properties": { - "active": { - "description": "Active is the number of actively running pods.", - "type": "integer", - "format": "int32" - }, - "completionTime": { - "description": "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.", - "$ref": "#/definitions/unversioned.Time" - }, - "conditions": { - "description": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs", + "phase": { + "description": "Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#phases", + "type": "string" + } + } + }, + "v1beta1.NetworkPolicySpec": { + "required": [ + "podSelector" + ], + "properties": { + "ingress": { + "description": "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.", "type": "array", "items": { - "$ref": "#/definitions/v2alpha1.JobCondition" + "$ref": "#/definitions/v1beta1.NetworkPolicyIngressRule" } }, - "failed": { - "description": "Failed is the number of pods which reached Phase Failed.", - "type": "integer", - "format": "int32" - }, - "startTime": { - "description": "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.", - "$ref": "#/definitions/unversioned.Time" - }, - "succeeded": { - "description": "Succeeded is the number of pods which reached Phase Succeeded.", - "type": "integer", - "format": "int32" + "podSelector": { + "description": "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.", + "$ref": "#/definitions/v1.LabelSelector" } } }, - "v2alpha1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", + "v1.PodAntiAffinity": { + "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", "properties": { - "metadata": { - "description": "Standard object's metadata of the jobs created from this template. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.WeightedPodAffinityTerm" + } }, - "spec": { - "description": "Specification of the desired behavior of the job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v2alpha1.JobSpec" + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.PodAffinityTerm" + } } } }, - "version.Info": { - "description": "Info contains versioning information. how we'll want to distribute that information.", + "v1alpha1.ClusterRoleBindingList": { + "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", "required": [ - "major", - "minor", - "gitVersion", - "gitCommit", - "gitTreeState", - "buildDate", - "goVersion", - "compiler", - "platform" + "items" ], "properties": { - "buildDate": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", "type": "string" }, - "compiler": { - "type": "string" + "items": { + "description": "Items is a list of ClusterRoleBindings", + "type": "array", + "items": { + "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" + } }, - "gitCommit": { + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", "type": "string" }, - "gitTreeState": { - "type": "string" + "metadata": { + "description": "Standard object's metadata.", + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "Group": "rbac.authorization.k8s.io", + "Version": "v1alpha1", + "Kind": "ClusterRoleBindingList" + } + ] + }, + "v1.EnvVarSource": { + "description": "EnvVarSource represents a source for the value of an EnvVar.", + "properties": { + "configMapKeyRef": { + "description": "Selects a key of a ConfigMap.", + "$ref": "#/definitions/v1.ConfigMapKeySelector" }, - "gitVersion": { - "type": "string" + "fieldRef": { + "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP.", + "$ref": "#/definitions/v1.ObjectFieldSelector" }, - "goVersion": { - "type": "string" + "resourceFieldRef": { + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", + "$ref": "#/definitions/v1.ResourceFieldSelector" }, - "major": { - "type": "string" + "secretKeyRef": { + "description": "Selects a key of a secret in the pod's namespace", + "$ref": "#/definitions/v1.SecretKeySelector" + } + } + }, + "v1beta1.HTTPIngressRuleValue": { + "description": "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", + "required": [ + "paths" + ], + "properties": { + "paths": { + "description": "A collection of paths that map requests to backends.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.HTTPIngressPath" + } + } + } + }, + "v2alpha1.PodsMetricStatus": { + "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", + "required": [ + "metricName", + "currentAverageValue" + ], + "properties": { + "currentAverageValue": { + "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)", + "$ref": "#/definitions/resource.Quantity" }, - "minor": { + "metricName": { + "description": "metricName is the name of the metric in question", + "type": "string" + } + } + }, + "v1.LoadBalancerIngress": { + "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", + "properties": { + "hostname": { + "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", "type": "string" }, - "platform": { + "ip": { + "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", "type": "string" } } }, - "versioned.Event": { - "description": "Event represents a single event to a watched resource.", - "required": [ - "type", - "object" - ], + "v1beta1.NetworkPolicyPort": { "properties": { - "object": { - "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *api.Status is recommended; other types may make sense\n depending on context.", - "$ref": "#/definitions/runtime.RawExtension" + "port": { + "description": "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.", + "$ref": "#/definitions/intstr.IntOrString" }, - "type": { + "protocol": { + "description": "Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP.", "type": "string" } } diff --git a/setup.py b/setup.py index eeea40c154..51baa23a98 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ # Do not edit these constants. They will be updated automatically # by scripts/update-client.sh. -CLIENT_VERSION = "1.0.0-snapshot" +CLIENT_VERSION = "2.0.0-snapshot" PACKAGE_NAME = "kubernetes" DEVELOPMENT_STATUS = "3 - Alpha"