diff --git a/README.md b/README.md index 4f366bf874..40f8a44e3f 100644 --- a/README.md +++ b/README.md @@ -146,9 +146,6 @@ Class | Method | HTTP request | Description *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_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 | -*AppsV1beta1Api* | [**watch_namespaced_stateful_set**](docs/AppsV1beta1Api.md#watch_namespaced_stateful_set) | **GET** /apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets/{name} | -*AppsV1beta1Api* | [**watch_namespaced_stateful_set_list**](docs/AppsV1beta1Api.md#watch_namespaced_stateful_set_list) | **GET** /apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets | -*AppsV1beta1Api* | [**watch_stateful_set_list_for_all_namespaces**](docs/AppsV1beta1Api.md#watch_stateful_set_list_for_all_namespaces) | **GET** /apis/apps/v1beta1/watch/statefulsets | *AuthenticationApi* | [**get_api_group**](docs/AuthenticationApi.md#get_api_group) | **GET** /apis/authentication.k8s.io/ | *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/ | @@ -170,9 +167,6 @@ 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 | -*AutoscalingV1Api* | [**watch_horizontal_pod_autoscaler_list_for_all_namespaces**](docs/AutoscalingV1Api.md#watch_horizontal_pod_autoscaler_list_for_all_namespaces) | **GET** /apis/autoscaling/v1/watch/horizontalpodautoscalers | -*AutoscalingV1Api* | [**watch_namespaced_horizontal_pod_autoscaler**](docs/AutoscalingV1Api.md#watch_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV1Api* | [**watch_namespaced_horizontal_pod_autoscaler_list**](docs/AutoscalingV1Api.md#watch_namespaced_horizontal_pod_autoscaler_list) | **GET** /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers | *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 | @@ -186,9 +180,6 @@ Class | Method | HTTP request | Description *BatchV1Api* | [**read_namespaced_job_status**](docs/BatchV1Api.md#read_namespaced_job_status) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | *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 | -*BatchV1Api* | [**watch_job_list_for_all_namespaces**](docs/BatchV1Api.md#watch_job_list_for_all_namespaces) | **GET** /apis/batch/v1/watch/jobs | -*BatchV1Api* | [**watch_namespaced_job**](docs/BatchV1Api.md#watch_namespaced_job) | **GET** /apis/batch/v1/watch/namespaces/{namespace}/jobs/{name} | -*BatchV1Api* | [**watch_namespaced_job_list**](docs/BatchV1Api.md#watch_namespaced_job_list) | **GET** /apis/batch/v1/watch/namespaces/{namespace}/jobs | *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 | @@ -223,15 +214,6 @@ Class | Method | HTTP request | Description *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 | -*BatchV2alpha1Api* | [**watch_cron_job_list_for_all_namespaces**](docs/BatchV2alpha1Api.md#watch_cron_job_list_for_all_namespaces) | **GET** /apis/batch/v2alpha1/watch/cronjobs | -*BatchV2alpha1Api* | [**watch_job_list_for_all_namespaces**](docs/BatchV2alpha1Api.md#watch_job_list_for_all_namespaces) | **GET** /apis/batch/v2alpha1/watch/jobs | -*BatchV2alpha1Api* | [**watch_namespaced_cron_job**](docs/BatchV2alpha1Api.md#watch_namespaced_cron_job) | **GET** /apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs/{name} | -*BatchV2alpha1Api* | [**watch_namespaced_cron_job_list**](docs/BatchV2alpha1Api.md#watch_namespaced_cron_job_list) | **GET** /apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs | -*BatchV2alpha1Api* | [**watch_namespaced_job**](docs/BatchV2alpha1Api.md#watch_namespaced_job) | **GET** /apis/batch/v2alpha1/watch/namespaces/{namespace}/jobs/{name} | -*BatchV2alpha1Api* | [**watch_namespaced_job_list**](docs/BatchV2alpha1Api.md#watch_namespaced_job_list) | **GET** /apis/batch/v2alpha1/watch/namespaces/{namespace}/jobs | -*BatchV2alpha1Api* | [**watch_namespaced_scheduled_job**](docs/BatchV2alpha1Api.md#watch_namespaced_scheduled_job) | **GET** /apis/batch/v2alpha1/watch/namespaces/{namespace}/scheduledjobs/{name} | -*BatchV2alpha1Api* | [**watch_namespaced_scheduled_job_list**](docs/BatchV2alpha1Api.md#watch_namespaced_scheduled_job_list) | **GET** /apis/batch/v2alpha1/watch/namespaces/{namespace}/scheduledjobs | -*BatchV2alpha1Api* | [**watch_scheduled_job_list_for_all_namespaces**](docs/BatchV2alpha1Api.md#watch_scheduled_job_list_for_all_namespaces) | **GET** /apis/batch/v2alpha1/watch/scheduledjobs | *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} | @@ -243,8 +225,6 @@ Class | Method | HTTP request | Description *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 | -*CertificatesV1alpha1Api* | [**watch_certificate_signing_request**](docs/CertificatesV1alpha1Api.md#watch_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests/{name} | -*CertificatesV1alpha1Api* | [**watch_certificate_signing_request_list**](docs/CertificatesV1alpha1Api.md#watch_certificate_signing_request_list) | **GET** /apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests | *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} | @@ -475,48 +455,6 @@ Class | Method | HTTP request | Description *CoreV1Api* | [**replace_node_status**](docs/CoreV1Api.md#replace_node_status) | **PUT** /api/v1/nodes/{name}/status | *CoreV1Api* | [**replace_persistent_volume**](docs/CoreV1Api.md#replace_persistent_volume) | **PUT** /api/v1/persistentvolumes/{name} | *CoreV1Api* | [**replace_persistent_volume_status**](docs/CoreV1Api.md#replace_persistent_volume_status) | **PUT** /api/v1/persistentvolumes/{name}/status | -*CoreV1Api* | [**watch_config_map_list_for_all_namespaces**](docs/CoreV1Api.md#watch_config_map_list_for_all_namespaces) | **GET** /api/v1/watch/configmaps | -*CoreV1Api* | [**watch_endpoints_list_for_all_namespaces**](docs/CoreV1Api.md#watch_endpoints_list_for_all_namespaces) | **GET** /api/v1/watch/endpoints | -*CoreV1Api* | [**watch_event_list_for_all_namespaces**](docs/CoreV1Api.md#watch_event_list_for_all_namespaces) | **GET** /api/v1/watch/events | -*CoreV1Api* | [**watch_limit_range_list_for_all_namespaces**](docs/CoreV1Api.md#watch_limit_range_list_for_all_namespaces) | **GET** /api/v1/watch/limitranges | -*CoreV1Api* | [**watch_namespace**](docs/CoreV1Api.md#watch_namespace) | **GET** /api/v1/watch/namespaces/{name} | -*CoreV1Api* | [**watch_namespace_list**](docs/CoreV1Api.md#watch_namespace_list) | **GET** /api/v1/watch/namespaces | -*CoreV1Api* | [**watch_namespaced_config_map**](docs/CoreV1Api.md#watch_namespaced_config_map) | **GET** /api/v1/watch/namespaces/{namespace}/configmaps/{name} | -*CoreV1Api* | [**watch_namespaced_config_map_list**](docs/CoreV1Api.md#watch_namespaced_config_map_list) | **GET** /api/v1/watch/namespaces/{namespace}/configmaps | -*CoreV1Api* | [**watch_namespaced_endpoints**](docs/CoreV1Api.md#watch_namespaced_endpoints) | **GET** /api/v1/watch/namespaces/{namespace}/endpoints/{name} | -*CoreV1Api* | [**watch_namespaced_endpoints_list**](docs/CoreV1Api.md#watch_namespaced_endpoints_list) | **GET** /api/v1/watch/namespaces/{namespace}/endpoints | -*CoreV1Api* | [**watch_namespaced_event**](docs/CoreV1Api.md#watch_namespaced_event) | **GET** /api/v1/watch/namespaces/{namespace}/events/{name} | -*CoreV1Api* | [**watch_namespaced_event_list**](docs/CoreV1Api.md#watch_namespaced_event_list) | **GET** /api/v1/watch/namespaces/{namespace}/events | -*CoreV1Api* | [**watch_namespaced_limit_range**](docs/CoreV1Api.md#watch_namespaced_limit_range) | **GET** /api/v1/watch/namespaces/{namespace}/limitranges/{name} | -*CoreV1Api* | [**watch_namespaced_limit_range_list**](docs/CoreV1Api.md#watch_namespaced_limit_range_list) | **GET** /api/v1/watch/namespaces/{namespace}/limitranges | -*CoreV1Api* | [**watch_namespaced_persistent_volume_claim**](docs/CoreV1Api.md#watch_namespaced_persistent_volume_claim) | **GET** /api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name} | -*CoreV1Api* | [**watch_namespaced_persistent_volume_claim_list**](docs/CoreV1Api.md#watch_namespaced_persistent_volume_claim_list) | **GET** /api/v1/watch/namespaces/{namespace}/persistentvolumeclaims | -*CoreV1Api* | [**watch_namespaced_pod**](docs/CoreV1Api.md#watch_namespaced_pod) | **GET** /api/v1/watch/namespaces/{namespace}/pods/{name} | -*CoreV1Api* | [**watch_namespaced_pod_list**](docs/CoreV1Api.md#watch_namespaced_pod_list) | **GET** /api/v1/watch/namespaces/{namespace}/pods | -*CoreV1Api* | [**watch_namespaced_pod_template**](docs/CoreV1Api.md#watch_namespaced_pod_template) | **GET** /api/v1/watch/namespaces/{namespace}/podtemplates/{name} | -*CoreV1Api* | [**watch_namespaced_pod_template_list**](docs/CoreV1Api.md#watch_namespaced_pod_template_list) | **GET** /api/v1/watch/namespaces/{namespace}/podtemplates | -*CoreV1Api* | [**watch_namespaced_replication_controller**](docs/CoreV1Api.md#watch_namespaced_replication_controller) | **GET** /api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name} | -*CoreV1Api* | [**watch_namespaced_replication_controller_list**](docs/CoreV1Api.md#watch_namespaced_replication_controller_list) | **GET** /api/v1/watch/namespaces/{namespace}/replicationcontrollers | -*CoreV1Api* | [**watch_namespaced_resource_quota**](docs/CoreV1Api.md#watch_namespaced_resource_quota) | **GET** /api/v1/watch/namespaces/{namespace}/resourcequotas/{name} | -*CoreV1Api* | [**watch_namespaced_resource_quota_list**](docs/CoreV1Api.md#watch_namespaced_resource_quota_list) | **GET** /api/v1/watch/namespaces/{namespace}/resourcequotas | -*CoreV1Api* | [**watch_namespaced_secret**](docs/CoreV1Api.md#watch_namespaced_secret) | **GET** /api/v1/watch/namespaces/{namespace}/secrets/{name} | -*CoreV1Api* | [**watch_namespaced_secret_list**](docs/CoreV1Api.md#watch_namespaced_secret_list) | **GET** /api/v1/watch/namespaces/{namespace}/secrets | -*CoreV1Api* | [**watch_namespaced_service**](docs/CoreV1Api.md#watch_namespaced_service) | **GET** /api/v1/watch/namespaces/{namespace}/services/{name} | -*CoreV1Api* | [**watch_namespaced_service_account**](docs/CoreV1Api.md#watch_namespaced_service_account) | **GET** /api/v1/watch/namespaces/{namespace}/serviceaccounts/{name} | -*CoreV1Api* | [**watch_namespaced_service_account_list**](docs/CoreV1Api.md#watch_namespaced_service_account_list) | **GET** /api/v1/watch/namespaces/{namespace}/serviceaccounts | -*CoreV1Api* | [**watch_namespaced_service_list**](docs/CoreV1Api.md#watch_namespaced_service_list) | **GET** /api/v1/watch/namespaces/{namespace}/services | -*CoreV1Api* | [**watch_node**](docs/CoreV1Api.md#watch_node) | **GET** /api/v1/watch/nodes/{name} | -*CoreV1Api* | [**watch_node_list**](docs/CoreV1Api.md#watch_node_list) | **GET** /api/v1/watch/nodes | -*CoreV1Api* | [**watch_persistent_volume**](docs/CoreV1Api.md#watch_persistent_volume) | **GET** /api/v1/watch/persistentvolumes/{name} | -*CoreV1Api* | [**watch_persistent_volume_claim_list_for_all_namespaces**](docs/CoreV1Api.md#watch_persistent_volume_claim_list_for_all_namespaces) | **GET** /api/v1/watch/persistentvolumeclaims | -*CoreV1Api* | [**watch_persistent_volume_list**](docs/CoreV1Api.md#watch_persistent_volume_list) | **GET** /api/v1/watch/persistentvolumes | -*CoreV1Api* | [**watch_pod_list_for_all_namespaces**](docs/CoreV1Api.md#watch_pod_list_for_all_namespaces) | **GET** /api/v1/watch/pods | -*CoreV1Api* | [**watch_pod_template_list_for_all_namespaces**](docs/CoreV1Api.md#watch_pod_template_list_for_all_namespaces) | **GET** /api/v1/watch/podtemplates | -*CoreV1Api* | [**watch_replication_controller_list_for_all_namespaces**](docs/CoreV1Api.md#watch_replication_controller_list_for_all_namespaces) | **GET** /api/v1/watch/replicationcontrollers | -*CoreV1Api* | [**watch_resource_quota_list_for_all_namespaces**](docs/CoreV1Api.md#watch_resource_quota_list_for_all_namespaces) | **GET** /api/v1/watch/resourcequotas | -*CoreV1Api* | [**watch_secret_list_for_all_namespaces**](docs/CoreV1Api.md#watch_secret_list_for_all_namespaces) | **GET** /api/v1/watch/secrets | -*CoreV1Api* | [**watch_service_account_list_for_all_namespaces**](docs/CoreV1Api.md#watch_service_account_list_for_all_namespaces) | **GET** /api/v1/watch/serviceaccounts | -*CoreV1Api* | [**watch_service_list_for_all_namespaces**](docs/CoreV1Api.md#watch_service_list_for_all_namespaces) | **GET** /api/v1/watch/services | *ExtensionsApi* | [**get_api_group**](docs/ExtensionsApi.md#get_api_group) | **GET** /apis/extensions/ | *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 | @@ -610,29 +548,6 @@ Class | Method | HTTP request | Description *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_third_party_resource**](docs/ExtensionsV1beta1Api.md#replace_third_party_resource) | **PUT** /apis/extensions/v1beta1/thirdpartyresources/{name} | -*ExtensionsV1beta1Api* | [**watch_daemon_set_list_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#watch_daemon_set_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/daemonsets | -*ExtensionsV1beta1Api* | [**watch_deployment_list_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#watch_deployment_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/deployments | -*ExtensionsV1beta1Api* | [**watch_horizontal_pod_autoscaler_list_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#watch_horizontal_pod_autoscaler_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/horizontalpodautoscalers | -*ExtensionsV1beta1Api* | [**watch_ingress_list_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#watch_ingress_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/ingresses | -*ExtensionsV1beta1Api* | [**watch_job_list_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#watch_job_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/jobs | -*ExtensionsV1beta1Api* | [**watch_namespaced_daemon_set**](docs/ExtensionsV1beta1Api.md#watch_namespaced_daemon_set) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name} | -*ExtensionsV1beta1Api* | [**watch_namespaced_daemon_set_list**](docs/ExtensionsV1beta1Api.md#watch_namespaced_daemon_set_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets | -*ExtensionsV1beta1Api* | [**watch_namespaced_deployment**](docs/ExtensionsV1beta1Api.md#watch_namespaced_deployment) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name} | -*ExtensionsV1beta1Api* | [**watch_namespaced_deployment_list**](docs/ExtensionsV1beta1Api.md#watch_namespaced_deployment_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments | -*ExtensionsV1beta1Api* | [**watch_namespaced_horizontal_pod_autoscaler**](docs/ExtensionsV1beta1Api.md#watch_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*ExtensionsV1beta1Api* | [**watch_namespaced_horizontal_pod_autoscaler_list**](docs/ExtensionsV1beta1Api.md#watch_namespaced_horizontal_pod_autoscaler_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers | -*ExtensionsV1beta1Api* | [**watch_namespaced_ingress**](docs/ExtensionsV1beta1Api.md#watch_namespaced_ingress) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name} | -*ExtensionsV1beta1Api* | [**watch_namespaced_ingress_list**](docs/ExtensionsV1beta1Api.md#watch_namespaced_ingress_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses | -*ExtensionsV1beta1Api* | [**watch_namespaced_job**](docs/ExtensionsV1beta1Api.md#watch_namespaced_job) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs/{name} | -*ExtensionsV1beta1Api* | [**watch_namespaced_job_list**](docs/ExtensionsV1beta1Api.md#watch_namespaced_job_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs | -*ExtensionsV1beta1Api* | [**watch_namespaced_network_policy**](docs/ExtensionsV1beta1Api.md#watch_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name} | -*ExtensionsV1beta1Api* | [**watch_namespaced_network_policy_list**](docs/ExtensionsV1beta1Api.md#watch_namespaced_network_policy_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies | -*ExtensionsV1beta1Api* | [**watch_namespaced_replica_set**](docs/ExtensionsV1beta1Api.md#watch_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name} | -*ExtensionsV1beta1Api* | [**watch_namespaced_replica_set_list**](docs/ExtensionsV1beta1Api.md#watch_namespaced_replica_set_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets | -*ExtensionsV1beta1Api* | [**watch_network_policy_list_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#watch_network_policy_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/networkpolicies | -*ExtensionsV1beta1Api* | [**watch_replica_set_list_for_all_namespaces**](docs/ExtensionsV1beta1Api.md#watch_replica_set_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/replicasets | -*ExtensionsV1beta1Api* | [**watch_third_party_resource**](docs/ExtensionsV1beta1Api.md#watch_third_party_resource) | **GET** /apis/extensions/v1beta1/watch/thirdpartyresources/{name} | -*ExtensionsV1beta1Api* | [**watch_third_party_resource_list**](docs/ExtensionsV1beta1Api.md#watch_third_party_resource_list) | **GET** /apis/extensions/v1beta1/watch/thirdpartyresources | *LogsApi* | [**log_file_handler**](docs/LogsApi.md#log_file_handler) | **GET** /logs/{logpath} | *LogsApi* | [**log_file_list_handler**](docs/LogsApi.md#log_file_list_handler) | **GET** /logs/ | *PolicyApi* | [**get_api_group**](docs/PolicyApi.md#get_api_group) | **GET** /apis/policy/ | @@ -648,9 +563,6 @@ Class | Method | HTTP request | Description *PolicyV1beta1Api* | [**read_namespaced_pod_disruption_budget_status**](docs/PolicyV1beta1Api.md#read_namespaced_pod_disruption_budget_status) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | *PolicyV1beta1Api* | [**replace_namespaced_pod_disruption_budget**](docs/PolicyV1beta1Api.md#replace_namespaced_pod_disruption_budget) | **PUT** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | *PolicyV1beta1Api* | [**replace_namespaced_pod_disruption_budget_status**](docs/PolicyV1beta1Api.md#replace_namespaced_pod_disruption_budget_status) | **PUT** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -*PolicyV1beta1Api* | [**watch_namespaced_pod_disruption_budget**](docs/PolicyV1beta1Api.md#watch_namespaced_pod_disruption_budget) | **GET** /apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name} | -*PolicyV1beta1Api* | [**watch_namespaced_pod_disruption_budget_list**](docs/PolicyV1beta1Api.md#watch_namespaced_pod_disruption_budget_list) | **GET** /apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets | -*PolicyV1beta1Api* | [**watch_pod_disruption_budget_list_for_all_namespaces**](docs/PolicyV1beta1Api.md#watch_pod_disruption_budget_list_for_all_namespaces) | **GET** /apis/policy/v1beta1/watch/poddisruptionbudgets | *RbacAuthorizationApi* | [**get_api_group**](docs/RbacAuthorizationApi.md#get_api_group) | **GET** /apis/rbac.authorization.k8s.io/ | *RbacAuthorizationV1alpha1Api* | [**create_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#create_cluster_role) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | *RbacAuthorizationV1alpha1Api* | [**create_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#create_cluster_role_binding) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | @@ -683,16 +595,6 @@ 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} | -*RbacAuthorizationV1alpha1Api* | [**watch_cluster_role**](docs/RbacAuthorizationV1alpha1Api.md#watch_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name} | -*RbacAuthorizationV1alpha1Api* | [**watch_cluster_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#watch_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name} | -*RbacAuthorizationV1alpha1Api* | [**watch_cluster_role_binding_list**](docs/RbacAuthorizationV1alpha1Api.md#watch_cluster_role_binding_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings | -*RbacAuthorizationV1alpha1Api* | [**watch_cluster_role_list**](docs/RbacAuthorizationV1alpha1Api.md#watch_cluster_role_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles | -*RbacAuthorizationV1alpha1Api* | [**watch_namespaced_role**](docs/RbacAuthorizationV1alpha1Api.md#watch_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles/{name} | -*RbacAuthorizationV1alpha1Api* | [**watch_namespaced_role_binding**](docs/RbacAuthorizationV1alpha1Api.md#watch_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name} | -*RbacAuthorizationV1alpha1Api* | [**watch_namespaced_role_binding_list**](docs/RbacAuthorizationV1alpha1Api.md#watch_namespaced_role_binding_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings | -*RbacAuthorizationV1alpha1Api* | [**watch_namespaced_role_list**](docs/RbacAuthorizationV1alpha1Api.md#watch_namespaced_role_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles | -*RbacAuthorizationV1alpha1Api* | [**watch_role_binding_list_for_all_namespaces**](docs/RbacAuthorizationV1alpha1Api.md#watch_role_binding_list_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/rolebindings | -*RbacAuthorizationV1alpha1Api* | [**watch_role_list_for_all_namespaces**](docs/RbacAuthorizationV1alpha1Api.md#watch_role_list_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/roles | *StorageApi* | [**get_api_group**](docs/StorageApi.md#get_api_group) | **GET** /apis/storage.k8s.io/ | *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 | @@ -702,8 +604,6 @@ Class | Method | HTTP request | Description *StorageV1beta1Api* | [**patch_storage_class**](docs/StorageV1beta1Api.md#patch_storage_class) | **PATCH** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | *StorageV1beta1Api* | [**read_storage_class**](docs/StorageV1beta1Api.md#read_storage_class) | **GET** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | *StorageV1beta1Api* | [**replace_storage_class**](docs/StorageV1beta1Api.md#replace_storage_class) | **PUT** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | -*StorageV1beta1Api* | [**watch_storage_class**](docs/StorageV1beta1Api.md#watch_storage_class) | **GET** /apis/storage.k8s.io/v1beta1/watch/storageclasses/{name} | -*StorageV1beta1Api* | [**watch_storage_class_list**](docs/StorageV1beta1Api.md#watch_storage_class_list) | **GET** /apis/storage.k8s.io/v1beta1/watch/storageclasses | *VersionApi* | [**get_code**](docs/VersionApi.md#get_code) | **GET** /version/ | diff --git a/docs/AppsV1beta1Api.md b/docs/AppsV1beta1Api.md index 73757f04f7..ebd053b505 100644 --- a/docs/AppsV1beta1Api.md +++ b/docs/AppsV1beta1Api.md @@ -16,9 +16,6 @@ Method | HTTP request | Description [**read_namespaced_stateful_set_status**](AppsV1beta1Api.md#read_namespaced_stateful_set_status) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | [**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 | -[**watch_namespaced_stateful_set**](AppsV1beta1Api.md#watch_namespaced_stateful_set) | **GET** /apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets/{name} | -[**watch_namespaced_stateful_set_list**](AppsV1beta1Api.md#watch_namespaced_stateful_set_list) | **GET** /apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets | -[**watch_stateful_set_list_for_all_namespaces**](AppsV1beta1Api.md#watch_stateful_set_list_for_all_namespaces) | **GET** /apis/apps/v1beta1/watch/statefulsets | # **create_namespaced_stateful_set** @@ -725,195 +722,3 @@ 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) -# **watch_namespaced_stateful_set** -> VersionedEvent watch_namespaced_stateful_set(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind StatefulSet - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.AppsV1beta1Api() -name = 'name_example' # str | name of the StatefulSet -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_stateful_set(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->watch_namespaced_stateful_set: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the StatefulSet | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_stateful_set_list** -> VersionedEvent watch_namespaced_stateful_set_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of StatefulSet - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.AppsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_stateful_set_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->watch_namespaced_stateful_set_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_stateful_set_list_for_all_namespaces** -> VersionedEvent watch_stateful_set_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of StatefulSet - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.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. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_stateful_set_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->watch_stateful_set_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/AutoscalingV1Api.md b/docs/AutoscalingV1Api.md index 27be64c0bf..13b4e2a121 100644 --- a/docs/AutoscalingV1Api.md +++ b/docs/AutoscalingV1Api.md @@ -16,9 +16,6 @@ Method | HTTP request | Description [**read_namespaced_horizontal_pod_autoscaler_status**](AutoscalingV1Api.md#read_namespaced_horizontal_pod_autoscaler_status) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | [**replace_namespaced_horizontal_pod_autoscaler**](AutoscalingV1Api.md#replace_namespaced_horizontal_pod_autoscaler) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | [**replace_namespaced_horizontal_pod_autoscaler_status**](AutoscalingV1Api.md#replace_namespaced_horizontal_pod_autoscaler_status) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -[**watch_horizontal_pod_autoscaler_list_for_all_namespaces**](AutoscalingV1Api.md#watch_horizontal_pod_autoscaler_list_for_all_namespaces) | **GET** /apis/autoscaling/v1/watch/horizontalpodautoscalers | -[**watch_namespaced_horizontal_pod_autoscaler**](AutoscalingV1Api.md#watch_namespaced_horizontal_pod_autoscaler) | **GET** /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**watch_namespaced_horizontal_pod_autoscaler_list**](AutoscalingV1Api.md#watch_namespaced_horizontal_pod_autoscaler_list) | **GET** /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers | # **create_namespaced_horizontal_pod_autoscaler** @@ -725,195 +722,3 @@ 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) -# **watch_horizontal_pod_autoscaler_list_for_all_namespaces** -> VersionedEvent watch_horizontal_pod_autoscaler_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.AutoscalingV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_horizontal_pod_autoscaler_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->watch_horizontal_pod_autoscaler_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_horizontal_pod_autoscaler** -> VersionedEvent watch_namespaced_horizontal_pod_autoscaler(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.AutoscalingV1Api() -name = 'name_example' # str | name of the HorizontalPodAutoscaler -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_horizontal_pod_autoscaler(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->watch_namespaced_horizontal_pod_autoscaler: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the HorizontalPodAutoscaler | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_horizontal_pod_autoscaler_list** -> VersionedEvent watch_namespaced_horizontal_pod_autoscaler_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.AutoscalingV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_horizontal_pod_autoscaler_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->watch_namespaced_horizontal_pod_autoscaler_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/BatchV1Api.md b/docs/BatchV1Api.md index f2a7e1106f..20b438259a 100644 --- a/docs/BatchV1Api.md +++ b/docs/BatchV1Api.md @@ -16,9 +16,6 @@ Method | HTTP request | Description [**read_namespaced_job_status**](BatchV1Api.md#read_namespaced_job_status) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | [**replace_namespaced_job**](BatchV1Api.md#replace_namespaced_job) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | [**replace_namespaced_job_status**](BatchV1Api.md#replace_namespaced_job_status) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | -[**watch_job_list_for_all_namespaces**](BatchV1Api.md#watch_job_list_for_all_namespaces) | **GET** /apis/batch/v1/watch/jobs | -[**watch_namespaced_job**](BatchV1Api.md#watch_namespaced_job) | **GET** /apis/batch/v1/watch/namespaces/{namespace}/jobs/{name} | -[**watch_namespaced_job_list**](BatchV1Api.md#watch_namespaced_job_list) | **GET** /apis/batch/v1/watch/namespaces/{namespace}/jobs | # **create_namespaced_job** @@ -725,195 +722,3 @@ 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) -# **watch_job_list_for_all_namespaces** -> VersionedEvent watch_job_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Job - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.BatchV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_job_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->watch_job_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_job** -> VersionedEvent watch_namespaced_job(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind Job - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.BatchV1Api() -name = 'name_example' # str | name of the Job -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_job(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->watch_namespaced_job: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Job | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_job_list** -> VersionedEvent watch_namespaced_job_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Job - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.BatchV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_job_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->watch_namespaced_job_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/BatchV2alpha1Api.md b/docs/BatchV2alpha1Api.md index 026ec993e8..28a92d3063 100644 --- a/docs/BatchV2alpha1Api.md +++ b/docs/BatchV2alpha1Api.md @@ -38,15 +38,6 @@ Method | HTTP request | Description [**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 | -[**watch_cron_job_list_for_all_namespaces**](BatchV2alpha1Api.md#watch_cron_job_list_for_all_namespaces) | **GET** /apis/batch/v2alpha1/watch/cronjobs | -[**watch_job_list_for_all_namespaces**](BatchV2alpha1Api.md#watch_job_list_for_all_namespaces) | **GET** /apis/batch/v2alpha1/watch/jobs | -[**watch_namespaced_cron_job**](BatchV2alpha1Api.md#watch_namespaced_cron_job) | **GET** /apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs/{name} | -[**watch_namespaced_cron_job_list**](BatchV2alpha1Api.md#watch_namespaced_cron_job_list) | **GET** /apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs | -[**watch_namespaced_job**](BatchV2alpha1Api.md#watch_namespaced_job) | **GET** /apis/batch/v2alpha1/watch/namespaces/{namespace}/jobs/{name} | -[**watch_namespaced_job_list**](BatchV2alpha1Api.md#watch_namespaced_job_list) | **GET** /apis/batch/v2alpha1/watch/namespaces/{namespace}/jobs | -[**watch_namespaced_scheduled_job**](BatchV2alpha1Api.md#watch_namespaced_scheduled_job) | **GET** /apis/batch/v2alpha1/watch/namespaces/{namespace}/scheduledjobs/{name} | -[**watch_namespaced_scheduled_job_list**](BatchV2alpha1Api.md#watch_namespaced_scheduled_job_list) | **GET** /apis/batch/v2alpha1/watch/namespaces/{namespace}/scheduledjobs | -[**watch_scheduled_job_list_for_all_namespaces**](BatchV2alpha1Api.md#watch_scheduled_job_list_for_all_namespaces) | **GET** /apis/batch/v2alpha1/watch/scheduledjobs | # **create_namespaced_cron_job** @@ -2065,579 +2056,3 @@ 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) -# **watch_cron_job_list_for_all_namespaces** -> VersionedEvent watch_cron_job_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of CronJob - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.BatchV2alpha1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_cron_job_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->watch_cron_job_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_job_list_for_all_namespaces** -> VersionedEvent watch_job_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Job - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.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.watch_job_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->watch_job_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_cron_job** -> VersionedEvent watch_namespaced_cron_job(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind CronJob - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.BatchV2alpha1Api() -name = 'name_example' # str | name of the CronJob -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_cron_job(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->watch_namespaced_cron_job: %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 | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_cron_job_list** -> VersionedEvent watch_namespaced_cron_job_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of CronJob - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.BatchV2alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_cron_job_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->watch_namespaced_cron_job_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_job** -> VersionedEvent watch_namespaced_job(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind Job - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.BatchV2alpha1Api() -name = 'name_example' # str | name of the Job -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_job(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->watch_namespaced_job: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Job | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_job_list** -> VersionedEvent watch_namespaced_job_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Job - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.BatchV2alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_job_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->watch_namespaced_job_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_scheduled_job** -> VersionedEvent watch_namespaced_scheduled_job(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind ScheduledJob - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.BatchV2alpha1Api() -name = 'name_example' # str | name of the ScheduledJob -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_scheduled_job(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->watch_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 | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_scheduled_job_list** -> VersionedEvent watch_namespaced_scheduled_job_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ScheduledJob - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.BatchV2alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_scheduled_job_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->watch_namespaced_scheduled_job_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_scheduled_job_list_for_all_namespaces** -> VersionedEvent watch_scheduled_job_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ScheduledJob - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.BatchV2alpha1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_scheduled_job_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->watch_scheduled_job_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/CertificatesV1alpha1Api.md b/docs/CertificatesV1alpha1Api.md index 3b8057334f..6c7c1f22ab 100644 --- a/docs/CertificatesV1alpha1Api.md +++ b/docs/CertificatesV1alpha1Api.md @@ -14,8 +14,6 @@ Method | HTTP request | Description [**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 | -[**watch_certificate_signing_request**](CertificatesV1alpha1Api.md#watch_certificate_signing_request) | **GET** /apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests/{name} | -[**watch_certificate_signing_request_list**](CertificatesV1alpha1Api.md#watch_certificate_signing_request_list) | **GET** /apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests | # **create_certificate_signing_request** @@ -586,129 +584,3 @@ 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) -# **watch_certificate_signing_request** -> VersionedEvent watch_certificate_signing_request(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind CertificateSigningRequest - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CertificatesV1alpha1Api() -name = 'name_example' # str | name of the CertificateSigningRequest -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_certificate_signing_request(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1alpha1Api->watch_certificate_signing_request: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the CertificateSigningRequest | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_certificate_signing_request_list** -> VersionedEvent watch_certificate_signing_request_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of CertificateSigningRequest - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CertificatesV1alpha1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_certificate_signing_request_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1alpha1Api->watch_certificate_signing_request_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/CoreV1Api.md b/docs/CoreV1Api.md index 127d93ea7d..da55ecaab0 100644 --- a/docs/CoreV1Api.md +++ b/docs/CoreV1Api.md @@ -233,48 +233,6 @@ Method | HTTP request | Description [**replace_node_status**](CoreV1Api.md#replace_node_status) | **PUT** /api/v1/nodes/{name}/status | [**replace_persistent_volume**](CoreV1Api.md#replace_persistent_volume) | **PUT** /api/v1/persistentvolumes/{name} | [**replace_persistent_volume_status**](CoreV1Api.md#replace_persistent_volume_status) | **PUT** /api/v1/persistentvolumes/{name}/status | -[**watch_config_map_list_for_all_namespaces**](CoreV1Api.md#watch_config_map_list_for_all_namespaces) | **GET** /api/v1/watch/configmaps | -[**watch_endpoints_list_for_all_namespaces**](CoreV1Api.md#watch_endpoints_list_for_all_namespaces) | **GET** /api/v1/watch/endpoints | -[**watch_event_list_for_all_namespaces**](CoreV1Api.md#watch_event_list_for_all_namespaces) | **GET** /api/v1/watch/events | -[**watch_limit_range_list_for_all_namespaces**](CoreV1Api.md#watch_limit_range_list_for_all_namespaces) | **GET** /api/v1/watch/limitranges | -[**watch_namespace**](CoreV1Api.md#watch_namespace) | **GET** /api/v1/watch/namespaces/{name} | -[**watch_namespace_list**](CoreV1Api.md#watch_namespace_list) | **GET** /api/v1/watch/namespaces | -[**watch_namespaced_config_map**](CoreV1Api.md#watch_namespaced_config_map) | **GET** /api/v1/watch/namespaces/{namespace}/configmaps/{name} | -[**watch_namespaced_config_map_list**](CoreV1Api.md#watch_namespaced_config_map_list) | **GET** /api/v1/watch/namespaces/{namespace}/configmaps | -[**watch_namespaced_endpoints**](CoreV1Api.md#watch_namespaced_endpoints) | **GET** /api/v1/watch/namespaces/{namespace}/endpoints/{name} | -[**watch_namespaced_endpoints_list**](CoreV1Api.md#watch_namespaced_endpoints_list) | **GET** /api/v1/watch/namespaces/{namespace}/endpoints | -[**watch_namespaced_event**](CoreV1Api.md#watch_namespaced_event) | **GET** /api/v1/watch/namespaces/{namespace}/events/{name} | -[**watch_namespaced_event_list**](CoreV1Api.md#watch_namespaced_event_list) | **GET** /api/v1/watch/namespaces/{namespace}/events | -[**watch_namespaced_limit_range**](CoreV1Api.md#watch_namespaced_limit_range) | **GET** /api/v1/watch/namespaces/{namespace}/limitranges/{name} | -[**watch_namespaced_limit_range_list**](CoreV1Api.md#watch_namespaced_limit_range_list) | **GET** /api/v1/watch/namespaces/{namespace}/limitranges | -[**watch_namespaced_persistent_volume_claim**](CoreV1Api.md#watch_namespaced_persistent_volume_claim) | **GET** /api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name} | -[**watch_namespaced_persistent_volume_claim_list**](CoreV1Api.md#watch_namespaced_persistent_volume_claim_list) | **GET** /api/v1/watch/namespaces/{namespace}/persistentvolumeclaims | -[**watch_namespaced_pod**](CoreV1Api.md#watch_namespaced_pod) | **GET** /api/v1/watch/namespaces/{namespace}/pods/{name} | -[**watch_namespaced_pod_list**](CoreV1Api.md#watch_namespaced_pod_list) | **GET** /api/v1/watch/namespaces/{namespace}/pods | -[**watch_namespaced_pod_template**](CoreV1Api.md#watch_namespaced_pod_template) | **GET** /api/v1/watch/namespaces/{namespace}/podtemplates/{name} | -[**watch_namespaced_pod_template_list**](CoreV1Api.md#watch_namespaced_pod_template_list) | **GET** /api/v1/watch/namespaces/{namespace}/podtemplates | -[**watch_namespaced_replication_controller**](CoreV1Api.md#watch_namespaced_replication_controller) | **GET** /api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name} | -[**watch_namespaced_replication_controller_list**](CoreV1Api.md#watch_namespaced_replication_controller_list) | **GET** /api/v1/watch/namespaces/{namespace}/replicationcontrollers | -[**watch_namespaced_resource_quota**](CoreV1Api.md#watch_namespaced_resource_quota) | **GET** /api/v1/watch/namespaces/{namespace}/resourcequotas/{name} | -[**watch_namespaced_resource_quota_list**](CoreV1Api.md#watch_namespaced_resource_quota_list) | **GET** /api/v1/watch/namespaces/{namespace}/resourcequotas | -[**watch_namespaced_secret**](CoreV1Api.md#watch_namespaced_secret) | **GET** /api/v1/watch/namespaces/{namespace}/secrets/{name} | -[**watch_namespaced_secret_list**](CoreV1Api.md#watch_namespaced_secret_list) | **GET** /api/v1/watch/namespaces/{namespace}/secrets | -[**watch_namespaced_service**](CoreV1Api.md#watch_namespaced_service) | **GET** /api/v1/watch/namespaces/{namespace}/services/{name} | -[**watch_namespaced_service_account**](CoreV1Api.md#watch_namespaced_service_account) | **GET** /api/v1/watch/namespaces/{namespace}/serviceaccounts/{name} | -[**watch_namespaced_service_account_list**](CoreV1Api.md#watch_namespaced_service_account_list) | **GET** /api/v1/watch/namespaces/{namespace}/serviceaccounts | -[**watch_namespaced_service_list**](CoreV1Api.md#watch_namespaced_service_list) | **GET** /api/v1/watch/namespaces/{namespace}/services | -[**watch_node**](CoreV1Api.md#watch_node) | **GET** /api/v1/watch/nodes/{name} | -[**watch_node_list**](CoreV1Api.md#watch_node_list) | **GET** /api/v1/watch/nodes | -[**watch_persistent_volume**](CoreV1Api.md#watch_persistent_volume) | **GET** /api/v1/watch/persistentvolumes/{name} | -[**watch_persistent_volume_claim_list_for_all_namespaces**](CoreV1Api.md#watch_persistent_volume_claim_list_for_all_namespaces) | **GET** /api/v1/watch/persistentvolumeclaims | -[**watch_persistent_volume_list**](CoreV1Api.md#watch_persistent_volume_list) | **GET** /api/v1/watch/persistentvolumes | -[**watch_pod_list_for_all_namespaces**](CoreV1Api.md#watch_pod_list_for_all_namespaces) | **GET** /api/v1/watch/pods | -[**watch_pod_template_list_for_all_namespaces**](CoreV1Api.md#watch_pod_template_list_for_all_namespaces) | **GET** /api/v1/watch/podtemplates | -[**watch_replication_controller_list_for_all_namespaces**](CoreV1Api.md#watch_replication_controller_list_for_all_namespaces) | **GET** /api/v1/watch/replicationcontrollers | -[**watch_resource_quota_list_for_all_namespaces**](CoreV1Api.md#watch_resource_quota_list_for_all_namespaces) | **GET** /api/v1/watch/resourcequotas | -[**watch_secret_list_for_all_namespaces**](CoreV1Api.md#watch_secret_list_for_all_namespaces) | **GET** /api/v1/watch/secrets | -[**watch_service_account_list_for_all_namespaces**](CoreV1Api.md#watch_service_account_list_for_all_namespaces) | **GET** /api/v1/watch/serviceaccounts | -[**watch_service_list_for_all_namespaces**](CoreV1Api.md#watch_service_list_for_all_namespaces) | **GET** /api/v1/watch/services | # **connect_delete_namespaced_pod_proxy** @@ -13585,2685 +13543,3 @@ 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) -# **watch_config_map_list_for_all_namespaces** -> VersionedEvent watch_config_map_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ConfigMap - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_config_map_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_config_map_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_endpoints_list_for_all_namespaces** -> VersionedEvent watch_endpoints_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Endpoints - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_endpoints_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_endpoints_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_event_list_for_all_namespaces** -> VersionedEvent watch_event_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Event - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_event_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_event_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_limit_range_list_for_all_namespaces** -> VersionedEvent watch_limit_range_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of LimitRange - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_limit_range_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_limit_range_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespace** -> VersionedEvent watch_namespace(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind Namespace - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the Namespace -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespace(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespace: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Namespace | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespace_list** -> VersionedEvent watch_namespace_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Namespace - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespace_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespace_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_config_map** -> VersionedEvent watch_namespaced_config_map(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind ConfigMap - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the ConfigMap -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_config_map(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_config_map: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ConfigMap | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_config_map_list** -> VersionedEvent watch_namespaced_config_map_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ConfigMap - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_config_map_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_config_map_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_endpoints** -> VersionedEvent watch_namespaced_endpoints(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind Endpoints - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the Endpoints -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_endpoints(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_endpoints: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Endpoints | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_endpoints_list** -> VersionedEvent watch_namespaced_endpoints_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Endpoints - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_endpoints_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_endpoints_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_event** -> VersionedEvent watch_namespaced_event(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind Event - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the Event -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_event(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_event: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Event | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_event_list** -> VersionedEvent watch_namespaced_event_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Event - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_event_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_event_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_limit_range** -> VersionedEvent watch_namespaced_limit_range(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind LimitRange - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the LimitRange -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_limit_range(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_limit_range: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the LimitRange | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_limit_range_list** -> VersionedEvent watch_namespaced_limit_range_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of LimitRange - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_limit_range_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_limit_range_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_persistent_volume_claim** -> VersionedEvent watch_namespaced_persistent_volume_claim(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind PersistentVolumeClaim - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the PersistentVolumeClaim -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_persistent_volume_claim(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_persistent_volume_claim: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PersistentVolumeClaim | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_persistent_volume_claim_list** -> VersionedEvent watch_namespaced_persistent_volume_claim_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of PersistentVolumeClaim - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_persistent_volume_claim_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_persistent_volume_claim_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_pod** -> VersionedEvent watch_namespaced_pod(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind Pod - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the Pod -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_pod(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_pod: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Pod | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_pod_list** -> VersionedEvent watch_namespaced_pod_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Pod - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_pod_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_pod_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_pod_template** -> VersionedEvent watch_namespaced_pod_template(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind PodTemplate - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the PodTemplate -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_pod_template(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_pod_template: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PodTemplate | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_pod_template_list** -> VersionedEvent watch_namespaced_pod_template_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of PodTemplate - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_pod_template_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_pod_template_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_replication_controller** -> VersionedEvent watch_namespaced_replication_controller(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind ReplicationController - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the ReplicationController -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_replication_controller(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_replication_controller: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ReplicationController | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_replication_controller_list** -> VersionedEvent watch_namespaced_replication_controller_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ReplicationController - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_replication_controller_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_replication_controller_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_resource_quota** -> VersionedEvent watch_namespaced_resource_quota(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind ResourceQuota - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the ResourceQuota -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_resource_quota(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_resource_quota: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ResourceQuota | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_resource_quota_list** -> VersionedEvent watch_namespaced_resource_quota_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ResourceQuota - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_resource_quota_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_resource_quota_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_secret** -> VersionedEvent watch_namespaced_secret(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind Secret - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the Secret -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_secret(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_secret: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Secret | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_secret_list** -> VersionedEvent watch_namespaced_secret_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Secret - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_secret_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_secret_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_service** -> VersionedEvent watch_namespaced_service(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind Service - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the Service -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_service(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_service: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Service | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_service_account** -> VersionedEvent watch_namespaced_service_account(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind ServiceAccount - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the ServiceAccount -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_service_account(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_service_account: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ServiceAccount | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_service_account_list** -> VersionedEvent watch_namespaced_service_account_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ServiceAccount - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_service_account_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_service_account_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_service_list** -> VersionedEvent watch_namespaced_service_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Service - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_service_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_namespaced_service_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_node** -> VersionedEvent watch_node(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind Node - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the Node -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_node(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_node: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Node | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_node_list** -> VersionedEvent watch_node_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Node - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_node_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_node_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_persistent_volume** -> VersionedEvent watch_persistent_volume(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind PersistentVolume - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -name = 'name_example' # str | name of the PersistentVolume -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_persistent_volume(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_persistent_volume: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PersistentVolume | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_persistent_volume_claim_list_for_all_namespaces** -> VersionedEvent watch_persistent_volume_claim_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of PersistentVolumeClaim - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_persistent_volume_claim_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_persistent_volume_claim_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_persistent_volume_list** -> VersionedEvent watch_persistent_volume_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of PersistentVolume - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_persistent_volume_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_persistent_volume_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_pod_list_for_all_namespaces** -> VersionedEvent watch_pod_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Pod - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_pod_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_pod_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_pod_template_list_for_all_namespaces** -> VersionedEvent watch_pod_template_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of PodTemplate - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_pod_template_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_pod_template_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_replication_controller_list_for_all_namespaces** -> VersionedEvent watch_replication_controller_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ReplicationController - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_replication_controller_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_replication_controller_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_resource_quota_list_for_all_namespaces** -> VersionedEvent watch_resource_quota_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ResourceQuota - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_resource_quota_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_resource_quota_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_secret_list_for_all_namespaces** -> VersionedEvent watch_secret_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Secret - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_secret_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_secret_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_service_account_list_for_all_namespaces** -> VersionedEvent watch_service_account_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ServiceAccount - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_service_account_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_service_account_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_service_list_for_all_namespaces** -> VersionedEvent watch_service_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Service - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.CoreV1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_service_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->watch_service_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/ExtensionsV1beta1Api.md b/docs/ExtensionsV1beta1Api.md index 92584c7227..510f00cd0a 100644 --- a/docs/ExtensionsV1beta1Api.md +++ b/docs/ExtensionsV1beta1Api.md @@ -96,29 +96,6 @@ Method | HTTP request | Description [**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_third_party_resource**](ExtensionsV1beta1Api.md#replace_third_party_resource) | **PUT** /apis/extensions/v1beta1/thirdpartyresources/{name} | -[**watch_daemon_set_list_for_all_namespaces**](ExtensionsV1beta1Api.md#watch_daemon_set_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/daemonsets | -[**watch_deployment_list_for_all_namespaces**](ExtensionsV1beta1Api.md#watch_deployment_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/deployments | -[**watch_horizontal_pod_autoscaler_list_for_all_namespaces**](ExtensionsV1beta1Api.md#watch_horizontal_pod_autoscaler_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/horizontalpodautoscalers | -[**watch_ingress_list_for_all_namespaces**](ExtensionsV1beta1Api.md#watch_ingress_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/ingresses | -[**watch_job_list_for_all_namespaces**](ExtensionsV1beta1Api.md#watch_job_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/jobs | -[**watch_namespaced_daemon_set**](ExtensionsV1beta1Api.md#watch_namespaced_daemon_set) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name} | -[**watch_namespaced_daemon_set_list**](ExtensionsV1beta1Api.md#watch_namespaced_daemon_set_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets | -[**watch_namespaced_deployment**](ExtensionsV1beta1Api.md#watch_namespaced_deployment) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name} | -[**watch_namespaced_deployment_list**](ExtensionsV1beta1Api.md#watch_namespaced_deployment_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments | -[**watch_namespaced_horizontal_pod_autoscaler**](ExtensionsV1beta1Api.md#watch_namespaced_horizontal_pod_autoscaler) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**watch_namespaced_horizontal_pod_autoscaler_list**](ExtensionsV1beta1Api.md#watch_namespaced_horizontal_pod_autoscaler_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers | -[**watch_namespaced_ingress**](ExtensionsV1beta1Api.md#watch_namespaced_ingress) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name} | -[**watch_namespaced_ingress_list**](ExtensionsV1beta1Api.md#watch_namespaced_ingress_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses | -[**watch_namespaced_job**](ExtensionsV1beta1Api.md#watch_namespaced_job) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs/{name} | -[**watch_namespaced_job_list**](ExtensionsV1beta1Api.md#watch_namespaced_job_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs | -[**watch_namespaced_network_policy**](ExtensionsV1beta1Api.md#watch_namespaced_network_policy) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name} | -[**watch_namespaced_network_policy_list**](ExtensionsV1beta1Api.md#watch_namespaced_network_policy_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies | -[**watch_namespaced_replica_set**](ExtensionsV1beta1Api.md#watch_namespaced_replica_set) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name} | -[**watch_namespaced_replica_set_list**](ExtensionsV1beta1Api.md#watch_namespaced_replica_set_list) | **GET** /apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets | -[**watch_network_policy_list_for_all_namespaces**](ExtensionsV1beta1Api.md#watch_network_policy_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/networkpolicies | -[**watch_replica_set_list_for_all_namespaces**](ExtensionsV1beta1Api.md#watch_replica_set_list_for_all_namespaces) | **GET** /apis/extensions/v1beta1/watch/replicasets | -[**watch_third_party_resource**](ExtensionsV1beta1Api.md#watch_third_party_resource) | **GET** /apis/extensions/v1beta1/watch/thirdpartyresources/{name} | -[**watch_third_party_resource_list**](ExtensionsV1beta1Api.md#watch_third_party_resource_list) | **GET** /apis/extensions/v1beta1/watch/thirdpartyresources | # **create_namespaced_daemon_set** @@ -5571,1473 +5548,3 @@ 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) -# **watch_daemon_set_list_for_all_namespaces** -> VersionedEvent watch_daemon_set_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of DaemonSet - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_daemon_set_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_daemon_set_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_deployment_list_for_all_namespaces** -> VersionedEvent watch_deployment_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Deployment - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_deployment_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_deployment_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_horizontal_pod_autoscaler_list_for_all_namespaces** -> VersionedEvent watch_horizontal_pod_autoscaler_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_horizontal_pod_autoscaler_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_horizontal_pod_autoscaler_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_ingress_list_for_all_namespaces** -> VersionedEvent watch_ingress_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Ingress - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_ingress_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_ingress_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_job_list_for_all_namespaces** -> VersionedEvent watch_job_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Job - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_job_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_job_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_daemon_set** -> VersionedEvent watch_namespaced_daemon_set(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind DaemonSet - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the DaemonSet -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_daemon_set(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_namespaced_daemon_set: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the DaemonSet | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_daemon_set_list** -> VersionedEvent watch_namespaced_daemon_set_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of DaemonSet - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_daemon_set_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_namespaced_daemon_set_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_deployment** -> VersionedEvent watch_namespaced_deployment(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind Deployment - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Deployment -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_deployment(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_namespaced_deployment: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Deployment | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_deployment_list** -> VersionedEvent watch_namespaced_deployment_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Deployment - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_deployment_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_namespaced_deployment_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_horizontal_pod_autoscaler** -> VersionedEvent watch_namespaced_horizontal_pod_autoscaler(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the HorizontalPodAutoscaler -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_horizontal_pod_autoscaler(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_namespaced_horizontal_pod_autoscaler: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the HorizontalPodAutoscaler | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_horizontal_pod_autoscaler_list** -> VersionedEvent watch_namespaced_horizontal_pod_autoscaler_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of HorizontalPodAutoscaler - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_horizontal_pod_autoscaler_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_namespaced_horizontal_pod_autoscaler_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_ingress** -> VersionedEvent watch_namespaced_ingress(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind Ingress - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Ingress -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_ingress(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_namespaced_ingress: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Ingress | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_ingress_list** -> VersionedEvent watch_namespaced_ingress_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Ingress - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_ingress_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_namespaced_ingress_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_job** -> VersionedEvent watch_namespaced_job(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind Job - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the Job -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_job(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_namespaced_job: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Job | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_job_list** -> VersionedEvent watch_namespaced_job_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Job - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_job_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_namespaced_job_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_network_policy** -> VersionedEvent watch_namespaced_network_policy(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind NetworkPolicy - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the NetworkPolicy -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_network_policy(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_namespaced_network_policy: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the NetworkPolicy | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_network_policy_list** -> VersionedEvent watch_namespaced_network_policy_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of NetworkPolicy - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_network_policy_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_namespaced_network_policy_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_replica_set** -> VersionedEvent watch_namespaced_replica_set(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind ReplicaSet - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the ReplicaSet -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_replica_set(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_namespaced_replica_set: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ReplicaSet | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_replica_set_list** -> VersionedEvent watch_namespaced_replica_set_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ReplicaSet - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_replica_set_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_namespaced_replica_set_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_network_policy_list_for_all_namespaces** -> VersionedEvent watch_network_policy_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of NetworkPolicy - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_network_policy_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_network_policy_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_replica_set_list_for_all_namespaces** -> VersionedEvent watch_replica_set_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ReplicaSet - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_replica_set_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_replica_set_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_third_party_resource** -> VersionedEvent watch_third_party_resource(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind ThirdPartyResource - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -name = 'name_example' # str | name of the ThirdPartyResource -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_third_party_resource(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_third_party_resource: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ThirdPartyResource | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_third_party_resource_list** -> VersionedEvent watch_third_party_resource_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ThirdPartyResource - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.ExtensionsV1beta1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_third_party_resource_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->watch_third_party_resource_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/PolicyV1beta1Api.md b/docs/PolicyV1beta1Api.md index fca01108aa..835b5275b1 100644 --- a/docs/PolicyV1beta1Api.md +++ b/docs/PolicyV1beta1Api.md @@ -16,9 +16,6 @@ Method | HTTP request | Description [**read_namespaced_pod_disruption_budget_status**](PolicyV1beta1Api.md#read_namespaced_pod_disruption_budget_status) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | [**replace_namespaced_pod_disruption_budget**](PolicyV1beta1Api.md#replace_namespaced_pod_disruption_budget) | **PUT** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | [**replace_namespaced_pod_disruption_budget_status**](PolicyV1beta1Api.md#replace_namespaced_pod_disruption_budget_status) | **PUT** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -[**watch_namespaced_pod_disruption_budget**](PolicyV1beta1Api.md#watch_namespaced_pod_disruption_budget) | **GET** /apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name} | -[**watch_namespaced_pod_disruption_budget_list**](PolicyV1beta1Api.md#watch_namespaced_pod_disruption_budget_list) | **GET** /apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets | -[**watch_pod_disruption_budget_list_for_all_namespaces**](PolicyV1beta1Api.md#watch_pod_disruption_budget_list_for_all_namespaces) | **GET** /apis/policy/v1beta1/watch/poddisruptionbudgets | # **create_namespaced_pod_disruption_budget** @@ -725,195 +722,3 @@ 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) -# **watch_namespaced_pod_disruption_budget** -> VersionedEvent watch_namespaced_pod_disruption_budget(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind PodDisruptionBudget - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.PolicyV1beta1Api() -name = 'name_example' # str | name of the PodDisruptionBudget -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_pod_disruption_budget(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->watch_namespaced_pod_disruption_budget: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the PodDisruptionBudget | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_pod_disruption_budget_list** -> VersionedEvent watch_namespaced_pod_disruption_budget_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of PodDisruptionBudget - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.PolicyV1beta1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_pod_disruption_budget_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->watch_namespaced_pod_disruption_budget_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_pod_disruption_budget_list_for_all_namespaces** -> VersionedEvent watch_pod_disruption_budget_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of PodDisruptionBudget - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.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) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_pod_disruption_budget_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->watch_pod_disruption_budget_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/RbacAuthorizationV1alpha1Api.md b/docs/RbacAuthorizationV1alpha1Api.md index c3dc1605ae..614a1c98ee 100644 --- a/docs/RbacAuthorizationV1alpha1Api.md +++ b/docs/RbacAuthorizationV1alpha1Api.md @@ -35,16 +35,6 @@ Method | HTTP request | Description [**replace_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#replace_cluster_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | [**replace_namespaced_role**](RbacAuthorizationV1alpha1Api.md#replace_namespaced_role) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | [**replace_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#replace_namespaced_role_binding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -[**watch_cluster_role**](RbacAuthorizationV1alpha1Api.md#watch_cluster_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name} | -[**watch_cluster_role_binding**](RbacAuthorizationV1alpha1Api.md#watch_cluster_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name} | -[**watch_cluster_role_binding_list**](RbacAuthorizationV1alpha1Api.md#watch_cluster_role_binding_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings | -[**watch_cluster_role_list**](RbacAuthorizationV1alpha1Api.md#watch_cluster_role_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles | -[**watch_namespaced_role**](RbacAuthorizationV1alpha1Api.md#watch_namespaced_role) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles/{name} | -[**watch_namespaced_role_binding**](RbacAuthorizationV1alpha1Api.md#watch_namespaced_role_binding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name} | -[**watch_namespaced_role_binding_list**](RbacAuthorizationV1alpha1Api.md#watch_namespaced_role_binding_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings | -[**watch_namespaced_role_list**](RbacAuthorizationV1alpha1Api.md#watch_namespaced_role_list) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles | -[**watch_role_binding_list_for_all_namespaces**](RbacAuthorizationV1alpha1Api.md#watch_role_binding_list_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/rolebindings | -[**watch_role_list_for_all_namespaces**](RbacAuthorizationV1alpha1Api.md#watch_role_list_for_all_namespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/watch/roles | # **create_cluster_role** @@ -1863,639 +1853,3 @@ 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) -# **watch_cluster_role** -> VersionedEvent watch_cluster_role(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the ClusterRole -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_cluster_role(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->watch_cluster_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRole | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_cluster_role_binding** -> VersionedEvent watch_cluster_role_binding(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the ClusterRoleBinding -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_cluster_role_binding(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->watch_cluster_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the ClusterRoleBinding | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_cluster_role_binding_list** -> VersionedEvent watch_cluster_role_binding_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ClusterRoleBinding - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.RbacAuthorizationV1alpha1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_cluster_role_binding_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->watch_cluster_role_binding_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_cluster_role_list** -> VersionedEvent watch_cluster_role_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of ClusterRole - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.RbacAuthorizationV1alpha1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_cluster_role_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->watch_cluster_role_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_role** -> VersionedEvent watch_namespaced_role(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind Role - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the Role -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_role(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->watch_namespaced_role: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the Role | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_role_binding** -> VersionedEvent watch_namespaced_role_binding(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.RbacAuthorizationV1alpha1Api() -name = 'name_example' # str | name of the RoleBinding -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_role_binding(name, namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->watch_namespaced_role_binding: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the RoleBinding | - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_role_binding_list** -> VersionedEvent watch_namespaced_role_binding_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.RbacAuthorizationV1alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_role_binding_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->watch_namespaced_role_binding_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_namespaced_role_list** -> VersionedEvent watch_namespaced_role_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Role - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.RbacAuthorizationV1alpha1Api() -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_namespaced_role_list(namespace, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->watch_namespaced_role_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **str**| object name and auth scope, such as for teams and projects | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_role_binding_list_for_all_namespaces** -> VersionedEvent watch_role_binding_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of RoleBinding - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.RbacAuthorizationV1alpha1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_role_binding_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->watch_role_binding_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_role_list_for_all_namespaces** -> VersionedEvent watch_role_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of Role - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.RbacAuthorizationV1alpha1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_role_list_for_all_namespaces(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->watch_role_list_for_all_namespaces: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/StorageV1beta1Api.md b/docs/StorageV1beta1Api.md index 0143ee05d4..605105398c 100644 --- a/docs/StorageV1beta1Api.md +++ b/docs/StorageV1beta1Api.md @@ -12,8 +12,6 @@ Method | HTTP request | Description [**patch_storage_class**](StorageV1beta1Api.md#patch_storage_class) | **PATCH** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | [**read_storage_class**](StorageV1beta1Api.md#read_storage_class) | **GET** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | [**replace_storage_class**](StorageV1beta1Api.md#replace_storage_class) | **PUT** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | -[**watch_storage_class**](StorageV1beta1Api.md#watch_storage_class) | **GET** /apis/storage.k8s.io/v1beta1/watch/storageclasses/{name} | -[**watch_storage_class_list**](StorageV1beta1Api.md#watch_storage_class_list) | **GET** /apis/storage.k8s.io/v1beta1/watch/storageclasses | # **create_storage_class** @@ -472,129 +470,3 @@ 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) -# **watch_storage_class** -> VersionedEvent watch_storage_class(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch changes to an object of kind StorageClass - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.StorageV1beta1Api() -name = 'name_example' # str | name of the StorageClass -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_storage_class(name, field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->watch_storage_class: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| name of the StorageClass | - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **watch_storage_class_list** -> VersionedEvent watch_storage_class_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - - - -watch individual changes to a list of StorageClass - -### Example -```python -from __future__ import print_statement -import time -import k8sclient -from k8sclient.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken -k8sclient.configuration.api_key['authorization'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# k8sclient.configuration.api_key_prefix['authorization'] = 'Bearer' - -# create an instance of the API class -api_instance = k8sclient.StorageV1beta1Api() -field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) -label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) -timeout_seconds = 56 # int | Timeout for the list/watch call. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - -try: - api_response = api_instance.watch_storage_class_list(field_selector=field_selector, label_selector=label_selector, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->watch_storage_class_list: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] - **timeout_seconds** | **int**| Timeout for the list/watch call. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**VersionedEvent**](VersionedEvent.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/k8sclient/apis/apps_v1beta1_api.py b/k8sclient/apis/apps_v1beta1_api.py index e4bbe30ef1..0c35c053b8 100644 --- a/k8sclient/apis/apps_v1beta1_api.py +++ b/k8sclient/apis/apps_v1beta1_api.py @@ -1591,411 +1591,3 @@ def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - - def watch_namespaced_stateful_set(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind StatefulSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_stateful_set(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StatefulSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind StatefulSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_stateful_set_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StatefulSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_stateful_set" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_stateful_set`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_stateful_set`") - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_stateful_set_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of StatefulSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_stateful_set_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_stateful_set_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_stateful_set_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_stateful_set_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of StatefulSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_stateful_set_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_stateful_set_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_stateful_set_list`") - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_stateful_set_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of StatefulSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_stateful_set_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_stateful_set_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_stateful_set_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_stateful_set_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of StatefulSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_stateful_set_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_stateful_set_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/apps/v1beta1/watch/statefulsets'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/k8sclient/apis/autoscaling_v1_api.py b/k8sclient/apis/autoscaling_v1_api.py index b024a5e4b4..4233a5ee84 100644 --- a/k8sclient/apis/autoscaling_v1_api.py +++ b/k8sclient/apis/autoscaling_v1_api.py @@ -1591,411 +1591,3 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - - def watch_horizontal_pod_autoscaler_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of HorizontalPodAutoscaler - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_horizontal_pod_autoscaler_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of HorizontalPodAutoscaler - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_horizontal_pod_autoscaler_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/autoscaling/v1/watch/horizontalpodautoscalers'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind HorizontalPodAutoscaler - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_horizontal_pod_autoscaler(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind HorizontalPodAutoscaler - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_horizontal_pod_autoscaler" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_horizontal_pod_autoscaler`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_horizontal_pod_autoscaler`") - - - collection_formats = {} - - resource_path = '/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_horizontal_pod_autoscaler_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of HorizontalPodAutoscaler - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_horizontal_pod_autoscaler_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_horizontal_pod_autoscaler_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_horizontal_pod_autoscaler_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_horizontal_pod_autoscaler_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of HorizontalPodAutoscaler - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_horizontal_pod_autoscaler_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_horizontal_pod_autoscaler_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_horizontal_pod_autoscaler_list`") - - - collection_formats = {} - - resource_path = '/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/k8sclient/apis/batch_v1_api.py b/k8sclient/apis/batch_v1_api.py index 706fc142ca..13581d509b 100644 --- a/k8sclient/apis/batch_v1_api.py +++ b/k8sclient/apis/batch_v1_api.py @@ -1591,411 +1591,3 @@ def replace_namespaced_job_status_with_http_info(self, name, namespace, body, ** _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - - def watch_job_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_job_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_job_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_job_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_job_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_job_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_job_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/batch/v1/watch/jobs'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_job(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_job(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Job (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_job_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_job_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_job_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_job_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Job (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_job" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_job`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_job`") - - - collection_formats = {} - - resource_path = '/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_job_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_job_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_job_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_job_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_job_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_job_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_job_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_job_list`") - - - collection_formats = {} - - resource_path = '/apis/batch/v1/watch/namespaces/{namespace}/jobs'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/k8sclient/apis/batch_v2alpha1_api.py b/k8sclient/apis/batch_v2alpha1_api.py index 6465e01533..f6475ebd7c 100644 --- a/k8sclient/apis/batch_v2alpha1_api.py +++ b/k8sclient/apis/batch_v2alpha1_api.py @@ -4463,1227 +4463,3 @@ def replace_namespaced_scheduled_job_status_with_http_info(self, name, namespace _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - - def watch_cron_job_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of 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.watch_cron_job_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_cron_job_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_cron_job_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_cron_job_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of 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.watch_cron_job_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_cron_job_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/watch/cronjobs'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_job_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_job_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_job_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_job_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_job_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_job_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_job_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/watch/jobs'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_cron_job(self, name, namespace, **kwargs): - """ - - watch changes to an object 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.watch_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 field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_cron_job_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_cron_job_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object 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.watch_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 field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_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 `watch_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 `watch_namespaced_cron_job`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/watch/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 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_cron_job_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of 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.watch_namespaced_cron_job_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_cron_job_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_cron_job_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_cron_job_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of 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.watch_namespaced_cron_job_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_cron_job_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_cron_job_list`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_job(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_job(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Job (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_job_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_job_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_job_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_job_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Job (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_job" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_job`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_job`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/watch/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_job_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_job_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_job_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_job_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_job_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_job_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_job_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_job_list`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/watch/namespaces/{namespace}/jobs'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_scheduled_job(self, name, namespace, **kwargs): - """ - - watch changes to an object 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.watch_namespaced_scheduled_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 namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_scheduled_job_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_scheduled_job_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_scheduled_job_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object 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.watch_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 ScheduledJob (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_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 `watch_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 `watch_namespaced_scheduled_job`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/watch/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 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_scheduled_job_list(self, namespace, **kwargs): - """ - - watch individual changes to a list 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.watch_namespaced_scheduled_job_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_scheduled_job_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_scheduled_job_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_scheduled_job_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list 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.watch_namespaced_scheduled_job_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_scheduled_job_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_scheduled_job_list`") - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/watch/namespaces/{namespace}/scheduledjobs'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_scheduled_job_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list 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.watch_scheduled_job_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_scheduled_job_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_scheduled_job_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_scheduled_job_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list 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.watch_scheduled_job_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_scheduled_job_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/batch/v2alpha1/watch/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']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/k8sclient/apis/certificates_v1alpha1_api.py b/k8sclient/apis/certificates_v1alpha1_api.py index ce97cbb33d..a1ba274bbb 100644 --- a/k8sclient/apis/certificates_v1alpha1_api.py +++ b/k8sclient/apis/certificates_v1alpha1_api.py @@ -1276,268 +1276,3 @@ def replace_certificate_signing_request_status_with_http_info(self, body, name, _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - - def watch_certificate_signing_request(self, name, **kwargs): - """ - - watch changes to an object of kind CertificateSigningRequest - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_certificate_signing_request(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CertificateSigningRequest (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_certificate_signing_request_with_http_info(name, **kwargs) - else: - (data) = self.watch_certificate_signing_request_with_http_info(name, **kwargs) - return data - - def watch_certificate_signing_request_with_http_info(self, name, **kwargs): - """ - - watch changes to an object of kind CertificateSigningRequest - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_certificate_signing_request_with_http_info(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the CertificateSigningRequest (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_certificate_signing_request" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_certificate_signing_request`") - - - collection_formats = {} - - resource_path = '/apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_certificate_signing_request_list(self, **kwargs): - """ - - watch individual changes to a list of CertificateSigningRequest - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_certificate_signing_request_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_certificate_signing_request_list_with_http_info(**kwargs) - else: - (data) = self.watch_certificate_signing_request_list_with_http_info(**kwargs) - return data - - def watch_certificate_signing_request_list_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of CertificateSigningRequest - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_certificate_signing_request_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_certificate_signing_request_list" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/k8sclient/apis/core_v1_api.py b/k8sclient/apis/core_v1_api.py index ad2a80ea37..f72c92c9eb 100644 --- a/k8sclient/apis/core_v1_api.py +++ b/k8sclient/apis/core_v1_api.py @@ -29153,5694 +29153,3 @@ def replace_persistent_volume_status_with_http_info(self, name, body, **kwargs): _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - - def watch_config_map_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of ConfigMap - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_config_map_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_config_map_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_config_map_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_config_map_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of ConfigMap - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_config_map_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_config_map_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/configmaps'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_endpoints_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of Endpoints - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_endpoints_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_endpoints_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_endpoints_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_endpoints_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of Endpoints - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_endpoints_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_endpoints_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/endpoints'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_event_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of Event - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_event_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_event_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_event_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_event_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of Event - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_event_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_event_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/events'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_limit_range_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of LimitRange - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_limit_range_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_limit_range_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_limit_range_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_limit_range_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of LimitRange - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_limit_range_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_limit_range_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/limitranges'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespace(self, name, **kwargs): - """ - - watch changes to an object of kind Namespace - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespace(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Namespace (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespace_with_http_info(name, **kwargs) - else: - (data) = self.watch_namespace_with_http_info(name, **kwargs) - return data - - def watch_namespace_with_http_info(self, name, **kwargs): - """ - - watch changes to an object of kind Namespace - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespace_with_http_info(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Namespace (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespace" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespace`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespace_list(self, **kwargs): - """ - - watch individual changes to a list of Namespace - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespace_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespace_list_with_http_info(**kwargs) - else: - (data) = self.watch_namespace_list_with_http_info(**kwargs) - return data - - def watch_namespace_list_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of Namespace - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespace_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespace_list" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_config_map(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind ConfigMap - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_config_map(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ConfigMap (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_config_map_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_config_map_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind ConfigMap - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_config_map_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ConfigMap (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_config_map" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_config_map`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_config_map`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/configmaps/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_config_map_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of ConfigMap - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_config_map_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_config_map_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_config_map_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_config_map_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of ConfigMap - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_config_map_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_config_map_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_config_map_list`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/configmaps'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_endpoints(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Endpoints - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_endpoints(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Endpoints (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_endpoints_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_endpoints_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Endpoints - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_endpoints_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Endpoints (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_endpoints" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_endpoints`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_endpoints`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/endpoints/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_endpoints_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of Endpoints - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_endpoints_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_endpoints_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_endpoints_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_endpoints_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of Endpoints - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_endpoints_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_endpoints_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_endpoints_list`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/endpoints'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_event(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Event - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_event(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Event (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_event_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_event_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_event_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Event - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_event_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Event (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_event" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_event`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_event`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/events/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_event_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of Event - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_event_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_event_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_event_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_event_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of Event - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_event_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_event_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_event_list`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/events'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_limit_range(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind LimitRange - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_limit_range(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the LimitRange (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_limit_range_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_limit_range_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind LimitRange - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_limit_range_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the LimitRange (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_limit_range" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_limit_range`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_limit_range`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/limitranges/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_limit_range_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of LimitRange - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_limit_range_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_limit_range_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_limit_range_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_limit_range_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of LimitRange - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_limit_range_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_limit_range_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_limit_range_list`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/limitranges'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_persistent_volume_claim(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind PersistentVolumeClaim - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_persistent_volume_claim(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PersistentVolumeClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind PersistentVolumeClaim - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_persistent_volume_claim_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PersistentVolumeClaim (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_persistent_volume_claim" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_persistent_volume_claim`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_persistent_volume_claim`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_persistent_volume_claim_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of PersistentVolumeClaim - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_persistent_volume_claim_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_persistent_volume_claim_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_persistent_volume_claim_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_persistent_volume_claim_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of PersistentVolumeClaim - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_persistent_volume_claim_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_persistent_volume_claim_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_persistent_volume_claim_list`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_pod(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Pod - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_pod(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Pod (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_pod_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_pod_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_pod_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Pod - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_pod_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Pod (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_pod" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_pod`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/pods/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_pod_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of Pod - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_pod_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_pod_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_pod_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_pod_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of Pod - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_pod_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_pod_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod_list`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/pods'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_pod_template(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind PodTemplate - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_pod_template(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PodTemplate (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_pod_template_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_pod_template_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind PodTemplate - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_pod_template_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PodTemplate (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_pod_template" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_pod_template`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod_template`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/podtemplates/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_pod_template_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of PodTemplate - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_pod_template_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_pod_template_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_pod_template_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_pod_template_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of PodTemplate - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_pod_template_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_pod_template_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod_template_list`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/podtemplates'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_replication_controller(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind ReplicationController - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_replication_controller(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ReplicationController (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_replication_controller_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind ReplicationController - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_replication_controller_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ReplicationController (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_replication_controller" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_replication_controller`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_replication_controller`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_replication_controller_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of ReplicationController - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_replication_controller_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_replication_controller_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_replication_controller_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_replication_controller_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of ReplicationController - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_replication_controller_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_replication_controller_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_replication_controller_list`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/replicationcontrollers'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_resource_quota(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind ResourceQuota - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_resource_quota(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ResourceQuota (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_resource_quota_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind ResourceQuota - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_resource_quota_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ResourceQuota (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_resource_quota" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_resource_quota`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_resource_quota`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_resource_quota_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of ResourceQuota - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_resource_quota_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_resource_quota_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_resource_quota_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_resource_quota_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of ResourceQuota - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_resource_quota_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_resource_quota_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_resource_quota_list`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/resourcequotas'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_secret(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Secret - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_secret(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Secret (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_secret_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_secret_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_secret_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Secret - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_secret_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Secret (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_secret" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_secret`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_secret`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/secrets/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_secret_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of Secret - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_secret_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_secret_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_secret_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_secret_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of Secret - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_secret_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_secret_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_secret_list`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/secrets'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_service(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Service - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_service(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Service (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_service_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_service_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_service_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Service - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_service_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Service (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_service" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_service`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_service`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/services/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_service_account(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind ServiceAccount - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_service_account(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ServiceAccount (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_service_account_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_service_account_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_service_account_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind ServiceAccount - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_service_account_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ServiceAccount (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_service_account" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_service_account`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_service_account`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_service_account_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of ServiceAccount - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_service_account_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_service_account_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_service_account_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_service_account_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of ServiceAccount - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_service_account_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_service_account_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_service_account_list`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/serviceaccounts'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_service_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of Service - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_service_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_service_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_service_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_service_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of Service - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_service_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_service_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_service_list`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/namespaces/{namespace}/services'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_node(self, name, **kwargs): - """ - - watch changes to an object of kind Node - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_node(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Node (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_node_with_http_info(name, **kwargs) - else: - (data) = self.watch_node_with_http_info(name, **kwargs) - return data - - def watch_node_with_http_info(self, name, **kwargs): - """ - - watch changes to an object of kind Node - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_node_with_http_info(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Node (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_node" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_node`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/nodes/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_node_list(self, **kwargs): - """ - - watch individual changes to a list of Node - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_node_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_node_list_with_http_info(**kwargs) - else: - (data) = self.watch_node_list_with_http_info(**kwargs) - return data - - def watch_node_list_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of Node - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_node_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_node_list" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/nodes'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_persistent_volume(self, name, **kwargs): - """ - - watch changes to an object of kind PersistentVolume - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_persistent_volume(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PersistentVolume (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_persistent_volume_with_http_info(name, **kwargs) - else: - (data) = self.watch_persistent_volume_with_http_info(name, **kwargs) - return data - - def watch_persistent_volume_with_http_info(self, name, **kwargs): - """ - - watch changes to an object of kind PersistentVolume - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_persistent_volume_with_http_info(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PersistentVolume (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_persistent_volume" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_persistent_volume`") - - - collection_formats = {} - - resource_path = '/api/v1/watch/persistentvolumes/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_persistent_volume_claim_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of PersistentVolumeClaim - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_persistent_volume_claim_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_persistent_volume_claim_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_persistent_volume_claim_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_persistent_volume_claim_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of PersistentVolumeClaim - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_persistent_volume_claim_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_persistent_volume_claim_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/persistentvolumeclaims'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_persistent_volume_list(self, **kwargs): - """ - - watch individual changes to a list of PersistentVolume - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_persistent_volume_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_persistent_volume_list_with_http_info(**kwargs) - else: - (data) = self.watch_persistent_volume_list_with_http_info(**kwargs) - return data - - def watch_persistent_volume_list_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of PersistentVolume - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_persistent_volume_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_persistent_volume_list" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/persistentvolumes'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_pod_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of Pod - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_pod_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_pod_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_pod_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_pod_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of Pod - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_pod_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_pod_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/pods'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_pod_template_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of PodTemplate - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_pod_template_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_pod_template_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_pod_template_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_pod_template_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of PodTemplate - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_pod_template_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_pod_template_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/podtemplates'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_replication_controller_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of ReplicationController - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_replication_controller_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_replication_controller_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_replication_controller_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_replication_controller_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of ReplicationController - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_replication_controller_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_replication_controller_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/replicationcontrollers'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_resource_quota_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of ResourceQuota - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_resource_quota_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_resource_quota_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_resource_quota_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_resource_quota_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of ResourceQuota - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_resource_quota_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_resource_quota_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/resourcequotas'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_secret_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of Secret - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_secret_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_secret_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_secret_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_secret_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of Secret - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_secret_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_secret_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/secrets'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_service_account_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of ServiceAccount - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_service_account_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_service_account_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_service_account_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_service_account_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of ServiceAccount - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_service_account_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_service_account_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/serviceaccounts'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_service_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of Service - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_service_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_service_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_service_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_service_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of Service - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_service_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_service_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/api/v1/watch/services'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/k8sclient/apis/extensions_v1beta1_api.py b/k8sclient/apis/extensions_v1beta1_api.py index bb87cac888..1b8297ec15 100644 --- a/k8sclient/apis/extensions_v1beta1_api.py +++ b/k8sclient/apis/extensions_v1beta1_api.py @@ -11978,3124 +11978,3 @@ def replace_third_party_resource_with_http_info(self, name, body, **kwargs): _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - - def watch_daemon_set_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of DaemonSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_daemon_set_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_daemon_set_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_daemon_set_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_daemon_set_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of DaemonSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_daemon_set_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_daemon_set_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/daemonsets'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_deployment_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of Deployment - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_deployment_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_deployment_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_deployment_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_deployment_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of Deployment - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_deployment_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_deployment_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/deployments'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_horizontal_pod_autoscaler_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of HorizontalPodAutoscaler - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_horizontal_pod_autoscaler_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of HorizontalPodAutoscaler - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_horizontal_pod_autoscaler_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_horizontal_pod_autoscaler_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/horizontalpodautoscalers'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_ingress_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of Ingress - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_ingress_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_ingress_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_ingress_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_ingress_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of Ingress - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_ingress_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_ingress_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/ingresses'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_job_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_job_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_job_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_job_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_job_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_job_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_job_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/jobs'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_daemon_set(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind DaemonSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_daemon_set(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind DaemonSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_daemon_set_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the DaemonSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_daemon_set" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_daemon_set`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_daemon_set`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_daemon_set_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of DaemonSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_daemon_set_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_daemon_set_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_daemon_set_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_daemon_set_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of DaemonSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_daemon_set_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_daemon_set_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_daemon_set_list`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_deployment(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Deployment - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_deployment(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Deployment (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_deployment_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_deployment_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Deployment - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_deployment_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Deployment (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_deployment" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_deployment`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_deployment`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_deployment_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of Deployment - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_deployment_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_deployment_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_deployment_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_deployment_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of Deployment - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_deployment_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_deployment_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_deployment_list`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind HorizontalPodAutoscaler - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_horizontal_pod_autoscaler(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind HorizontalPodAutoscaler - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the HorizontalPodAutoscaler (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_horizontal_pod_autoscaler" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_horizontal_pod_autoscaler`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_horizontal_pod_autoscaler`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_horizontal_pod_autoscaler_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of HorizontalPodAutoscaler - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_horizontal_pod_autoscaler_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_horizontal_pod_autoscaler_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_horizontal_pod_autoscaler_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_horizontal_pod_autoscaler_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of HorizontalPodAutoscaler - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_horizontal_pod_autoscaler_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_horizontal_pod_autoscaler_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_horizontal_pod_autoscaler_list`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_ingress(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Ingress - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_ingress(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Ingress (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_ingress_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_ingress_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Ingress - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_ingress_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Ingress (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_ingress" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_ingress`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_ingress`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_ingress_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of Ingress - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_ingress_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_ingress_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_ingress_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_ingress_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of Ingress - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_ingress_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_ingress_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_ingress_list`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_job(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_job(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Job (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_job_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_job_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_job_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_job_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Job (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_job" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_job`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_job`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_job_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_job_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_job_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_job_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_job_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of Job - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_job_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_job_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_job_list`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_network_policy(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind NetworkPolicy - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_network_policy(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the NetworkPolicy (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_network_policy_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_network_policy_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind NetworkPolicy - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_network_policy_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the NetworkPolicy (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_network_policy" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_network_policy`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_network_policy`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_network_policy_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of NetworkPolicy - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_network_policy_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_network_policy_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_network_policy_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_network_policy_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of NetworkPolicy - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_network_policy_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_network_policy_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_network_policy_list`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_replica_set(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind ReplicaSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_replica_set(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ReplicaSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_replica_set_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_replica_set_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind ReplicaSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_replica_set_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ReplicaSet (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_replica_set" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_replica_set`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_replica_set`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_replica_set_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of ReplicaSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_replica_set_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_replica_set_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_replica_set_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_replica_set_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of ReplicaSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_replica_set_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_replica_set_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_replica_set_list`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_network_policy_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of NetworkPolicy - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_network_policy_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_network_policy_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_network_policy_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_network_policy_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of NetworkPolicy - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_network_policy_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_network_policy_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/networkpolicies'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_replica_set_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of ReplicaSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_replica_set_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_replica_set_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_replica_set_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_replica_set_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of ReplicaSet - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_replica_set_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_replica_set_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/replicasets'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_third_party_resource(self, name, **kwargs): - """ - - watch changes to an object of kind ThirdPartyResource - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_third_party_resource(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ThirdPartyResource (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_third_party_resource_with_http_info(name, **kwargs) - else: - (data) = self.watch_third_party_resource_with_http_info(name, **kwargs) - return data - - def watch_third_party_resource_with_http_info(self, name, **kwargs): - """ - - watch changes to an object of kind ThirdPartyResource - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_third_party_resource_with_http_info(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ThirdPartyResource (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_third_party_resource" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_third_party_resource`") - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/thirdpartyresources/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_third_party_resource_list(self, **kwargs): - """ - - watch individual changes to a list of ThirdPartyResource - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_third_party_resource_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_third_party_resource_list_with_http_info(**kwargs) - else: - (data) = self.watch_third_party_resource_list_with_http_info(**kwargs) - return data - - def watch_third_party_resource_list_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of ThirdPartyResource - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_third_party_resource_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_third_party_resource_list" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/extensions/v1beta1/watch/thirdpartyresources'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/k8sclient/apis/policy_v1beta1_api.py b/k8sclient/apis/policy_v1beta1_api.py index ba1b3d61a6..37ded76f25 100644 --- a/k8sclient/apis/policy_v1beta1_api.py +++ b/k8sclient/apis/policy_v1beta1_api.py @@ -1591,411 +1591,3 @@ def replace_namespaced_pod_disruption_budget_status_with_http_info(self, name, n _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - - def watch_namespaced_pod_disruption_budget(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind PodDisruptionBudget - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_pod_disruption_budget(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PodDisruptionBudget (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind PodDisruptionBudget - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_pod_disruption_budget_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the PodDisruptionBudget (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_pod_disruption_budget" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_pod_disruption_budget`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod_disruption_budget`") - - - collection_formats = {} - - resource_path = '/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_pod_disruption_budget_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of PodDisruptionBudget - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_pod_disruption_budget_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_pod_disruption_budget_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_pod_disruption_budget_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_pod_disruption_budget_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of PodDisruptionBudget - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_pod_disruption_budget_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_pod_disruption_budget_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_pod_disruption_budget_list`") - - - collection_formats = {} - - resource_path = '/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_pod_disruption_budget_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of PodDisruptionBudget - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_pod_disruption_budget_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_pod_disruption_budget_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_pod_disruption_budget_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_pod_disruption_budget_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of PodDisruptionBudget - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_pod_disruption_budget_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_pod_disruption_budget_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/policy/v1beta1/watch/poddisruptionbudgets'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/k8sclient/apis/rbac_authorization_v1alpha1_api.py b/k8sclient/apis/rbac_authorization_v1alpha1_api.py index d8b961c442..0d35e70f63 100644 --- a/k8sclient/apis/rbac_authorization_v1alpha1_api.py +++ b/k8sclient/apis/rbac_authorization_v1alpha1_api.py @@ -3979,1349 +3979,3 @@ def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - - def watch_cluster_role(self, name, **kwargs): - """ - - watch changes to an object of kind ClusterRole - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_cluster_role(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_cluster_role_with_http_info(name, **kwargs) - else: - (data) = self.watch_cluster_role_with_http_info(name, **kwargs) - return data - - def watch_cluster_role_with_http_info(self, name, **kwargs): - """ - - watch changes to an object of kind ClusterRole - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_cluster_role_with_http_info(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRole (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_cluster_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_cluster_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_cluster_role_binding(self, name, **kwargs): - """ - - watch changes to an object of kind ClusterRoleBinding - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_cluster_role_binding(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_cluster_role_binding_with_http_info(name, **kwargs) - else: - (data) = self.watch_cluster_role_binding_with_http_info(name, **kwargs) - return data - - def watch_cluster_role_binding_with_http_info(self, name, **kwargs): - """ - - watch changes to an object of kind ClusterRoleBinding - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_cluster_role_binding_with_http_info(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the ClusterRoleBinding (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_cluster_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_cluster_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_cluster_role_binding_list(self, **kwargs): - """ - - watch individual changes to a list of ClusterRoleBinding - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_cluster_role_binding_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_cluster_role_binding_list_with_http_info(**kwargs) - else: - (data) = self.watch_cluster_role_binding_list_with_http_info(**kwargs) - return data - - def watch_cluster_role_binding_list_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of ClusterRoleBinding - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_cluster_role_binding_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_cluster_role_binding_list" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_cluster_role_list(self, **kwargs): - """ - - watch individual changes to a list of ClusterRole - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_cluster_role_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_cluster_role_list_with_http_info(**kwargs) - else: - (data) = self.watch_cluster_role_list_with_http_info(**kwargs) - return data - - def watch_cluster_role_list_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of ClusterRole - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_cluster_role_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_cluster_role_list" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_role(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Role - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_role(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_role_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_role_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_role_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind Role - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_role_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the Role (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_role" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_role`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_role`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_role_binding(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind RoleBinding - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_role_binding(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_role_binding_with_http_info(name, namespace, **kwargs) - else: - (data) = self.watch_namespaced_role_binding_with_http_info(name, namespace, **kwargs) - return data - - def watch_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): - """ - - watch changes to an object of kind RoleBinding - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_role_binding_with_http_info(name, namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the RoleBinding (required) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_role_binding" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_namespaced_role_binding`") - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_role_binding`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_role_binding_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of RoleBinding - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_role_binding_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_role_binding_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_role_binding_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_role_binding_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of RoleBinding - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_role_binding_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_role_binding_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_role_binding_list`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_namespaced_role_list(self, namespace, **kwargs): - """ - - watch individual changes to a list of Role - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_role_list(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_namespaced_role_list_with_http_info(namespace, **kwargs) - else: - (data) = self.watch_namespaced_role_list_with_http_info(namespace, **kwargs) - return data - - def watch_namespaced_role_list_with_http_info(self, namespace, **kwargs): - """ - - watch individual changes to a list of Role - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_namespaced_role_list_with_http_info(namespace, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str namespace: object name and auth scope, such as for teams and projects (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['namespace', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_namespaced_role_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_role_list`") - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles'.replace('{format}', 'json') - path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_role_binding_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of RoleBinding - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_role_binding_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_role_binding_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_role_binding_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_role_binding_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of RoleBinding - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_role_binding_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_role_binding_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/rolebindings'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_role_list_for_all_namespaces(self, **kwargs): - """ - - watch individual changes to a list of Role - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_role_list_for_all_namespaces(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_role_list_for_all_namespaces_with_http_info(**kwargs) - else: - (data) = self.watch_role_list_for_all_namespaces_with_http_info(**kwargs) - return data - - def watch_role_list_for_all_namespaces_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of Role - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_role_list_for_all_namespaces_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_role_list_for_all_namespaces" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/rbac.authorization.k8s.io/v1alpha1/watch/roles'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/k8sclient/apis/storage_v1beta1_api.py b/k8sclient/apis/storage_v1beta1_api.py index 63f557061c..ff10d06c9f 100644 --- a/k8sclient/apis/storage_v1beta1_api.py +++ b/k8sclient/apis/storage_v1beta1_api.py @@ -1030,268 +1030,3 @@ def replace_storage_class_with_http_info(self, name, body, **kwargs): _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - - def watch_storage_class(self, name, **kwargs): - """ - - watch changes to an object of kind StorageClass - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_storage_class(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StorageClass (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_storage_class_with_http_info(name, **kwargs) - else: - (data) = self.watch_storage_class_with_http_info(name, **kwargs) - return data - - def watch_storage_class_with_http_info(self, name, **kwargs): - """ - - watch changes to an object of kind StorageClass - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_storage_class_with_http_info(name, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str name: name of the StorageClass (required) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name', 'field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_storage_class" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `watch_storage_class`") - - - collection_formats = {} - - resource_path = '/apis/storage.k8s.io/v1beta1/watch/storageclasses/{name}'.replace('{format}', 'json') - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def watch_storage_class_list(self, **kwargs): - """ - - watch individual changes to a list of StorageClass - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_storage_class_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.watch_storage_class_list_with_http_info(**kwargs) - else: - (data) = self.watch_storage_class_list_with_http_info(**kwargs) - return data - - def watch_storage_class_list_with_http_info(self, **kwargs): - """ - - watch individual changes to a list of StorageClass - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.watch_storage_class_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. - :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. - :param str pretty: If 'true', then the output is pretty printed. - :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. - :param int timeout_seconds: Timeout for the list/watch call. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: VersionedEvent - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['field_selector', 'label_selector', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] - all_params.append('callback') - all_params.append('_return_http_data_only') - 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 watch_storage_class_list" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - resource_path = '/apis/storage.k8s.io/v1beta1/watch/storageclasses'.replace('{format}', 'json') - path_params = {} - - query_params = {} - if 'field_selector' in params: - query_params['fieldSelector'] = params['field_selector'] - if 'label_selector' in params: - query_params['labelSelector'] = params['label_selector'] - if 'pretty' in params: - query_params['pretty'] = params['pretty'] - if 'resource_version' in params: - query_params['resourceVersion'] = params['resource_version'] - if 'timeout_seconds' in params: - query_params['timeoutSeconds'] = params['timeout_seconds'] - if 'watch' in params: - query_params['watch'] = params['watch'] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api(resource_path, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionedEvent', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/scripts/preprocess_spec.py b/scripts/preprocess_spec.py index 4c811ed6d0..47b51ee701 100644 --- a/scripts/preprocess_spec.py +++ b/scripts/preprocess_spec.py @@ -13,13 +13,27 @@ # limitations under the License. import json +import operator import os.path import sys from collections import OrderedDict + +# these four constants are shown as part of this example in []: +# "[watch]Pod[List]" is the deprecated version of "[list]Pod?[watch]=True" +WATCH_OP_PREFIX = "watch" +WATCH_OP_SUFFIX = "List" +LIST_OP_PREFIX = "list" +WATCH_QUERY_PARAM_NAME = "watch" + + _ops = ['get', 'put', 'post', 'delete', 'options', 'head', 'patch'] +class PreprocessingException(Exception): + pass + + def _title(s): if len(s) == 0: return s @@ -30,24 +44,72 @@ def _to_camel_case(s): return ''.join(_title(y) for y in s.split("_")) -def iterate_through_operations(spec, func): +def apply_func_to_spec_operations(spec, func, *params): + """Apply func to each operation in the spec. + + :param spec: The OpenAPI spec to apply func to. + :param func: the function to apply to the spec's operations. It should be + a func(operation, parent) where operation will be each + operation of the spec and parent would be the parent object of + the given operation. + If the return value of the func is True, then the operation + will be deleted from the spec. + """ for k, v in spec['paths'].iteritems(): for op in _ops: - if op in v: - func(v[op]) + if op not in v: + continue + if func(v[op], v, *params): + del v[op] + + +def _has_property(prop_list, property_name): + for prop in prop_list: + if prop["name"] == property_name: + return True + + +def remove_watch_operations(op, parent, operation_ids): + op_id = op['operationId'] + if not op_id.startswith(WATCH_OP_PREFIX): + return + list_id = (LIST_OP_PREFIX + + op_id.replace(WATCH_OP_SUFFIX, "")[len(WATCH_OP_PREFIX):]) + if list_id not in operation_ids: + raise PreprocessingException("Cannot find %s" % list_id) + list_op = operation_ids[list_id] + params = [] + if 'parameters' in list_op: + params += list_op['parameters'] + if 'parameters' in parent: + params += parent['parameters'] + if not _has_property(params, WATCH_QUERY_PARAM_NAME): + raise PreprocessingException("%s has no watch query param" % list_id) + return True + + +def strip_tags_from_operation_id(operation, _): + operation_id = operation['operationId'] + for t in operation['tags']: + operation_id = operation_id.replace(_to_camel_case(t), '') + operation['operationId'] = operation_id def process_swagger(infile, outfile): with open(infile, 'r') as f: spec = json.load(f, object_pairs_hook=OrderedDict) - def strip_tags_from_operation_id(operation): - operation_id = operation['operationId'] - for t in operation['tags']: - operation_id = operation_id.replace(_to_camel_case(t), '') - operation['operationId'] = operation_id + apply_func_to_spec_operations(spec, strip_tags_from_operation_id) + + operation_ids = {} + apply_func_to_spec_operations(spec, lambda op, _: operator.setitem( + operation_ids, op['operationId'], op)) - iterate_through_operations(spec, strip_tags_from_operation_id) + try: + apply_func_to_spec_operations( + spec, remove_watch_operations, operation_ids) + except PreprocessingException as e: + print(e.message) with open(outfile, 'w') as out: json.dump(spec, out, sort_keys=False, indent=2, diff --git a/scripts/swagger.json b/scripts/swagger.json index 721693bce0..9aeda71eb2 100644 --- a/scripts/swagger.json +++ b/scripts/swagger.json @@ -11032,37 +11032,6 @@ ] }, "/api/v1/watch/configmaps": { - "get": { - "description": "watch individual changes to a list of ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchConfigMapListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -11109,37 +11078,6 @@ ] }, "/api/v1/watch/endpoints": { - "get": { - "description": "watch individual changes to a list of Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchEndpointsListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -11186,37 +11124,6 @@ ] }, "/api/v1/watch/events": { - "get": { - "description": "watch individual changes to a list of Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchEventListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -11263,37 +11170,6 @@ ] }, "/api/v1/watch/limitranges": { - "get": { - "description": "watch individual changes to a list of LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchLimitRangeListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -11340,37 +11216,6 @@ ] }, "/api/v1/watch/namespaces": { - "get": { - "description": "watch individual changes to a list of Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespaceList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -11417,37 +11262,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/configmaps": { - "get": { - "description": "watch individual changes to a list of ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedConfigMapList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -11502,37 +11316,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/configmaps/{name}": { - "get": { - "description": "watch changes to an object of kind ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedConfigMap", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -11595,37 +11378,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/endpoints": { - "get": { - "description": "watch individual changes to a list of Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedEndpointsList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -11680,37 +11432,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/endpoints/{name}": { - "get": { - "description": "watch changes to an object of kind Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedEndpoints", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -11773,37 +11494,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/events": { - "get": { - "description": "watch individual changes to a list of Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedEventList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -11858,37 +11548,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/events/{name}": { - "get": { - "description": "watch changes to an object of kind Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedEvent", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -11951,37 +11610,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/limitranges": { - "get": { - "description": "watch individual changes to a list of LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedLimitRangeList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -12036,37 +11664,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/limitranges/{name}": { - "get": { - "description": "watch changes to an object of kind LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedLimitRange", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -12129,37 +11726,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims": { - "get": { - "description": "watch individual changes to a list of PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedPersistentVolumeClaimList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -12214,37 +11780,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}": { - "get": { - "description": "watch changes to an object of kind PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedPersistentVolumeClaim", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -12307,37 +11842,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/pods": { - "get": { - "description": "watch individual changes to a list of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedPodList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -12392,37 +11896,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/pods/{name}": { - "get": { - "description": "watch changes to an object of kind Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -12485,37 +11958,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/podtemplates": { - "get": { - "description": "watch individual changes to a list of PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedPodTemplateList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -12570,37 +12012,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/podtemplates/{name}": { - "get": { - "description": "watch changes to an object of kind PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedPodTemplate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -12663,37 +12074,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/replicationcontrollers": { - "get": { - "description": "watch individual changes to a list of ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedReplicationControllerList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -12748,37 +12128,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}": { - "get": { - "description": "watch changes to an object of kind ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedReplicationController", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -12841,37 +12190,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/resourcequotas": { - "get": { - "description": "watch individual changes to a list of ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedResourceQuotaList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -12926,37 +12244,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}": { - "get": { - "description": "watch changes to an object of kind ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedResourceQuota", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -13019,37 +12306,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/secrets": { - "get": { - "description": "watch individual changes to a list of Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedSecretList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -13104,37 +12360,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/secrets/{name}": { - "get": { - "description": "watch changes to an object of kind Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedSecret", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -13197,37 +12422,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/serviceaccounts": { - "get": { - "description": "watch individual changes to a list of ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedServiceAccountList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -13282,37 +12476,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}": { - "get": { - "description": "watch changes to an object of kind ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedServiceAccount", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -13375,37 +12538,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/services": { - "get": { - "description": "watch individual changes to a list of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedServiceList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -13460,37 +12592,6 @@ ] }, "/api/v1/watch/namespaces/{namespace}/services/{name}": { - "get": { - "description": "watch changes to an object of kind Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -13553,37 +12654,6 @@ ] }, "/api/v1/watch/namespaces/{name}": { - "get": { - "description": "watch changes to an object of kind Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNamespace", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -13638,37 +12708,6 @@ ] }, "/api/v1/watch/nodes": { - "get": { - "description": "watch individual changes to a list of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNodeList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -13715,37 +12754,6 @@ ] }, "/api/v1/watch/nodes/{name}": { - "get": { - "description": "watch changes to an object of kind Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -13800,37 +12808,6 @@ ] }, "/api/v1/watch/persistentvolumeclaims": { - "get": { - "description": "watch individual changes to a list of PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchPersistentVolumeClaimListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -13877,37 +12854,6 @@ ] }, "/api/v1/watch/persistentvolumes": { - "get": { - "description": "watch individual changes to a list of PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchPersistentVolumeList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -13954,37 +12900,6 @@ ] }, "/api/v1/watch/persistentvolumes/{name}": { - "get": { - "description": "watch changes to an object of kind PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchPersistentVolume", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -14039,37 +12954,6 @@ ] }, "/api/v1/watch/pods": { - "get": { - "description": "watch individual changes to a list of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchPodListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -14114,39 +12998,8 @@ "in": "query" } ] - }, - "/api/v1/watch/podtemplates": { - "get": { - "description": "watch individual changes to a list of PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchPodTemplateListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + }, + "/api/v1/watch/podtemplates": { "parameters": [ { "uniqueItems": true, @@ -14193,37 +13046,6 @@ ] }, "/api/v1/watch/replicationcontrollers": { - "get": { - "description": "watch individual changes to a list of ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchReplicationControllerListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -14270,37 +13092,6 @@ ] }, "/api/v1/watch/resourcequotas": { - "get": { - "description": "watch individual changes to a list of ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchResourceQuotaListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -14347,37 +13138,6 @@ ] }, "/api/v1/watch/secrets": { - "get": { - "description": "watch individual changes to a list of Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchSecretListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -14424,37 +13184,6 @@ ] }, "/api/v1/watch/serviceaccounts": { - "get": { - "description": "watch individual changes to a list of ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchServiceAccountListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -14501,37 +13230,6 @@ ] }, "/api/v1/watch/services": { - "get": { - "description": "watch individual changes to a list of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchServiceListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -15287,37 +13985,6 @@ ] }, "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets": { - "get": { - "description": "watch individual changes to a list of 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": "watchNamespacedStatefulSetList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -15372,37 +14039,6 @@ ] }, "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets/{name}": { - "get": { - "description": "watch changes to an object 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": "watchNamespacedStatefulSet", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -15465,37 +14101,6 @@ ] }, "/apis/apps/v1beta1/watch/statefulsets": { - "get": { - "description": "watch individual changes to a list of 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": "watchStatefulSetListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -16548,39 +15153,8 @@ "in": "query" } ] - }, - "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { - "get": { - "description": "watch individual changes to a list of 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": "watchHorizontalPodAutoscalerListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + }, + "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { "parameters": [ { "uniqueItems": true, @@ -16627,37 +15201,6 @@ ] }, "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "description": "watch individual changes to a list of 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": "watchNamespacedHorizontalPodAutoscalerList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -16712,37 +15255,6 @@ ] }, "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "description": "watch changes to an object 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": "watchNamespacedHorizontalPodAutoscaler", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -17481,37 +15993,6 @@ ] }, "/apis/batch/v1/watch/jobs": { - "get": { - "description": "watch individual changes to a list of 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": "watchJobListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -17558,37 +16039,6 @@ ] }, "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { - "get": { - "description": "watch individual changes to a list of 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": "watchNamespacedJobList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -17643,37 +16093,6 @@ ] }, "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { - "get": { - "description": "watch changes to an object 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": "watchNamespacedJob", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -19599,37 +18018,6 @@ ] }, "/apis/batch/v2alpha1/watch/cronjobs": { - "get": { - "description": "watch individual changes to a list of CronJob", - "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": "watchCronJobListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -19676,37 +18064,6 @@ ] }, "/apis/batch/v2alpha1/watch/jobs": { - "get": { - "description": "watch individual changes to a list of 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": "watchJobListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -19753,37 +18110,6 @@ ] }, "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs": { - "get": { - "description": "watch individual changes to a list of CronJob", - "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": "watchNamespacedCronJobList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -19836,39 +18162,8 @@ "in": "query" } ] - }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs/{name}": { - "get": { - "description": "watch changes to an object of kind CronJob", - "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": "watchNamespacedCronJob", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + }, + "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs/{name}": { "parameters": [ { "uniqueItems": true, @@ -19931,37 +18226,6 @@ ] }, "/apis/batch/v2alpha1/watch/namespaces/{namespace}/jobs": { - "get": { - "description": "watch individual changes to a list of 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": "watchNamespacedJobList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -20016,37 +18280,6 @@ ] }, "/apis/batch/v2alpha1/watch/namespaces/{namespace}/jobs/{name}": { - "get": { - "description": "watch changes to an object 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": "watchNamespacedJob", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -20109,37 +18342,6 @@ ] }, "/apis/batch/v2alpha1/watch/namespaces/{namespace}/scheduledjobs": { - "get": { - "description": "watch individual changes to a list of 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": "watchNamespacedScheduledJobList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -20194,37 +18396,6 @@ ] }, "/apis/batch/v2alpha1/watch/namespaces/{namespace}/scheduledjobs/{name}": { - "get": { - "description": "watch changes to an object 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": "watchNamespacedScheduledJob", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -20287,37 +18458,6 @@ ] }, "/apis/batch/v2alpha1/watch/scheduledjobs": { - "get": { - "description": "watch individual changes to a list of 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": "watchScheduledJobListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -20923,37 +19063,6 @@ ] }, "/apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests": { - "get": { - "description": "watch individual changes to a list of CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1alpha1" - ], - "operationId": "watchCertificateSigningRequestList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -21000,37 +19109,6 @@ ] }, "/apis/certificates.k8s.io/v1alpha1/watch/certificatesigningrequests/{name}": { - "get": { - "description": "watch changes to an object of kind CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1alpha1" - ], - "operationId": "watchCertificateSigningRequest", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -26138,37 +24216,6 @@ ] }, "/apis/extensions/v1beta1/watch/daemonsets": { - "get": { - "description": "watch individual changes to a list of 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": "watchDaemonSetListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -26213,39 +24260,8 @@ "in": "query" } ] - }, - "/apis/extensions/v1beta1/watch/deployments": { - "get": { - "description": "watch individual changes to a list of Deployment", - "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": "watchDeploymentListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + }, + "/apis/extensions/v1beta1/watch/deployments": { "parameters": [ { "uniqueItems": true, @@ -26292,37 +24308,6 @@ ] }, "/apis/extensions/v1beta1/watch/horizontalpodautoscalers": { - "get": { - "description": "watch individual changes to a list of HorizontalPodAutoscaler", - "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": "watchHorizontalPodAutoscalerListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -26369,37 +24354,6 @@ ] }, "/apis/extensions/v1beta1/watch/ingresses": { - "get": { - "description": "watch individual changes to a list of 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": "watchIngressListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -26446,37 +24400,6 @@ ] }, "/apis/extensions/v1beta1/watch/jobs": { - "get": { - "description": "watch individual changes to a list of 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": "watchJobListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -26523,37 +24446,6 @@ ] }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets": { - "get": { - "description": "watch individual changes to a list of 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": "watchNamespacedDaemonSetList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -26608,37 +24500,6 @@ ] }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name}": { - "get": { - "description": "watch changes to an object 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": "watchNamespacedDaemonSet", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -26701,37 +24562,6 @@ ] }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments": { - "get": { - "description": "watch individual changes to a list of Deployment", - "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": "watchNamespacedDeploymentList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -26786,37 +24616,6 @@ ] }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { - "get": { - "description": "watch changes to an object 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": [ - "extensions_v1beta1" - ], - "operationId": "watchNamespacedDeployment", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -26879,37 +24678,6 @@ ] }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "description": "watch individual changes to a list of HorizontalPodAutoscaler", - "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": "watchNamespacedHorizontalPodAutoscalerList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -26962,39 +24730,8 @@ "in": "query" } ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "description": "watch changes to an object 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": [ - "extensions_v1beta1" - ], - "operationId": "watchNamespacedHorizontalPodAutoscaler", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + }, + "/apis/extensions/v1beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "parameters": [ { "uniqueItems": true, @@ -27057,37 +24794,6 @@ ] }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses": { - "get": { - "description": "watch individual changes to a list of 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": "watchNamespacedIngressList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -27142,37 +24848,6 @@ ] }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name}": { - "get": { - "description": "watch changes to an object 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": "watchNamespacedIngress", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -27235,37 +24910,6 @@ ] }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs": { - "get": { - "description": "watch individual changes to a list of 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": "watchNamespacedJobList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -27320,37 +24964,6 @@ ] }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/jobs/{name}": { - "get": { - "description": "watch changes to an object 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": "watchNamespacedJob", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -27413,37 +25026,6 @@ ] }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies": { - "get": { - "description": "watch individual changes to a list of NetworkPolicy", - "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": "watchNamespacedNetworkPolicyList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -27498,37 +25080,6 @@ ] }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name}": { - "get": { - "description": "watch changes to an object of kind NetworkPolicy", - "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": "watchNamespacedNetworkPolicy", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -27591,37 +25142,6 @@ ] }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets": { - "get": { - "description": "watch individual changes to a list of ReplicaSet", - "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": "watchNamespacedReplicaSetList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -27676,37 +25196,6 @@ ] }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name}": { - "get": { - "description": "watch changes to an object of kind ReplicaSet", - "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": "watchNamespacedReplicaSet", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -27767,39 +25256,8 @@ "in": "query" } ] - }, - "/apis/extensions/v1beta1/watch/networkpolicies": { - "get": { - "description": "watch individual changes to a list of NetworkPolicy", - "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": "watchNetworkPolicyListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + }, + "/apis/extensions/v1beta1/watch/networkpolicies": { "parameters": [ { "uniqueItems": true, @@ -27846,37 +25304,6 @@ ] }, "/apis/extensions/v1beta1/watch/replicasets": { - "get": { - "description": "watch individual changes to a list of ReplicaSet", - "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": "watchReplicaSetListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -27923,37 +25350,6 @@ ] }, "/apis/extensions/v1beta1/watch/thirdpartyresources": { - "get": { - "description": "watch individual changes to a list of ThirdPartyResource", - "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": "watchThirdPartyResourceList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -28000,37 +25396,6 @@ ] }, "/apis/extensions/v1beta1/watch/thirdpartyresources/{name}": { - "get": { - "description": "watch changes to an object of kind ThirdPartyResource", - "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": "watchThirdPartyResource", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -28761,37 +26126,6 @@ ] }, "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets": { - "get": { - "description": "watch individual changes to a list of PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "watchNamespacedPodDisruptionBudgetList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -28846,37 +26180,6 @@ ] }, "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "get": { - "description": "watch changes to an object of kind PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "watchNamespacedPodDisruptionBudget", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -28939,37 +26242,6 @@ ] }, "/apis/policy/v1beta1/watch/poddisruptionbudgets": { - "get": { - "description": "watch individual changes to a list of PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "watchPodDisruptionBudgetListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -30728,37 +28000,6 @@ ] }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings": { - "get": { - "description": "watch individual changes to a list of ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "watchClusterRoleBindingList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -30805,37 +28046,6 @@ ] }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name}": { - "get": { - "description": "watch changes to an object of kind ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "watchClusterRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -30887,40 +28097,9 @@ "name": "watch", "in": "query" } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles": { - "get": { - "description": "watch individual changes to a list of 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_v1alpha1" - ], - "operationId": "watchClusterRoleList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, + ] + }, + "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles": { "parameters": [ { "uniqueItems": true, @@ -30967,37 +28146,6 @@ ] }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name}": { - "get": { - "description": "watch changes to an object 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_v1alpha1" - ], - "operationId": "watchClusterRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -31052,37 +28200,6 @@ ] }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings": { - "get": { - "description": "watch individual changes to a list of 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_v1alpha1" - ], - "operationId": "watchNamespacedRoleBindingList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -31137,37 +28254,6 @@ ] }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "description": "watch changes to an object 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_v1alpha1" - ], - "operationId": "watchNamespacedRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -31230,37 +28316,6 @@ ] }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles": { - "get": { - "description": "watch individual changes to a list of 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_v1alpha1" - ], - "operationId": "watchNamespacedRoleList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -31315,37 +28370,6 @@ ] }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}": { - "get": { - "description": "watch changes to an object 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_v1alpha1" - ], - "operationId": "watchNamespacedRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -31408,37 +28432,6 @@ ] }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/rolebindings": { - "get": { - "description": "watch individual changes to a list of 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_v1alpha1" - ], - "operationId": "watchRoleBindingListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -31485,37 +28478,6 @@ ] }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/roles": { - "get": { - "description": "watch individual changes to a list of 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_v1alpha1" - ], - "operationId": "watchRoleListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -32009,37 +28971,6 @@ ] }, "/apis/storage.k8s.io/v1beta1/watch/storageclasses": { - "get": { - "description": "watch individual changes to a list of 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": "watchStorageClassList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, @@ -32086,37 +29017,6 @@ ] }, "/apis/storage.k8s.io/v1beta1/watch/storageclasses/{name}": { - "get": { - "description": "watch changes to an object 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": "watchStorageClass", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/versioned.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, "parameters": [ { "uniqueItems": true, diff --git a/test/test_apps_v1beta1_api.py b/test/test_apps_v1beta1_api.py index 0a003f77db..a07f332489 100644 --- a/test/test_apps_v1beta1_api.py +++ b/test/test_apps_v1beta1_api.py @@ -135,30 +135,6 @@ def test_replace_namespaced_stateful_set_status(self): Test case for replace_namespaced_stateful_set_status - """ - pass - - def test_watch_namespaced_stateful_set(self): - """ - Test case for watch_namespaced_stateful_set - - - """ - pass - - def test_watch_namespaced_stateful_set_list(self): - """ - Test case for watch_namespaced_stateful_set_list - - - """ - pass - - def test_watch_stateful_set_list_for_all_namespaces(self): - """ - Test case for watch_stateful_set_list_for_all_namespaces - - """ pass diff --git a/test/test_autoscaling_v1_api.py b/test/test_autoscaling_v1_api.py index f5f81e15be..0b5abfc851 100644 --- a/test/test_autoscaling_v1_api.py +++ b/test/test_autoscaling_v1_api.py @@ -135,30 +135,6 @@ def test_replace_namespaced_horizontal_pod_autoscaler_status(self): Test case for replace_namespaced_horizontal_pod_autoscaler_status - """ - pass - - def test_watch_horizontal_pod_autoscaler_list_for_all_namespaces(self): - """ - Test case for watch_horizontal_pod_autoscaler_list_for_all_namespaces - - - """ - pass - - def test_watch_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for watch_namespaced_horizontal_pod_autoscaler - - - """ - pass - - def test_watch_namespaced_horizontal_pod_autoscaler_list(self): - """ - Test case for watch_namespaced_horizontal_pod_autoscaler_list - - """ pass diff --git a/test/test_batch_v1_api.py b/test/test_batch_v1_api.py index 642dcb7c63..cbb098ea76 100644 --- a/test/test_batch_v1_api.py +++ b/test/test_batch_v1_api.py @@ -135,30 +135,6 @@ def test_replace_namespaced_job_status(self): Test case for replace_namespaced_job_status - """ - pass - - def test_watch_job_list_for_all_namespaces(self): - """ - Test case for watch_job_list_for_all_namespaces - - - """ - pass - - def test_watch_namespaced_job(self): - """ - Test case for watch_namespaced_job - - - """ - pass - - def test_watch_namespaced_job_list(self): - """ - Test case for watch_namespaced_job_list - - """ pass diff --git a/test/test_batch_v2alpha1_api.py b/test/test_batch_v2alpha1_api.py index 6f314e7fc8..b0820da9dc 100644 --- a/test/test_batch_v2alpha1_api.py +++ b/test/test_batch_v2alpha1_api.py @@ -311,78 +311,6 @@ def test_replace_namespaced_scheduled_job_status(self): Test case for replace_namespaced_scheduled_job_status - """ - pass - - def test_watch_cron_job_list_for_all_namespaces(self): - """ - Test case for watch_cron_job_list_for_all_namespaces - - - """ - pass - - def test_watch_job_list_for_all_namespaces(self): - """ - Test case for watch_job_list_for_all_namespaces - - - """ - pass - - def test_watch_namespaced_cron_job(self): - """ - Test case for watch_namespaced_cron_job - - - """ - pass - - def test_watch_namespaced_cron_job_list(self): - """ - Test case for watch_namespaced_cron_job_list - - - """ - pass - - def test_watch_namespaced_job(self): - """ - Test case for watch_namespaced_job - - - """ - pass - - def test_watch_namespaced_job_list(self): - """ - Test case for watch_namespaced_job_list - - - """ - pass - - def test_watch_namespaced_scheduled_job(self): - """ - Test case for watch_namespaced_scheduled_job - - - """ - pass - - def test_watch_namespaced_scheduled_job_list(self): - """ - Test case for watch_namespaced_scheduled_job_list - - - """ - pass - - def test_watch_scheduled_job_list_for_all_namespaces(self): - """ - Test case for watch_scheduled_job_list_for_all_namespaces - - """ pass diff --git a/test/test_certificates_v1alpha1_api.py b/test/test_certificates_v1alpha1_api.py index 7bf223fcd5..021be98444 100644 --- a/test/test_certificates_v1alpha1_api.py +++ b/test/test_certificates_v1alpha1_api.py @@ -119,22 +119,6 @@ def test_replace_certificate_signing_request_status(self): Test case for replace_certificate_signing_request_status - """ - pass - - def test_watch_certificate_signing_request(self): - """ - Test case for watch_certificate_signing_request - - - """ - pass - - def test_watch_certificate_signing_request_list(self): - """ - Test case for watch_certificate_signing_request_list - - """ pass diff --git a/test/test_core_v1_api.py b/test/test_core_v1_api.py index 71abefcd7a..7aa8df5ab3 100644 --- a/test/test_core_v1_api.py +++ b/test/test_core_v1_api.py @@ -1871,342 +1871,6 @@ def test_replace_persistent_volume_status(self): Test case for replace_persistent_volume_status - """ - pass - - def test_watch_config_map_list_for_all_namespaces(self): - """ - Test case for watch_config_map_list_for_all_namespaces - - - """ - pass - - def test_watch_endpoints_list_for_all_namespaces(self): - """ - Test case for watch_endpoints_list_for_all_namespaces - - - """ - pass - - def test_watch_event_list_for_all_namespaces(self): - """ - Test case for watch_event_list_for_all_namespaces - - - """ - pass - - def test_watch_limit_range_list_for_all_namespaces(self): - """ - Test case for watch_limit_range_list_for_all_namespaces - - - """ - pass - - def test_watch_namespace(self): - """ - Test case for watch_namespace - - - """ - pass - - def test_watch_namespace_list(self): - """ - Test case for watch_namespace_list - - - """ - pass - - def test_watch_namespaced_config_map(self): - """ - Test case for watch_namespaced_config_map - - - """ - pass - - def test_watch_namespaced_config_map_list(self): - """ - Test case for watch_namespaced_config_map_list - - - """ - pass - - def test_watch_namespaced_endpoints(self): - """ - Test case for watch_namespaced_endpoints - - - """ - pass - - def test_watch_namespaced_endpoints_list(self): - """ - Test case for watch_namespaced_endpoints_list - - - """ - pass - - def test_watch_namespaced_event(self): - """ - Test case for watch_namespaced_event - - - """ - pass - - def test_watch_namespaced_event_list(self): - """ - Test case for watch_namespaced_event_list - - - """ - pass - - def test_watch_namespaced_limit_range(self): - """ - Test case for watch_namespaced_limit_range - - - """ - pass - - def test_watch_namespaced_limit_range_list(self): - """ - Test case for watch_namespaced_limit_range_list - - - """ - pass - - def test_watch_namespaced_persistent_volume_claim(self): - """ - Test case for watch_namespaced_persistent_volume_claim - - - """ - pass - - def test_watch_namespaced_persistent_volume_claim_list(self): - """ - Test case for watch_namespaced_persistent_volume_claim_list - - - """ - pass - - def test_watch_namespaced_pod(self): - """ - Test case for watch_namespaced_pod - - - """ - pass - - def test_watch_namespaced_pod_list(self): - """ - Test case for watch_namespaced_pod_list - - - """ - pass - - def test_watch_namespaced_pod_template(self): - """ - Test case for watch_namespaced_pod_template - - - """ - pass - - def test_watch_namespaced_pod_template_list(self): - """ - Test case for watch_namespaced_pod_template_list - - - """ - pass - - def test_watch_namespaced_replication_controller(self): - """ - Test case for watch_namespaced_replication_controller - - - """ - pass - - def test_watch_namespaced_replication_controller_list(self): - """ - Test case for watch_namespaced_replication_controller_list - - - """ - pass - - def test_watch_namespaced_resource_quota(self): - """ - Test case for watch_namespaced_resource_quota - - - """ - pass - - def test_watch_namespaced_resource_quota_list(self): - """ - Test case for watch_namespaced_resource_quota_list - - - """ - pass - - def test_watch_namespaced_secret(self): - """ - Test case for watch_namespaced_secret - - - """ - pass - - def test_watch_namespaced_secret_list(self): - """ - Test case for watch_namespaced_secret_list - - - """ - pass - - def test_watch_namespaced_service(self): - """ - Test case for watch_namespaced_service - - - """ - pass - - def test_watch_namespaced_service_account(self): - """ - Test case for watch_namespaced_service_account - - - """ - pass - - def test_watch_namespaced_service_account_list(self): - """ - Test case for watch_namespaced_service_account_list - - - """ - pass - - def test_watch_namespaced_service_list(self): - """ - Test case for watch_namespaced_service_list - - - """ - pass - - def test_watch_node(self): - """ - Test case for watch_node - - - """ - pass - - def test_watch_node_list(self): - """ - Test case for watch_node_list - - - """ - pass - - def test_watch_persistent_volume(self): - """ - Test case for watch_persistent_volume - - - """ - pass - - def test_watch_persistent_volume_claim_list_for_all_namespaces(self): - """ - Test case for watch_persistent_volume_claim_list_for_all_namespaces - - - """ - pass - - def test_watch_persistent_volume_list(self): - """ - Test case for watch_persistent_volume_list - - - """ - pass - - def test_watch_pod_list_for_all_namespaces(self): - """ - Test case for watch_pod_list_for_all_namespaces - - - """ - pass - - def test_watch_pod_template_list_for_all_namespaces(self): - """ - Test case for watch_pod_template_list_for_all_namespaces - - - """ - pass - - def test_watch_replication_controller_list_for_all_namespaces(self): - """ - Test case for watch_replication_controller_list_for_all_namespaces - - - """ - pass - - def test_watch_resource_quota_list_for_all_namespaces(self): - """ - Test case for watch_resource_quota_list_for_all_namespaces - - - """ - pass - - def test_watch_secret_list_for_all_namespaces(self): - """ - Test case for watch_secret_list_for_all_namespaces - - - """ - pass - - def test_watch_service_account_list_for_all_namespaces(self): - """ - Test case for watch_service_account_list_for_all_namespaces - - - """ - pass - - def test_watch_service_list_for_all_namespaces(self): - """ - Test case for watch_service_list_for_all_namespaces - - """ pass diff --git a/test/test_extensions_v1beta1_api.py b/test/test_extensions_v1beta1_api.py index 65ae81568c..b2353b22ad 100644 --- a/test/test_extensions_v1beta1_api.py +++ b/test/test_extensions_v1beta1_api.py @@ -775,190 +775,6 @@ def test_replace_third_party_resource(self): Test case for replace_third_party_resource - """ - pass - - def test_watch_daemon_set_list_for_all_namespaces(self): - """ - Test case for watch_daemon_set_list_for_all_namespaces - - - """ - pass - - def test_watch_deployment_list_for_all_namespaces(self): - """ - Test case for watch_deployment_list_for_all_namespaces - - - """ - pass - - def test_watch_horizontal_pod_autoscaler_list_for_all_namespaces(self): - """ - Test case for watch_horizontal_pod_autoscaler_list_for_all_namespaces - - - """ - pass - - def test_watch_ingress_list_for_all_namespaces(self): - """ - Test case for watch_ingress_list_for_all_namespaces - - - """ - pass - - def test_watch_job_list_for_all_namespaces(self): - """ - Test case for watch_job_list_for_all_namespaces - - - """ - pass - - def test_watch_namespaced_daemon_set(self): - """ - Test case for watch_namespaced_daemon_set - - - """ - pass - - def test_watch_namespaced_daemon_set_list(self): - """ - Test case for watch_namespaced_daemon_set_list - - - """ - pass - - def test_watch_namespaced_deployment(self): - """ - Test case for watch_namespaced_deployment - - - """ - pass - - def test_watch_namespaced_deployment_list(self): - """ - Test case for watch_namespaced_deployment_list - - - """ - pass - - def test_watch_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for watch_namespaced_horizontal_pod_autoscaler - - - """ - pass - - def test_watch_namespaced_horizontal_pod_autoscaler_list(self): - """ - Test case for watch_namespaced_horizontal_pod_autoscaler_list - - - """ - pass - - def test_watch_namespaced_ingress(self): - """ - Test case for watch_namespaced_ingress - - - """ - pass - - def test_watch_namespaced_ingress_list(self): - """ - Test case for watch_namespaced_ingress_list - - - """ - pass - - def test_watch_namespaced_job(self): - """ - Test case for watch_namespaced_job - - - """ - pass - - def test_watch_namespaced_job_list(self): - """ - Test case for watch_namespaced_job_list - - - """ - pass - - def test_watch_namespaced_network_policy(self): - """ - Test case for watch_namespaced_network_policy - - - """ - pass - - def test_watch_namespaced_network_policy_list(self): - """ - Test case for watch_namespaced_network_policy_list - - - """ - pass - - def test_watch_namespaced_replica_set(self): - """ - Test case for watch_namespaced_replica_set - - - """ - pass - - def test_watch_namespaced_replica_set_list(self): - """ - Test case for watch_namespaced_replica_set_list - - - """ - pass - - def test_watch_network_policy_list_for_all_namespaces(self): - """ - Test case for watch_network_policy_list_for_all_namespaces - - - """ - pass - - def test_watch_replica_set_list_for_all_namespaces(self): - """ - Test case for watch_replica_set_list_for_all_namespaces - - - """ - pass - - def test_watch_third_party_resource(self): - """ - Test case for watch_third_party_resource - - - """ - pass - - def test_watch_third_party_resource_list(self): - """ - Test case for watch_third_party_resource_list - - """ pass diff --git a/test/test_policy_v1beta1_api.py b/test/test_policy_v1beta1_api.py index 4734aafedd..18807f9637 100644 --- a/test/test_policy_v1beta1_api.py +++ b/test/test_policy_v1beta1_api.py @@ -135,30 +135,6 @@ def test_replace_namespaced_pod_disruption_budget_status(self): Test case for replace_namespaced_pod_disruption_budget_status - """ - pass - - def test_watch_namespaced_pod_disruption_budget(self): - """ - Test case for watch_namespaced_pod_disruption_budget - - - """ - pass - - def test_watch_namespaced_pod_disruption_budget_list(self): - """ - Test case for watch_namespaced_pod_disruption_budget_list - - - """ - pass - - def test_watch_pod_disruption_budget_list_for_all_namespaces(self): - """ - Test case for watch_pod_disruption_budget_list_for_all_namespaces - - """ pass diff --git a/test/test_rbac_authorization_v1alpha1_api.py b/test/test_rbac_authorization_v1alpha1_api.py index 62333732e4..8dcbde7c01 100644 --- a/test/test_rbac_authorization_v1alpha1_api.py +++ b/test/test_rbac_authorization_v1alpha1_api.py @@ -287,86 +287,6 @@ def test_replace_namespaced_role_binding(self): Test case for replace_namespaced_role_binding - """ - pass - - def test_watch_cluster_role(self): - """ - Test case for watch_cluster_role - - - """ - pass - - def test_watch_cluster_role_binding(self): - """ - Test case for watch_cluster_role_binding - - - """ - pass - - def test_watch_cluster_role_binding_list(self): - """ - Test case for watch_cluster_role_binding_list - - - """ - pass - - def test_watch_cluster_role_list(self): - """ - Test case for watch_cluster_role_list - - - """ - pass - - def test_watch_namespaced_role(self): - """ - Test case for watch_namespaced_role - - - """ - pass - - def test_watch_namespaced_role_binding(self): - """ - Test case for watch_namespaced_role_binding - - - """ - pass - - def test_watch_namespaced_role_binding_list(self): - """ - Test case for watch_namespaced_role_binding_list - - - """ - pass - - def test_watch_namespaced_role_list(self): - """ - Test case for watch_namespaced_role_list - - - """ - pass - - def test_watch_role_binding_list_for_all_namespaces(self): - """ - Test case for watch_role_binding_list_for_all_namespaces - - - """ - pass - - def test_watch_role_list_for_all_namespaces(self): - """ - Test case for watch_role_list_for_all_namespaces - - """ pass diff --git a/test/test_storage_v1beta1_api.py b/test/test_storage_v1beta1_api.py index 0fb8f66cc9..536ac3ddea 100644 --- a/test/test_storage_v1beta1_api.py +++ b/test/test_storage_v1beta1_api.py @@ -103,22 +103,6 @@ def test_replace_storage_class(self): Test case for replace_storage_class - """ - pass - - def test_watch_storage_class(self): - """ - Test case for watch_storage_class - - - """ - pass - - def test_watch_storage_class_list(self): - """ - Test case for watch_storage_class_list - - """ pass